Forum Discussion

DipantS_22849's avatar
DipantS_22849
Icon for Nimbostratus rankNimbostratus
Apr 06, 2014

Irule for Destination IP address and SNAT.

Hello Guys -- Can you please help with an irule which looks at the destination IP address, if destination is matched its SNAT's the IP address and send the traffic out to a specific pool. If no match, sends the packet to a default pool.

 

1 Reply

  • You should be able to use the code shown here as a base for what you are trying to do:

     

    https://devcentral.f5.com/questions/how-to-use-irule-to-create-snat-based-on-destination-ip-address

     

    Keep in mind that if you are making more than one or two comparisons, you would do well to use the 'switch' statement.