Forum Discussion
TNY_122436
Nimbostratus
Sep 24, 2013iRule to snat on certain subnet
Hi all, I'm trying to figure out how to write an irule that can do proper snatting. Here is the scenerio:
There is a virtual server: 10.100.188.65
backend servers are: 10.100.181.72 & 10.100.181...
Kevin_Stewart
Employee
Sep 24, 2013You wouldn't want to use subnet notation on both sides of the evaluation. Try this:
when CLIENT_ACCEPTED {
if { [IP::addr [IP::client_addr] equals 10.100.181.0/24] } {
snat automap
} else {
snat none
}
}
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