Forum Discussion
Felix888_164906
Nimbostratus
Oct 01, 2014Hwo to do the conditional snat
Hi everyone:
I know ii shouldn't be a hard question, but I'm still new to F5. Any help will be great!
So what we want is to do the conditional snat for outgoing and incoming traffic. We have m...
Andrew_Husking
Cirrus
Oct 02, 2014If you have multiple VIPs, you only apply the SNAT config to the VIPs that need it.
If you are using a single VIP for all traffic, then something like this will work in an irule
when CLIENT_ACCEPTED {
if {!([IP::addr [IP::client_addr] equals "10.0.0.0 mask 255.0.0.0"]) } {
snatpool snatpool1
}
}
The above irule will use a snat pool called snatpool1 for all clients that don't have a 10.0.0.0/8 address.
Regards,
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects