Jure_Simsic_106
Feb 16, 2007Nimbostratus
Admin access check
I have a fairly basic irule that's giving me trouble. The idea is that when a client a ceirtain url, he get's allowed access (use another pool) in case his IP is from a valid subnet, otherwise we don't let him through. I have tried this, but I must have some error somewhere:
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/admin" and
{ if { [IP::addr[IP::client_addr] starts_with "10.10.10" ] or
[IP::addr[IP::client_addr] starts_with "10.10.11" ] }
use pool admin-pool
} else { drop }
}
}
Can anyone tell me what is wrong here