iRule 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.
Now our developers have created an app they wish to test from anywhere on the Internet but still want restrict access based on source IP to the originlal test site.
i.e.
/authenticate :: permit 0.0.0.0/0
/* :: permit only x.x.x.x/y and host a.b.c.d
I have already created an iRule to rewite the client's URI request from "/" to our landing page - /web/landing_page - this is also working fine.
I was going to add a second iRule to the VS with priority set so that it execute following the rewrite iRule.
My logic for the second iRule:
priority 20
if http request uri eq /authenticate
permit
else if http request eq datagroup_string-class
permit
The data group would list the URI with a permited access-group address list as the value.
Questions:
Will my logic work?
Can I use a wildcard e.g. "/*" for the test site URI or do I have to have every URI listed?
Thanks!
Mark