Forum Discussion
Jasa_74968
Mar 25, 2014Nimbostratus
iRule to check URI and Client source IP using data groups
Hi everybody, I'm trying to achieve the following with my iRule:
1. Check for URI and if its /abc/* choose pool_A
2. Check for URI and if its /abc-preprod/* also check if Client's IP is ...
Jasa_74968
Mar 30, 2014Nimbostratus
The syntax gets passed through successfully but I can't seem to be able to achieve what I intended.
Whenever a user hits /abc-preprod/* url that should be covered by :
"/abc-preprod/*" {
log local0. "Detected [HTTP::uri] URL"
if { [class match [IP::remote_addr] equals internalIP] } {
log local0. "Client IP [IP::remote_addr] belongs to private network"
pool pool_B
log local0. "Pre-production pool selected"
Nothing get's logged even if the user is a member of "internalIP" group and they always get discarded.
What am I missing?
----------
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