Forum Discussion
Dave_22402
Nimbostratus
Mar 16, 2010irule based on ip and url
I am trying to construct an Irule that first checks for a url and then allows access based on IP.
Example -
if the url is "/foo/*" and IP = 123.123.123.123
then g...
JRahm
Admin
Mar 16, 2010Which do you want, to send to bad pool, or discard? I think what you want is:
when HTTP_REQUEST {
if { ([string tolower [HTTP::uri]] starts_with "/foo/") && [matchclass [IP::client_addr] equals allowed_IPs] } {
pool good_pool
} else {
discard
}
}
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