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 forwarded to 10.10.10.2 and if from client 192.168.1.3 it will be forwarded to 10.10.10.3. iRule should looks like this:
when HTTP_REQUEST {
if { [IP::addr [IP::client_addr] equals 192.168.1.2] } {
pool Pool1 member 10.10.10.2 80
}
else if { [IP::addr [IP::client_addr] equals 192.168.1.3] } {
pool Pool1 member 10.10.10.3 80
}
}
My question is what will happen if server 10.10.10.2 will go down. In that case I'd like to forward all requests to second server which is up. But I have a feeling that with this iRule client with ip 192.168.1.2 will be forwarded anyway to server1 which is down. Am I right ? And if yes how to avoid this situation ?