OPNsense-Dashboard icon indicating copy to clipboard operation
OPNsense-Dashboard copied to clipboard

GeoIP Database download doesn't work

Open alexwmaustin opened this issue 10 months ago • 2 comments

The GeoIP curl command to download the database wasn't working for me at all.

I did some looking and found the solution. Looking here the curl command has to look like curl -O -J -L -u YOUR_ACCOUNT_ID:YOUR_LICENSE_KEY 'https://download.maxmind.com/geoip/databases/GeoLite2-Country/download?suffix=tar.gz' -o GeoLite2-Country.tar.gz

With your account_id being available at MaxMind, Login click the "My Account" button at the top and "Account ID" will be in the drop down.

This allowed me to curl the database properly, hope this helps.

alexwmaustin avatar Apr 03 '24 16:04 alexwmaustin

Nice that you figured that out. I downloaded it on my personal computer and copied it over.

MrFinchMkV avatar Apr 15 '24 13:04 MrFinchMkV

Switched curl for wget

wget -O GeoLite2-Country.tar.gz "https://download.maxmind.com/..." <- the same URL that's on the tutorial, including your LICENSE_KEY

Lot easier than curl IMHO

FeRChImoNdE avatar Apr 27 '24 17:04 FeRChImoNdE