Dave_88944
May 06, 2009Nimbostratus
Different route out based on internal IP
I have what appears to be an odd situation. My BIGIP has a default gateway of say 9.8.7.6 and everything is functioning properly. I now have 2 servers behind the BIGIP which need to SNAT out an IP of 1.2.3.99 to a router 1.2.3.4.
Questions:
1) Will the iRule below work to accomplish this?
2) Where is the appropriate location to apply the iRule? On the SNAT?
Internal Mail Server 1 = 172.31.10.162
Internal Mail Server 2 = 172.31.10.163
Desired Route Destination = 1.2.3.4
Default Route = 9.8.7.6
when CLIENT_ACCEPTED {
if {[IP::addr [IP::client_addr] equals "172.31.10.162]} {
node 1.2.3.4
}
if {[IP::addr [IP::client_addr] equals "172.31.10.163]} {
node 1.2.3.4
}
}