Forum Discussion
Lior_54850
Nimbostratus
May 20, 2012Hey All,
I just wanted to give you an update on the issue. I did some digging and found a way of using an iRule to accomplish the required effect. On my catch all forward VIP I added the following iRule
when LB_SELECTED {
set public_ip 192.168.1.176
if { [IP::addr [IP::client_addr] equals 192.168.3.0/24]
&& not [IP::addr [IP::local_addr] equals 192.168.0.0/16]} {
snat $public_ip
} elseif { [IP::addr [IP::client_addr] equals 192.168.4.0/24]
&& not [IP::addr [IP::local_addr] equals 192.168.0.0/16]} {
snat $public_ip
} else {
forward
}
}
Thanks