Forum Discussion
Spiderman_11815
Nimbostratus
Jan 23, 2013iRule for Conditional SNAT not working
Need help. iRule to perform source NAT based on source IP is not working. Requirement is "not to NAT" when source IP is from 172.21.10.0/24 and NAT for everything else. Even when I source it from the...
Spiderman_11815
Nimbostratus
Jan 24, 2013Steve,
Sorry I was working on the issue with F5 support. It is not working. Either it NATs for all IPs or does not NAT. We tried all the above iRules but did not have success. The support team was unsure why it did not work suspect something possibly with the use of route domains. We added a work around as below:
when CLIENT_ACCEPTED {
if { [IP::addr [IP::client_addr] equals 172.21.10.0%2/24] } {
} else {
snatpool SNAT-NATPOOLX
}
}
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