Forum Discussion
mbamusa_59409
Oct 16, 2012Nimbostratus
Geolocation Irule
Hi All ;
i have the following irule :
when CLIENT_ACCEPTED {
if {[ whereis [IP::client_addr] country] eq US ] or [IP::addr [IP::client_addr] equals 10.7.10.1]}
...
What_Lies_Bene1
Oct 16, 2012Cirrostratus
This line needs some rounded brackets;
if { (([ whereis [IP::client_addr] country] eq US ]) or ([IP::addr [IP::client_addr] equals 10.7.10.1])) }
And yes, you could create and reference a data group for countries. If there are only a few a switch statement might be better;
https://devcentral.f5.com/Tutorials...-v101.aspx
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