Forum Discussion
Neil_66348
Nimbostratus
Nov 09, 2010iRule GeoIP Targeting
Hi Guys ,
We're looking to implement some targeting thats found in 10.2 on our F5's.
Performing matching at the IP level works fine , I've found some example code for matching to t...
Neil_66348
Nimbostratus
Nov 09, 2010Hi Guys ,
An update.
Was using Internet Explorer , which was a real problem...using Chrome showed up the loop and then with HTTPWatch on IE , showed a loop.
Now:
when HTTP_REQUEST {
set state [class match -value [whereis [IP::client_addr] state] equals uk_regions]
if {($state ne "")}{
switch $state {
Leeds { pool $region }
York {HTTP::redirect http://62.190.1.1/ab/york}
grlond {HTTP::redirect http://www.google.com/news}
default {pool DEV-HTTP-POOL}
}
}
}
The above works for www.google.com/news , however for the York redirect to 62.190.1.1/ab/york , a redirect loop occurs. The iRule is on the virtual server runs on the same address of the website for redirection. So the problem now is that the redirection loops if going back to the same IP....
Anyone seen that one...
THanks
Neil
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
