Forum Discussion
swo0sh_gt_13163
Sep 16, 2013Altostratus
undefined 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...
Sep 16, 2013
Hi 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,
StephanRecent 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