Forum Discussion
Kevin_Nail
Nimbostratus
Mar 04, 2010SNAT based on incoming IP
I have a need to snat based on the incoming IP. It should be relatively straight forward but I can't seem to make my mind wrap around this.. or what's the best way to do it.
I have a pr...
nitass
Employee
Oct 19, 2011e.g.
[root@iris:Active] config b rule myrule list
rule myrule {
when CLIENT_ACCEPTED {
if {[class match [IP::client_addr] equals client_ips]} {
snat [class match -value [IP::client_addr] equals client_ips]
} else {
forward
}
}
}
[root@iris:Active] config b class client_ips list
class client_ips {
{
network 10.9.9.0/26 { "1.1.1.1" }
network 10.9.9.64/26 { "2.2.2.2" }
network 10.9.9.128/26 { "3.3.3.3" }
}
}
hope this hleps.
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
