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...
Terry_Schmidt_1
Nimbostratus
Jun 11, 2014Thanks Cory, but I think we have solved this by using this code:
when CLIENT_ACCEPTED { if { not ( [class match [IP::client_addr] equals rtp_allow] ) } { reject } }
This has a Data Group (rtp_allow) with the two IP address in it that are to be allowed. In testing we were able to include my IP address in this Data Group and I was able to access the internal web server page and when my IP address gets removed from the Data Group the web page is not available.
Cory_50405
Noctilucent
Jun 11, 2014That's a good scaling solution if you want to add more addresses to it moving forward. Glad to hear you got it working.
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