Forum Discussion

SergeGhanem_121's avatar
SergeGhanem_121
Icon for Nimbostratus rankNimbostratus
Mar 21, 2013

No NAT for a specific URL request

Hi,

 

We have to write an iRule, if the destination is a specific URL (4shared,…), the source IP should remain the same, it should not nat this type of traffic.

 

Any Idea??

 

Thanks.

 

3 Replies

  • you can check uri using HTTP::uri and disable snat using "snat none".

     

     

    HTTP::uri wiki

     

    https://devcentral.f5.com/wiki/irules.http__uri.ashx

     

     

    snat wiki

     

    https://devcentral.f5.com/wiki/irules.snat.ashx
  • Thanks a lot for your reply nitass,

     

     

    i am a little bit new with irules. Do you think with the below syntax it will work ?

     

     

    when HTTP_REQUEST {

     

    if { [HTTP::uri] starts_with "google.com" } {

     

    snat none

     

    }

     

    }

     

     

    Thanks for your advise.