Is there a way to whitelist on country code?
I use blacklist countrycode and see its intensive work for the router.
I would only like to approve a few countries.
Isn't this also an option that many people would use?
Something with:
I use blacklist countrycode and see its intensive work for the router.
I would only like to approve a few countries.
Isn't this also an option that many people would use?
Something with:
Code:
ipset -N geoAllowIP nethash
for IP in $(wget -O http://www.ipdeny.com/ipblocks/data/countries/{uk,es}.zone)
do
ipset -A geoAllowIP $IP