How to convert MaxMinds MMDB GeoIP to DAT format so that I can use with modsecurity+Apache. Modsecurity supports only DAT format.
Download databases through the account portalClick on 'Download Files' in the GeoIP2 / GeoLite2 menu in your account portal [direct link, login required]. A list of all databases you are subscribed to will be displayed to you. There will be entries both for our MMDB format files, and CSV format files.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With