Forum Discussion
Deon
Nimbostratus
Sep 26, 2008Select Alternate Pool Based On Client IP?
This would appear to be a common enough idea but I can't locate any examples that lead me down the direction I need. I am looking for an iRule that looks at the client IP address at the time the load...
hoolio
Cirrostratus
Sep 27, 2008Hi Deon,
It's more exact and faster to perform an IP address comparison versus a string comparison on the client IP address. It's actually the third example on the IP::addr wiki page which I was referring to:
when CLIENT_ACCEPTED {
if { [IP::addr [IP::client_addr]/24 equals 172.22.166.0] } {
pool CSS_2
}
}
On a standard TCP VIP, CLIENT_ACCEPTED is triggered when the client establishes a TCP connection with the VIP. CLIENT_DATA is only triggered if you collect the TCP payload with TCP::collect. There is more detail on events on the events wiki page (Click here).
Aaron
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