问题
How to convert MaxMinds MMDB GeoIP to DAT format so that I can use with modsecurity+Apache. Modsecurity supports only DAT format.
回答1:
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
回答2:
The Legacy GeoIP builds (.dat) are not going away in the near future. If they do ever go away, you could build off of the .dat build program that Debian uses for its GeoLite databases (copy of it on GitHub) or this (untested) Python script.
回答3:
Here is the link to Maxmind's legacy (free) GeoIP databases in .dat format:
http://dev.maxmind.com/geoip/legacy/geolite/
来源:https://stackoverflow.com/questions/21050456/how-to-convert-a-maxmind-mmdb-to-dat