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 ...
Randy_Johnson_1
Nimbostratus
Dec 06, 2009Thanks !
I had actually gotten this working with a slight change -
when HTTP_REQUEST {
if { [IP::addr [IP::client_addr] equals 209.221.139.195] } {
pool Segregation_Pool
}
}
Next step of my project is to evaluate for a different IP ... Would this be as simple as adding another IP::addr statement ?
when HTTP_REQUEST {
if { [IP::addr [IP::client_addr] equals 209.221.139.195] } {
or if { [IP::addr [IP::client_addr] equals 222.201.139.195] } {
pool Segregation_Pool
}
}
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