Forum Discussion
Rustic_57941
Nimbostratus
Dec 17, 2012iRule Newbie - Limit Access to URIs based on IP Source
Hi,
I am just starting out in the wold of iRules - apologises for any newbie errors.
We have a test site that where access control was based on a firewall ACL - pretty simple worked fine. ...
Mohamed_Lrhazi
Altocumulus
Dec 17, 2012Maybe your data could be like so:
/authenticate:=0.0.0.0/32
/web/landing_page:=1.2.3.4/32,1.2.3.5/32,192.168.0.0/16
...
then your irule could lookup the list of subnets for that matches the current URI, split it and then test the client_ip against each, if no match found, reject.
else, fall through and use default pool.
Maybe there is a much simpler way. read about class for some ideas maybe: https://devcentral.f5.com/wiki/irules.class.ashx
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