GeoIP not working

Started by buckey96, January 24, 2026, 09:30:05 PM

Previous topic - Next topic
Hi!

I'm a bit late to the discussion, but today I've been configuring this and ended up here.

I read the post and felt discouraged bc at the end, it was mentioned that the issue was fixed in version 26.1, but I realized I was already running 26.1.6 and still had the same problem 😭

So I wanted to share what worked for me.

From the OPNsense console, I ran:

"configctl filter update geoip"  -->  this returned "OK"

Then I ran:
"configctl filter geoip stats" --> Interestingly, this referenced the CSV file that the GUI was trying to download from the URL

So, after following some AI suggestions/checking the Python scripts config, "we" concluded that the "Apply" button in the GUI does download the data using the URL with the license key, but it's the intermediate step, the trigger between the GUI downloading the data and using that data, that's failing.

So I manually executed:

"python3 /usr/local/opnsense/scripts/filter/download_geoip.py"

502 files written, with a total number of 1217420 lines
locations filename : GeoLite2-Country-Locations-en.csv
IPv4 filename : GeoLite2-Country-Blocks-IPv4.csv
IPv6 filename : GeoLite2-Country-Blocks-IPv6.csv

After running this, the GeoIP data finally appeared in the GUI.

Hope this helps someone!




In recent 26.1.x there's a Firewall: Aliases: Actions tab with "Update GeoIP" button to bridge that user gap. In theory the update is deferred for the right reasons, but users do not always agree.


Cheers,
Franco