Forum Discussion
Modifying irule for geofiltering to include allowed ips
Hi Chris thanks for the quick reply, we are running 10.2, and you were right in your assumptions that we would want to forward all the traffic
that meets the required criteria.
/Craig
when HTTP_REQUEST {
if {([class match [whereis [IP::client_addr] country] eq allowed_country] or [class match [IP::client_addr] eq allowed_ip])} {
Uncomment the line below to turn on logging.
log local0. "Valid client IP: [IP::client_addr] - forwarding traffic"
forward }
else {
HTTP::respond 403 content "Not Allowed"
log local0. "Blocked Country client IP: [IP::client_addr] from [whereis [IP::client_addr] country]" } }
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
