Forum Discussion
duBeN_25069
Nimbostratus
Aug 29, 2013irule
Hello,
I have a virtual server with default pool Pool1 configured, containing 2 servers (10.10.10.2/3). Now I'm trying to achieve that if request will come from client with IP 192.168.1.2 it will be ...
duBeN_25069
Nimbostratus
Aug 29, 2013great, thanks so it will looks like this:
when HTTP_REQUEST {
if { [LB::status pool $poolname member $ip $port] eq "up" && [LB::status pool $poolname member $ip2 $port] eq "up" } {
if { [IP::addr [IP::client_addr] equals $client] } {
pool $poolname member $ip $port
}
elseif { [IP::addr [IP::client_addr] equals $client2] } {
pool $poolname member $ip2 $port
}
}
}
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