duBeN_25069
Aug 29, 2013Nimbostratus
irule
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 ...
great, 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
}
}
}