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

Deena's avatar
Deena
Icon for Altocumulus rankAltocumulus
Nov 13, 2024
Solved

NAT for specific IPs

Hi All, Looking for suggestions on how I can accomplish NAT for a couple of specific IPs, without NATting all the incoming traffic. My scenario is as following: source client ips 10.10.10.100 & 10....
  • Enes_Afsin_Al's avatar
    Nov 14, 2024

    Hi Deena,

    You can use iRule or LTM policy.

    when CLIENT_ACCEPTED {
    	if { [IP::addr [IP::client_addr] equals 10.10.10.0/24] } {
    		snat 10.10.10.1
    	}
    	else {
    		snat none
    	}
    }

    https://clouddocs.f5.com/api/irules/snat.html