Tyson_James
Mar 15, 2018Altostratus
iRule to only allow traffic from US, Canada and private networks....
We have a current iRule that only accepts traffic from the US or private networks ( non-routable ). Shown below :
when CLIENT_ACCEPTED {
if {not ([whereis [IP::client_addr] country] eq "US") and not ([class match [IP::client_addr] equals "private_net"])
}
{reject}
}
We have now been asked to allow Canada as well. We are very new to F5 and iRules and are unable to figure out the logic needed.
Any assistance would be greatly appreciated. TIA.