Re: How to set geoip country code for Crimea

2020-08-18 Thread Francis Daly
On Mon, Aug 17, 2020 at 11:35:12PM -0400, skwok wrote: Hi there, > I'd like to use the geoip module (v1) to block Crimea from access. The > syntax that I'm using is: > geoip_country /usr/share/GeoIP/GeoIP.dat; When all you have is country-level granularity, you can't block just part of a

How to set geoip country code for Crimea

2020-08-17 Thread skwok
Hi, I'd like to use the geoip module (v1) to block Crimea from access. The syntax that I'm using is: geoip_country /usr/share/GeoIP/GeoIP.dat; map $geoip_country_code $allowed_country { default yes; IR no; } As there is no ISO3166 code for Crimea (ht