Free updated GeoIP legacy databases

Here you can find regularly updated versions of the discontinued GeoIP legacy databases. Many distributions still use old GeoIP libraries, so you might find these useful. I use these on many systems myself, so consider the files and site stable.

Conversion is done from Maxmind GeoLite2 databases, using forked version of geolite2legacy. All names/locations are in plain US-ASCII encoding, converted from UTF-8 with Python unidecode module. Build process tries carefully not to create bad databases.

License

As these converted databases originate from MaxMind GeoLite2 data, it is implied that the original GeoLite2 End User License Agreement applies to them too.

Please see: https://www.maxmind.com/en/geolite2/eula

Changelog

05.10.2024 - added GeoIPOrgv6 and GeoIPISPv6 databases.

Like v4 versions, they contain identical Organization info, taken from GeoLite2 ASN database. These can be used for example Apache HTTP server mod_geoip module, which is not able to read ASN format database. Using "GeoIPDBFile GeoIPOrgv6.dat" will enable GEOIP_ORGANIZATION environment variable.

18.09.2022 - added IPv4 mappings to IPv6 databases.

GeoIPv6.dat, GeoIPCityv6.dat, GeoIPASNumv6.dat can now be queried with IPv4 mapped addresses (e.g. ::ffff:1.1.1.1), so they can be used with Nginx (some info here, here, here). Cheers to Adrian M for the hint.

29.05.2022 - geoip_update.sh v0.24.

Check for new path /usr/libexec/xtables-addons/xt_geoip_build, found in Ubuntu 22.04.

01.07.2020 - added GeoIPOrg and GeoIPISP databases.

They contain identical Organization info, taken from GeoLite2 ASN database. These can be used for example Apache HTTP server mod_geoip module, which is not able to read ASN format database. Using "GeoIPDBFile GeoIPOrg.dat" will enable GEOIP_ORGANIZATION environment variable.

24.05.2020 - geoip_update.sh v0.23.

Fixes xtables-addons 3.8+ requiring csv in dbip format. Found in Ubuntu 20.04 for example. What a stupid way to break things, since their xt_geoip_build script could have easily detected which format is fed.. now even the input filename is hardcoded, pfft.

Download

It's enough to download these once a week. Unpack to /usr/share/GeoIP or equivalent directory.

You can use my geoip_update.sh script if needed, instructions found within. Always carefully audit any downloaded scripts!

FileDescriptionUpdated                
GeoIP.dat.gzGeoIP Country IPv4 database.30 November 2024
GeoIPv6.dat.gzGeoIP Country IPv6 database.30 November 2024
GeoIPCity.dat.gzGeoIP City IPv4 database.30 November 2024
GeoIPCityv6.dat.gzGeoIP City IPv6 database.30 November 2024
GeoIPASNum.dat.gzGeoIP ASN IPv4 database.02 December 2024
GeoIPASNumv6.dat.gzGeoIP ASN IPv6 database.02 December 2024
GeoIPISP.dat.gzGeoIP ISP IPv4 database.02 December 2024
GeoIPISPv6.dat.gzGeoIP ISP IPv6 database.02 December 2024
GeoIPOrg.dat.gzGeoIP Organization IPv4 database.02 December 2024
GeoIPOrgv6.dat.gzGeoIP Organization IPv6 database.02 December 2024
GeoIP-legacy.csv.gzGeoIP Country for iptables xt_geoip module (use geoip_update.sh).
CSV built with GeoLite2xtables.
30 November 2024
geoip_update.shExample download script.05 October 2024

Contact

In case of problems, contact: admin@mailfud.org