Closed brouillette closed 4 years ago
A MaxMind's license key is required in order to download GeoLite2 databases now.
@jpillora I have created a service to download GeoIP databases called geoip-updater and I think we could use the MaxMind client here. What do you think?
Hmm the web archive server doesn't answer now. Too bad. Your ipfilter package was quite nice and easy to use, but this breaks it. It would be nice to have an option to disable GeoIP filtering completely in the meanwhile (so that we don't need the DB). Something exactly like
f, err := ipfilter.New(ipfilter.Options{
AllowedIPs: my_list_of_whitelisted_ips,
BlockByDefault: true,
IPDBNoFetch: true,
})
but which doesn't panic like panic: IP DB not found and fetch is disabled
while the DB is not being used in this conf.
This archive link doesn't answer here ? Anyway I ended up subscribing to maxmind and using their mmdb
file, thanks!
The archive link worked for me, but I don't know how long it will hold up before the archive is overwritten. Until then, this will do! Thanks
I'm getting this error upon startup;
After running ipfilter.New(...)
""" Get http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.mmdb.gz: dial tcp: lookup geolite.maxmind.com on 127.0.0.11:53: no such host """
The site is down - what should be done instead? Wait for it to come back up, or use a different library?
Thanks..