Forum Discussion
somefreak_18447
Nimbostratus
Jan 27, 2015snat irule not working as expected
Hi All,
I have an existing, working irule that will snat based on the IP address (ie. if its off the corporate network 10.0.0.0/16 it will snat):
when CLIENT_ACCEPTED {
if {[class match [...
Eric_St__John
Employee
Jan 27, 2015Give this a shot.
when CLIENT_ACCEPTED {
if {[class match [IP::remote_addr] equals app_servers]}{
if {(not [IP::addr [IP::local_addr] equals 10.0.0.0/16]) or (not [IP::addr [IP::local_addr] equals 10.128.0.0/24])}{
snat 10.0.255.1 }
}
}
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