Forum Discussion
Kai_Wilke
Jan 14, 2019MVP
Hi Arjun,
for further troubleshooting you may add some log lines to your iRule, to see whats going on behind the scene...
when CLIENT_ACCEPTED {
if { [class match [IP::client_addr] eq private_net] } then {
log local0.debug "Allowing connection from Private IP=[IP::client_addr]"
return
} elseif { [whereis [IP::client_addr] country] contains "QA" } then {
log local0.debug "Allowing connection from from IP = [IP::client_addr] with Geo Location = [whereis [IP::client_addr] country]"
return
} else {
log local0.debug "Discarding connection from IP = [IP::client_addr] with Geo Location = [whereis [IP::client_addr] country]"
discard
}
}
Cheers, Kai