Forum Discussion

Paul_Hogan_7050's avatar
Paul_Hogan_7050
Icon for Nimbostratus rankNimbostratus
Dec 17, 2008

iRule SNAT to a specific network interface only

I need to setup an iRule to NAT traffic from a specific IP subnet address when it hits a specific network interface. I do not want to NAT the trafic when it hits a different interface. Would anyone have examples of SNAT and interfaces.

1 Reply

  • Hi Paul,

    Here is an example where SNAT is applied to any interface when it matches a specific net address.

     
     when CLIENT_ACCEPTED { 
       if { [IP::addr [IP::local_addr] equals 10.10.10.0/255.255.255.0] }{ 
       snat automap 
      } 
     } 
     

    I hope this helps

    CB