Welcome! Log In Create A New Profile

Advanced

How to set geoip country code for Crimea

August 17, 2020 11:35PM
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 (https://dev.maxmind.com/geoip/legacy/codes/iso3166/), I contacted Maxmind's support and they have provided me with this: https://dev.maxmind.com/release-note/crimea-accuracy-update-2019/ . Can someone please tell me how I can make use of that?

Thanks,

skwok
Subject Author Posted

How to set geoip country code for Crimea

skwok August 17, 2020 11:35PM

Re: How to set geoip country code for Crimea

Francis Daly August 18, 2020 04:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 64
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready