Forum Discussion
tnastars_92934
Nimbostratus
Feb 02, 2010Help With IRule to limit access via an address data group
Hello,
I have created the below iRule. I am trying to limit access to a URL based on a specific URI, but allow all traffic to any other URI going to the virtual server. My main questio...
hoolio
Cirrostratus
Feb 09, 2010Hi Tom,
That's correct. What are the symptoms of the problem? Can you add logging to the iRule to see what's happening?
when HTTP_REQUEST {
log local0. "[IP::client_addr]:[TCP::client_port]: [HTTP::method] to [HTTP::host][HTTP::uri]"
if { [HTTP::path] starts_with "/foo/"} {
log local0. "[IP::client_addr]:[TCP::client_port]: Matched path check"
if { not [matchclass [IP::client_addr] equals $::foo_IP]} {
log local0. "[IP::client_addr]:[TCP::client_port]: Blocking request"
HTTP::respond 403 content "403 - Forbidden"
}
}
}
Aaron
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
