silver
Mar 24, 2011Nimbostratus
Source Port Nating
Hi,
I had a below requirement and need to perform by using the f5 irule.
Basically i need to perform the NAT based on the source IP to a different IP & Port.
My source IP :
172.16.100.1
172.16.100.2
172.16.100.3
My Destination IP : VIP in F5
192.168.100.100 : 8899
Node1 : 192.168.100.10 : 24
Node2 : 192.168.100.20 : 24
Whenever the source ip is reaching the node 1 or node 2, i require connection to be as
Source IP Translated IP Node IP
------------ ----------------- -----------
172.16.100.1:2100 ------ > 192.168.100.1 : 4455 -------- > 192.168.100.10 : 24
172.16.100.2:2101 ------ > 192.168.100.1 : 4456 -------- > 192.168.100.10 : 24
172.16.100.3:2102 ------ > 192.168.100.1 : 4457 -------- > 192.168.100.10 : 24
Thanks in advance