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_50405Jun 11, 2014
Noctilucent
That's a good scaling solution if you want to add more addresses to it moving forward. Glad to hear you got it working.
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