Forum Discussion
PATLOC_183933
Nimbostratus
Jan 27, 2015irule segment network no match
this irule follow not matching:
when CLIENT_ACCEPTED {
set my_ip [IP::client_addr]
not matching
if { [IP::addr [IP::client_addr] equals 20.33.2.2] } {snatpool POOL-SNAT-CLD-REN
pool gateway-EQ...
StephanManthey
Nacreous
Jan 27, 2015Btw, there is an even better approach by using the "switch" command:
switch [IP::client_addr] {
"20.33.2.2" {
snatpool POOL-SNAT-CLD-REN
pool gateway-EQX-REN
}
"20.3.2.3" {
snatpool POOL-SNAT-CLD-RET
pool gateway-EQX-RET
}
}
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