Forum Discussion
swo0sh_gt_13163
Altostratus
Sep 16, 2013undefined procedure error in iRule
Hello Folks,
Could you please help me correcting my following iRule?
================================================================
when CLIENT_ACCEPTED {
if {
[IP::addr [IP::remote_addr] equa...
StephanManthey
Nacreous
Sep 16, 2013Hi Darshan,
the datagroup based version is more flexible regarding subnet mask length. Using the following 'switch' based approach limits you to a fixed subnet mask length.when CLIENT_ACCEPTED {
switch [IP::addr [IP::client_addr] mask 255.255.255.0] {
10.10.1.0 { snat 10.232.232.1 }
10.10.2.0 { snat 10.232.232.2 }
10.10.3.0 { snat 10.232.232.3 }
default { snat 10.232.232.4 }
}
}
Thanks,
StephanHelp 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
