Forum Discussion
Traffic segregation based on Geo IP Location
Hi Rmoss,
So i think you can use and reference from my result test before about IP geo location,
- How to update geo database
https://cloud-ttrust.com/f5-how-to-install-and-update-ip-geolocation-database/
- iRules check client IP
https://cloud-ttrust.com/f5-irules-check-http-x-forward-for-and-country/
when HTTP_REQUEST {
set client_ip [IP::client_addr]
set fromCountry [whereis $client_ip country]
if { ( [class match $fromCountry equals US]) }{
pool pool1
} elseif { ( [class match $fromCountry equals UK]) }{
pool pool2
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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