Forum Discussion
bbensten_8485
Nimbostratus
Feb 26, 2014Irule to inspect URI and then validate client is in allowed ip range?
Hello,
We are tying to write a simple Irule that will inspect uri to match a string and if that specific string matches, check that the client is coming from an allowed IP address range. We hav...
bbensten_8485
Nimbostratus
Feb 26, 2014Kevin,
Thanks for your help. We modified that Irule with specifics as follows:
when HTTP_REQUEST { if { ( [string tolower [HTTP::uri]] equals "/OpenAM/UI/Login?module=DataStore" ) and not ( [IP::addr [IP::client_addr] equals "173.0.0.0/8"] ) } { reject } }
This does not reject still for some reason. Any idea what we are missing?
bbensten_8485
Nimbostratus
Feb 26, 2014I am sure the irule is being called because if I use the following, it works every time:
when CLIENT_ACCEPTED {
if { ! [IP::addr [IP::client_addr] equals 173.79.131.23/24] } {
log local0. "Blocking [IP::client_addr]"
reject
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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