xtables-addons-common: cannot find or open GeoIPCountryCSV.zip

As of January 2019 MaxMind stopped providing old format CSV file for their GeoLite2 IP database. More info at their page.

Unfortunately this left everyone relying on xtables-addons-common to make geographyically conditioned iptables rules without an update source. Even the most unstable Debian is affected by this problem.

This is the current result of running xt_geoip_dl:

root@serverx:/usr/share/xt_geoip# /usr/lib/xtables-addons/xt_geoip_dl
--2019-03-15 16:23:44-- http://geolite.maxmind.com/download/geoip/database/GeoIPv6.csv.gz
Risoluzione di geolite.maxmind.com (geolite.maxmind.com)… 104.17.200.89, 104.17.201.89, 2606:4700::6811:c959, …
Connessione a geolite.maxmind.com (geolite.maxmind.com)|104.17.200.89|:80… connesso.
Richiesta HTTP inviata, in attesa di risposta… 404 Not Found
2019-03-15 16:23:44 ERRORE 404: Not Found.
--2019-03-15 16:23:44-- http://geolite.maxmind.com/download/geoip/database/GeoIPCountryCSV.zip
Riutilizzo della connessione esistente a geolite.maxmind.com:80.
Richiesta HTTP inviata, in attesa di risposta… 404 Not Found
2019-03-15 16:23:45 ERRORE 404: Not Found.
gzip: GeoIPv6.csv.gz: No such file or directory
unzip: cannot find or open GeoIPCountryCSV.zip, GeoIPCountryCSV.zip.zip or GeoIPCountryCSV.zip.ZIP.
Continua a leggere