Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
24.1 Legacy Series
»
GeoIP not working ?
« previous
next »
Print
Pages: [
1
]
Author
Topic: GeoIP not working ? (Read 2213 times)
saintjimmy
Newbie
Posts: 5
Karma: 0
GeoIP not working ?
«
on:
March 06, 2024, 04:36:12 pm »
Hello everyone,
I set up geoblocking following the official doc and it "seems" to be working.
I can see my blocking rule matching in the log, the geoip db seems to be updating.
Yet, I got alerts from countries I have blocked that appears in Wordfence alerts ?
Logged
cookiemonster
Hero Member
Posts: 1823
Karma: 95
Re: GeoIP not working ?
«
Reply #1 on:
March 06, 2024, 10:30:50 pm »
you can use the firewall > diagnostics > alias to look up the ip. If is not there, then the maxmind db is perhaps not updated.
If it is there, then it'll be good to see your firewall rule.
Logged
saintjimmy
Newbie
Posts: 5
Karma: 0
Re: GeoIP not working ?
«
Reply #2 on:
March 07, 2024, 01:04:02 pm »
One of the IP blocked by Wordfence appears in the alias so I guess the GeoIP DB updating right.
Logged
crazysense
Newbie
Posts: 5
Karma: 1
Re: GeoIP not working ?
«
Reply #3 on:
March 17, 2024, 05:22:09 am »
I'm having the same issue with GeoIP blocking. I followed the rules and everything and I can see I get the loaded categories or what ever it is getting from the Maxmind db, but when I hit apply I'm getting the error in the attached screenshot. There you can see I get the db and it gets filled but there are errors. I'm running the latest version of opnsense.
Logged
Sjakie
Newbie
Posts: 2
Karma: 0
Re: GeoIP not working ?
«
Reply #4 on:
March 20, 2024, 01:46:12 pm »
Geoip was working, it's not updating anymore, about after I got a mail from Maxmind about redirection of url's and stuff. In the mean time also updated to OPNsense OPNsense 24.1.3, I didn't check when Geoip stopped working,
Logged
YooDeePee
Newbie
Posts: 1
Karma: 0
Re: GeoIP not working ?
«
Reply #5 on:
May 04, 2024, 04:32:39 pm »
I ran into a similar situation with my install (v24.1.6). I was receiving an "error loading alias" when trying to update the Maxmind Geo IP data. It said I had recent geo ip data from the day before and I saw the usual number of about 784K entries according to the GeoIP tab, but any time I tried to pull data from Maxmind, it failed. I even tried creating a new license key but that did not work. I found that when I tried to create a new alias it failed with the same error.
I was able to get it working again by deleting my FW rules containing any GeoIP related Aliases. Then I deleted the aliases related to GeoIP. Next, I went into the GeoIP tab and tried another pull from Maxmind, and this time it worked.
I went back and recreated my aliases and rules, and I now see blocks showing up in my live firewall logs.
Def not an elegant solution to the problem, but it worked.
Logged
bsindia
Newbie
Posts: 8
Karma: 0
Re: GeoIP not working ?
«
Reply #6 on:
May 09, 2024, 03:39:26 pm »
I am in the process of configuring MGeoIP on my Opnsense. I am having trouble finding the correct down URL which is required as a part of the GeoIP settings.I have an account with Maxmind but just need to know where/how to find the proper URL (Maxmind) to be used for Geo updates. I appreciate your assistance. Thx
Logged
cookiemonster
Hero Member
Posts: 1823
Karma: 95
Re: GeoIP not working ?
«
Reply #7 on:
May 09, 2024, 06:03:47 pm »
It is the one you navigate to when you're logged in to Maxmind's site. You can use the GeoLite2-Country-CSV type.
Logged
bsindia
Newbie
Posts: 8
Karma: 0
Re: GeoIP not working ?
«
Reply #8 on:
May 11, 2024, 04:22:50 pm »
I fixed the issue mention by increasing the permitted firewall table size. I would still like to know how to properly update the GeoIP databases from MaxMind. Thanks
Logged
bsindia
Newbie
Posts: 8
Karma: 0
Re: GeoIP not working ?
«
Reply #9 on:
May 16, 2024, 04:07:45 pm »
Issues appears to be resolved. I am now receiving updates from Maxminbd. My only concern is that the IP range count has not changed. I will continue to monitor.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
24.1 Legacy Series
»
GeoIP not working ?