Forum Discussion
Dave_73612
Nimbostratus
Jul 28, 2009Pool redirect based on source IP Range
Hi guys,
I need to write an IRule to route traffic to different pools based on source IP range.
Would this be the best syntax to use?
when CLIENT_ACCEPTED ...
The_Bhattman
Nimbostratus
Dec 06, 2009Hi Randy,
Adding another check would be as simple as the following
when HTTP_REQUEST {
if { [IP::addr [IP::client_addr] equals 209.221.139.195] } {
pool Segregation_Pool
} else if { [IP::addr [IP::client_addr] equals 209.221.139.196] } {
pool Segregation_pool2
}
}
Or using matchclass which would contain a list of IP addresses
You can find more details here
http://devcentral.f5.com/wiki/default.aspx/iRules/IP__addr.html
I hope this helps
Bhattman
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