class subsite {
"/admin"
}
class allow {
host 215.45.65.25
network 192.168.0.1 255.255.255.0
}
when HTTP_REQUEST {
if { not [matchclass [IP::client_addr] equals $::allow] && [matchclass [string tolower [HTTP::uri]] contains $::subsite] } {
discard
} else {
}
}
The errors are 01070151:3: Rule [subsite_ACL] error: line 1: [command is not valid in the current scope] [class subsite { "/admin" } ] line 5: [command is not valid in the current scope] [class allow { host 216.81.150.194 network 192.168.0.1 255.255.255.0 } ]
Please help!