Forum Discussion
Lucas_Kaczmarsk
Nimbostratus
Mar 06, 2015irule problem - allow only selected IPs
Hello Guys,
I'm new to irules so please excuse my basic question. I'm trying to allow traffic only to the two IP addresses, but the irule below only matches the first one. Any idea why?
whe...
Michael_Jenkins
Cirrostratus
Mar 06, 2015Or you could try with a
switch statement instead, like this:
when HTTP_REQUEST {
switch [IP::addr [IP::remote_addr] mask 255.255.255.255] {
"1.1.1.1" -
"2.2.2.2" {
Do nothing
}
default {
reject
}
}
}
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