Jack_young_1068
Mar 06, 2008Historic F5 Account
bulk NAT iRule
hi,
I am trying to have an iRule converting internal network hosts (10.0.0.0/8) to external ip (11.0.0.0/8). This needs to be an 1-1 NAT.
First, setup a virtual server handles inbound connections from outside to a server.
Virtual Server 11.0.0.0/8, performance L4, address translation enabled, enabled on outside VLAN
using this iRule
when CLIENT_ACCEPTED {
SNAT 10.X.Y.Z to 11.X.Y.Z
set xyz [findstr [IP::remote_addr] ???.??? 1]
snat 11.$xyz
}
Next, setup this virtual server handles outbound connections from inside out
Virtual Server 0.0.0.0, forwarding (IP), enabled on inside vlan
when CLIENT_ACCEPTED {
Send 11.X.Y.Z to 10.X.Y.Z (i.e. NAT)
set xyz [findstr [IP::local_addr] ???.??? 1]
node 10.$xyz
}
well, I am not having success with this. Could you suggest something to try?