Forum Discussion
Twilleyj_94880
Sep 24, 2013Nimbostratus
iRule to reject a specific activesync DeviceId
I'd like to add an iRule to block a specific Activesync DeviceId (SamsungXYZ123)
Reason: This phone has been trying to auth approx 20,000 times per day for 11 months... (Ex-Employee)
Does this l...
What_Lies_Bene1
Sep 24, 2013Cirrostratus
Sure. You're very close. I don't see the need for the priority so I've dropped that. I've changed 'reject' to 'drop' so no TCP RST is sent, saving a few more CPU cycles and a tiny bit of memory. Just ensure the case of the header and it's value are correct (or alternatively use 'string tolower' to make everything lower case).
when HTTP_REQUEST {
if { [HTTP::header value "DeviceId"] equals "SamsungXYZ123" } {
drop }
}
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects