Closed AnthonyBe closed 3 years ago
using the following you can generate an ASN geoip.dat file from the free geoip2 files
using the following you can generate an ASN geoip.dat file from the free geoip2 files
Oh cool! Thank you so much for sharing that. I'll check it out!
Thanks @visualperception - works perfectly.
For the record in case anyone else wants to use this (I'm running on Windows):
I've got the following in a script scheduled to run weekly: NOTE: in script below, YOUR_LICENSE_KEY needs to be replaced by your Maxmind license key (this is free version)
curl "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-ASN-CSV&license_key=YOUR_LICENSE_KEY&suffix=zip" --output GeoLite2-ASN-CSV.zip
python geolite2legacy.py -i GeoLite2-ASN-CSV.zip -o GeoIPASNum.dat
geolite2legacy is in Python. I'm using Python 3.9.1 for Windows. You will need to install ipaddr Python module
I'm wondering if anyone is working on, or if it is even viable, plugin modules for:
Commercial: Anonymous IP, Connection Type, Domain, ISP https://www.maxmind.com/en/geoip2-databases https://dev.maxmind.com/geoip/geoip2/downloadable