How to Convert a Maxmind .MMDB to .DAT?

Dev3182805 picture Dev3182805 · Jan 10, 2014 · Viewed 27.5k times · Source

How to convert MaxMinds MMDB GeoIP to DAT format so that I can use with modsecurity+Apache. Modsecurity supports only DAT format.

Answer

IanB picture IanB · Feb 14, 2019

As of February 2019, the following Python script is the best option for converting GeoIP2 MMDB format to legacy .dat format:

https://github.com/sherpya/geolite2legacy

Using this script, somebody has done the conversion and made the resulting .dat files available for download:

https://www.miyuru.lk/geoiplegacy