Forum Discussion
Terry_Schmidt_1
Nimbostratus
Jun 10, 2014access control iRule
I cannot seem to get an access control iRule working. I am trying to limit access to a virtual server to only two external IP addresses. I have copied and modified an iRule found on F5 support site b...
Cory_50405
Noctilucent
Jun 10, 2014Apologies for the oversight. This should allow only the two addresses specified:
when CLIENT_ACCEPTED {
if { ! [IP::addr [IP::client_addr] equals 10.10.10.10] or [IP::addr [IP::client_addr] equals 10.10.10.20]} {
reject
log local0. "Connection dropped from [IP::client_addr]"
}
}
I loaded this in my 11.4.1 LTM without issue. What was the error you are seeing for the previous rule? Error when trying to load it, or error in the log?
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