Forum Discussion
hooleylist
Feb 09, 2010Cirrostratus
Hi 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