How to Convert a Maxmind .MMDB to .DAT?

为君一笑 提交于 2020-01-02 00:14:07

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!