Forum Discussion
oguzy
Mar 15, 2018Cirrostratus
Hi Tyson,
You can try the below code:
when CLIENT_ACCEPTED {
if { not ([whereis [IP::client_addr] country] eq "US") and not ([whereis [IP::client_addr] country] eq "CA")} {
if { not ( [class match [IP::client_addr] equals private_net] ) } {
reject
}
}
}