Mazhar_Rafi_170
Dec 16, 2014Nimbostratus
Irule Help
Hello everyone,
How can I add additional Country codes and address data groups to the following irule. Let say I want to add another data group called "BRAZIL_IPs" in addition to ALLOWED_IPs_INDIA. Also I want to add brazil in the allowed CC list. Please help.
when CLIENT_ACCEPTED { set CC [whereis [IP::client_addr] country]
if { !([class match [IP::client_addr] equals ALLOWED_IPs_INDIA] or $CC equals "SA" or $CC equals "IN ) } { drop
}
}