I need to come up with selective snat that will only snat vip to vip traffic and not snat client to application traffic.
internal interface:
10.x.188..x /24
External interface (Vip Traffic):
10.x.186.x /24
I think this will work bu not sure?
when LB_SELECTED {
if {[IP::addr “10.x.186.0/24” equals 10.x.186.0/24]} {
snat automap
}
}
I took it from this selective snat irule that I found in the samples section.
when LB_SELECTED {
if {[IP::addr “[IP::client_addr]/24” equals “[LB::server addr]/24”]} {
snat automap
}
}
any help would be greatly apreciated.