All, I am trying to understand the behaviour of the below irule. It was meant to block access to the down.php URI, except from the two src ip ranges stated, however it blocks access from any location and I cant see why
when HTTP_REQUEST {
log local0. " Request in [IP::client_addr] [HTTP::host][HTTP::uri]"
if { [HTTP::uri] contains "/down.php" && ( ![IP::addr [IP::remote_addr] equals 75.66.12.0/255.255.255.0]) or
[HTTP::uri] contains "/down.php" && ( ![IP::addr [IP::remote_addr] equals 15.150.0.0/255.255.0.0])
} {
log local0. " Blocked access [IP::client_addr] [HTTP::host][HTTP::uri]"
drop the request
discard
}
}