Forum Discussion
Philippe_Tempel
Nimbostratus
Dec 05, 2012Permit only North American network blocks
Is it possible to only permit North American netowrk bloks to an F5 hosted site (or VIP)? I would get the list for Canada, US and Mexico from here: http://www.ipdeny.com/ipblocks/. Then massage it ...
hoolio
Cirrostratus
Dec 05, 2012Hi Philippe,
This should be very simple using the whereis command to query the client IP address in the inbuilt GeoIP database:
https://devcentral.f5.com/wiki/iRules.whereis.ashx
when CLIENT_ACCEPTED {
if {not ([whereis [IP::client_addr] continent] eq "NA")}{
reject
}
}
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects