Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Clear all filters
Answers

SNAT: Different snat pools for different client ips.

I have the following requirement that I need to configure for outbound connections.

  • SUBNETSA&B - SNAT POOL 1
  • SUBNETSC&D - SNAT POOL 2
  • ALL OTHER SUBNETS - AUTOMAP

I was thinking of have 3 x IP forwarding Virtual Servers with irule referencing a datagroup list(for the source ips) and then apply the relevant source nat to the VS. Is that the cleanest way of doing it?

irule: Image Text

0
Rate this Question

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

You can just use the snat command in iRules to determine what the snat address should be. For snat pools, the syntax is just "snat name_of_snat_pool", for automap it is "snat automap"

0
Comments on this Answer
Comment made 1 month ago by Rico 864

This article might help you as well

0