Kenny_Long_5159
Oct 11, 2007Nimbostratus
Send traffic to destination pool based on source IP address
Associates,
I have a virtual server that is tied to a pool (WebServers) that has one "real" member. Then I have a second pool (Testweb) with a different "real" member.
I would like to direct traffic to the different pools based on source IP address when going to the webserver (just HTTP). One particular IP address goes to one pool and the rest of the Internet goes to another.
This is what I have come up with, but I dont have the ability to test it at the moment. Will someone evaluate it and correct it (if needed)? Thanks.
when CLIENT_ACCEPTED {
if {[IP::client_addr] == "10.0.150.1" && [TCP::local_port] == 80} {
pool Testweb
}
else {
pool WebServers
}
}