OPNsense Forum

English Forums => 25.1, 25.4 Production Series => Topic started by: lmstear on June 05, 2025, 12:55:17 PM

Title: can use the other geoip
Post by: lmstear on June 05, 2025, 12:55:17 PM
OPNsense 25.1.7_4-amd64
Can I use the other geoip's url but not MaxMind?

When I use the other geoip's url, the log show:
geoip update failed : HTTPSConnectionPool(host='*****', port=****): Max retries exceeded with url: *****/download/geoip.zip (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x2e0a2bfac90>: Failed to establish a new connection: [Errno 61] Connection refused'))
Title: Re: can use the other geoip
Post by: cookiemonster on June 05, 2025, 01:44:55 PM
Only geolite as far as I know. They (MaxMind) have a licencing regime and only have one free offering. You can only get what that gives. Unless of course you go for the non-free ones.
https://www.maxmind.com/en/geolite-free-ip-geolocation-data
Title: Re: can use the other geoip
Post by: lmstear on June 06, 2025, 04:19:55 AM
I want to use the geoip integrated by myself and generate urls in my computer for other programs to use
But as you said, Opnsense can only use MaxMind.

Is there any plan to use geoip that is not MaxMind?
Title: Re: can use the other geoip
Post by: cookiemonster on June 06, 2025, 10:09:27 AM
>? I want to use the geoip integrated by myself and generate urls in my computer for other programs to use
The url for maxmind has a section for developers. By looking at that documentation, you could get to understand how to interact programatically with their database(s). They provide APIs.
Title: Re: can use the other geoip
Post by: Patrick M. Hausen on June 06, 2025, 10:36:08 AM
You could use a host override in Unbound to point www.maxmind.com to your own server.
Title: Re: can use the other geoip
Post by: lmstear on June 06, 2025, 12:03:17 PM
Quote from: cookiemonster on June 06, 2025, 10:09:27 AM>? I want to use the geoip integrated by myself and generate urls in my computer for other programs to use
The url for maxmind has a section for developers. By looking at that documentation, you could get to understand how to interact programatically with their database(s). They provide APIs.

Yes. I have created the corresponding geoip file for myself and generated the url through the service on my computer, but Opnsense cannot be used. The error log is:
geoip update failed : HTTPSConnectionPool(host='*****', port=****): Max retries exceeded with url: *****/download/geoip.zip (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x2e0a2bfac90>: Failed to establish a new connection: [Errno 61] Connection refused'))
Title: Re: can use the other geoip
Post by: cookiemonster on June 07, 2025, 12:02:17 AM
perhaps you can revisit the manual for MaxMind for OPNSense https://docs.opnsense.org/manual/how-tos/maxmind_geo_ip.html
Is that how you have done it, and how and where is this attempt made?
Title: Re: can use the other geoip
Post by: meyergru on June 07, 2025, 12:08:49 AM
The specific error message does not seem to point to a logical error in the structure of the ZIP file or the content of the maps contained in it, but rather to the loading of the ZIP file itself.

I would guess that there could be a problem with the certificate of the web server (self-signed certificate?) or that the URL points to the external WAN IP of OpnSense itself and NAT reflection is not working as expected.