Forum Discussion
Dan_Williams_25
Nimbostratus
Sep 19, 2005Selective SNAT iRule
Apologize if this has already been posted.
I recently upgraded to a pair of 6400s that are running v.9.0.5. During the days of 4.5.x, I was able to utilize a "Selective SNAT" rule of sorts t...
unRuleY_95363
Sep 19, 2005Historic F5 Account
That's probably not quite what you want. Maybe something like this:
when CLIENT_ACCEPTED {
if { not ([IP::addr [IP::remote_addr] equals "10.0.35.0/24"] and ([IP::addr [IP::local_addr] equals "192.168.1.0/24"] or [IP::addr [IP::local_addr] equals "172.16.1.0/24"] or [IP::addr [IP::local_addr] equals "10.0.1.0/24"])) } {
snatpool mysnats
}
pool forwarding_pool
}Note: as of 9.0.5, you no longer need to specify the mask on both arguments (it will correctly use the shortest mask).
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