Forum Discussion

MO_57487's avatar
MO_57487
Icon for Nimbostratus rankNimbostratus
Mar 13, 2008

Slective Snat

I need to come up with selective snat that will only snat vip to vip traffic and not snat client to application traffic.

 

 

internal interface:

 

 

10.x.188..x /24

 

 

External interface (Vip Traffic):

 

 

10.x.186.x /24

 

 

I think this will work bu not sure?

 

 

when LB_SELECTED {

 

if {[IP::addr "10.x.186.0/24" equals 10.x.186.0/24]} {

 

snat automap

 

}

 

}

 

 

I took it from this selective snat irule that I found in the samples section.

 

 

when LB_SELECTED {

 

if {[IP::addr "[IP::client_addr]/24" equals "[LB::server addr]/24"]} {

 

snat automap

 

}

 

}

 

 

any help would be greatly apreciated.

 

 

  • I believe that the sample will work for you

     

    when LB_SELECTED {

     

    if {[IP::addr "[IP::client_addr]/24" equals "[LB::server addr]/24"]} {

     

    snat automap

     

    }

     

    }

     

     

    thanks CB

     

  • Do need to put the client ip information or are these standard varibles? LB::server addr

     

    IP::client_addr]/24
  • The IP::client_addr is the going to pull the client address that is requesting the VIP.