Forum Discussion
iRule for Snat pool association
I'm not sure I understand you correctly, do you want to keep the three last octects in the IP address and use as a SNAT address - so if the source address is 192.168.0.32 you want the SNAT address to be 10.168.0.32. Is that what you want to do?
If so, yes it can be done but it's not a very realistic approach. The first part is simple, calculating an address to be used as a SNAT address is very simple. The tricky part however is that it's not enough to just use "snat 10.$xyz" because the BIG-IP needs to have an ownership of that address, otherwise it will not respond to ARP requests for that address which means that the response traffic will never be sent to the BIG-IP. Typically that is solved by adding the possible SNAT addresses to a snatpool but if you want individual SNAT addresses for all source addresses the snatpool will be HUGE!
If on the other hand you want 192.168.0.0/24 to be translated to one SNAT address, 192.168.1.0/24 to translated to another address and so on, that is quite feasible because we don't need thousands of addresses in the snatpool. So can you clarify your scenario?
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com