I’m pretty weak with iRules so I was wondering if anyone has an idea on how to accomplish the following:
I need an iRule that checks for users destined for a subsite on our URL and then filtering through an ACL. I think this would be accomplished by first using:
when HTTP_REQUEST {
switch -regexp [string tolower [HTTP::uri] ] {
^/xxx
After determining users are destined to this subsite I need to apply the ACL and only allow those I specified in a Data Group List. I saw the sample for the ACL, but I having difficulty figuring out how I would tie the whole thing together. Any help greatly appreciated.
As Deb suggested before, you’d actually want to define the class as a type of ‘address’ to avoid doing a string comparison against the client IP address. This also allows you to define networks instead of individual hosts.
The bigip.conf entry should look like:
class myIPs {
host 10.10.1.1
network 192.168.1.1 255.255.255.0
}
And make sure you don’t have a space in the class references. They should be $::allow and $::subsite.