English Forums > Intrusion Detection and Prevention

GEOip

(1/4) > >>

neggard:
Now when the new GEOip is here and you create a new license key
should the key be used with  geopipupdate 3.1.1 older or newer?

fluss:
Neither,
when asked "Will this key be used for GeoIP Update?" select No.

Works fine for me anyways.

/fluss

JohnnyBeee:
Well I am sorry, but I think there may be some bug here.

For "Will this key be used for GeoIP Update?" I selected "No".
I have then set the URL as explained in the help and nothing happens - the last updated timestamp remains empty and I still get the same reminder ("In order to use GeoIP, you need to configure a source in the GeoIP settings tab").
When I enter the URL in a browser I get the zip file alright.
Even when I put the file on my own web server and enter a URL to my own server (in the form of http://192.168.0.10/geolite2.zip) it does not work.

I have version 19.7.10

Please advise.

PS. What is the expected file format? What should be in the zip? What should the format of the CSV file(s) (name, content) be? Can we use other providers? If yes, how?

marjohn56:
Check to see what's happening. look at message #62 here:


https://forum.opnsense.org/index.php?topic=15409.msg70705#msg70705


Just tried it here on a new instance of OPNsense and it worked first time. The content of the zip file is a folder named 'GeoLite2-Country-CSV_**DATE**


In that folder are a bunch of csv files.


Just to double check, the format of the url should be:


https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country-CSV&license_key=YOUR_KEY&suffix=zip

JohnnyBeee:
Check to see what's happening. look at message #62 here:
>>> Why would I need to try some Python command if any old browser downloads the zip fine with the URL I provide to OPNsense?
Even when I put the file on my own web server and enter a URL to my own server (in the form of http://192.168.0.10/geolite2.zip) it does not work.
If there were any problem with the URL, shouldn't that show in some log?

Just tried it here on a new instance of OPNsense and it worked first time.
>>> Good. However shouldn't it work for existing installations?

The content of the zip file is a folder named 'GeoLite2-Country-CSV_**DATE**
>>> Yep, the zip downloaded using my web browser (or postman for that matter) contains what you say (folder GeoLite2-Country-CSV_20200128 with a bunch of CSV files). But again, it should work with OPNsense or, if any problems, show some meaningful error.



In that folder are a bunch of csv files.

Navigation

[0] Message Index

[#] Next page

Go to full version