ubuntu curl issue, needing linux gurus
-
Hello,
I am trying to download the GeoLite2-City.tar.gz mmdb so that I can setup a GeoIP Plugin within GrayLog for my PfSense firewall logs. When I run curl -O on the DL location of this file ubuntu is storing the document as the URL name. If I specify the name explicitly, I am returned an error that the file is ascii format. I've tried downloading the file directly to my windows pc, then reuploading it as mmdb for DL off a google drive location, the error is the same, the file is not gz format. What am I missing here?
https://www.maxmind.com/en/accounts/406354/geoip/downloads
-O -
And what's in that ASCI file ?
@beachbum2021 said in ubuntu curl issue, needing linux gurus:
I am returned an error that the file is ascii format. I've tried downloading the file directly to my windows pc, then reuploading it as mmdb for DL off a google drive location, the error is the same
So, it's not CURL, as 'Windows' (a browser ?) also gets an ASCI file.
So most probably : 'GEOIP' sends you an ASCI file. -
Hello!
Try the "Get Permalinks" option for a more curl friendly link.
Check the -O curl option to make sure that is really what you want.Something like this should work :
curl -o fubar.tar.gz "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City&license_key=YOUR_LICENSE_KEY&suffix=tar.gz"
If the download comes out as ascii...
[2.5.0-RELEASE][admin@pfSense.localdomain]/tmp: file fubar.tar.gz fubar.tar.gz: ASCII text
Cat it to see where you messed up...
[2.5.0-RELEASE][admin@pfSense.localdomain]/tmp: cat fubar.tar.gz Invalid license key
John
-
@serbus said in ubuntu curl issue, needing linux gurus:
Invalid license key
That's far better as saying : [some tool said] : ASCI file.
The tool - file - was right.
It doesn't look like an asci file.
And I bet it has a size of 18 bytes (or the gz file header is already more then 1 kilo bytes).Here I can introduce :pfBlockerNG MaxMind Registration required to continue to use the GeoIP functionality!
So, you could use curl.
But you have to include parameters, like the licence key as geoip isn't accessible without it.
The geo server needs to know who you are - entitled to download. -
This post is deleted! -
@serbus that did the trick
-
This post is deleted!