Forum Discussion
SNAT 1:1 - Map client public IP to nat pool IP
This isn't possible using SNAT pools.
You might be able to use an iRule similar to what's described here.
when CLIENT_ACCEPTED {
snat "172.23.180.[getfield [IP::client_addr] . 4]"
}The iRule above doesn't require any SNAT object be applied to the Virtual Server.
The iRule will use the last octet of the source IP to SNAT to 172.23.180.x.
∟ For example: Source = 1.1.1.50, SNAT = 172.23.180.50.
- ZANOOBAug 29, 2023
Cirrus
Hello Andrew,
I am trying to have almost the same, however, to MAP the SNAP pool IP to be the same exact as the source.
For example: if my client's IP is 172.1648.10 then SNAT also has to be 172.16.48.10. (one-to-one mapping).
Can i apply the same irule (with SNAT set to none on the virtual server or SNAT set to SNAT pool?)
when CLIENT_ACCEPTED
{ snat "172.16.[getfield [IP::client_addr].[getfield [IP::client_addr]}
the last two octets will be replaced with the client's last two octets?
Regards
Zanoob
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
