iRule for 1-to-1 NAT
I have two ISP connections (ISP 1 and ISP 2) setup in a wildcard outbound VC called Internet. Creative I know. I also have a single NAT setup for a Polycom Teleconference unit. I used a NAT to keep it on ISP1 only for inbound traffic reasons (better bandwidth). The problem is that randomly the polycom does not work. After testing we found that the outbound traffic is still load balancing (ie going out the wrong connection sometimes), so when traffic leaves through ISP 2, video stops working.
NAT inside 10.10.7.3 to outside 123.123.123.111
Tech support recommended an iRule but I can't seem to get this to work. So, I have the following rule added to the Internet VC:
when CLIENT_ACCEPTED {
if { [IP::addr [IP::client_addr] equals 10.10.7.3 ] }{
snat 123.123.123.111
pool ISP1-Only
}
}
*(ISP1-only pool only has the ISP1 gateway in it.)
Any ideas on what is going wrong?
Thanks,
Todd