CGI
Jan 11, 2011Altostratus
Irule problem
Hi iam trying to combine a couple of functions into one irule, the irule should look at the origin land
of the request allowing only countries i a specific data list and then look at the the i...
when CLIENT_ACCEPTED {
if { ([class match [whereis [IP::client_addr] country] eq allowed_country] or [class match [IP::client_addr] eq allowed_ip]) } {
set allowed 1
} else {
log local0. "Blocked Country client IP: [IP::client_addr] from [whereis [IP::client_addr] country]"
set allowed 0 }
}