For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

silver's avatar
silver
Icon for Nimbostratus rankNimbostratus
Mar 24, 2011

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

 

1 Reply

  • hoolio's avatar
    hoolio
    Icon for Cirrostratus rankCirrostratus
    Which LTM version are you running? How many total mappings of client IP:port to node IP mappings to you need to maintain? If it's a small number like 10 you could use a switch statement for this. If it's larger, you could use a string datagroup.

     

     

    Aaron