Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Traffic segregation based on Geo IP Location

rmoss25
Altostratus
Altostratus

Is it possible to seperate traffic based on Geo IP Location?  So for direct traffic from US IP's to one servers and others to another server?  I feel like this could be done using an iRule.

2 REPLIES 2

Ismael_Goncalves
F5 Employee
F5 Employee

You can use an iRule or LTM local traffic policy for it. The following articles can give you an idea.

https://support.f5.com/csp/article/K15097

https://support.f5.com/csp/article/K02479505

 

T-Trust
Cirrus
Cirrus

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
}

}