Page 1 of 1

Since last Tuesday, CSF can't geolocate Spanish IP addresses

Posted: 16 Dec 2020, 14:05
by david_we
Hello!

Since las Tuesday, CSF can't geolocate Spanish IP addresses when executing this:

csf -i 81.202.228.230

This commando retusn this:

# csf -i 81.202.228.230
81.202.228.230 (81.202.228.230.dyn.user.ono.com)

while in other countries it works welll, for example...:

## csf -i 8.8.8.8
8.8.8.8 (US/United States/dns.google)

We noticed that if we modify the database file like this:

echo ',,,,,,' >> /var/lib/csf/Geo/GeoLite2-Country-Locations-en.csv

Then, it works well again... This happens since last MaxMind Update this Tuesday...

csf -i 81.202.228.230
81.202.228.230 (ES/Spain/81.202.228.230.dyn.user.ono.com)

Re: Since last Tuesday, CSF can't geolocate Spanish IP addresses

Posted: 16 Dec 2020, 16:53
by ForumAdmin
We've made some improvements to the binary search for the maxmind lookups, for the next release of csf. In the meantime, you will have to either use your workaround or switch to CC_SRC = "2".

Re: Since last Tuesday, CSF can't geolocate Spanish IP addresses

Posted: 07 Oct 2024, 11:32
by marcele
Has this issue ever been properly fixed? It looks like we are having the same issue with csf: v14.22 and a Spain IP address 81.32.94.235:

When I check the CSVs

Code: Select all

GeoLite2-Country-Blocks-IPv4.csv:81.32.0.0/12,2510769,2510769,,0,0,
GeoLite2-Country-Locations-en.csv:2510769,en,EU,Europe,ES,Spain,1
Yet running csf -i returns no results:

Code: Select all

# csf -i 81.32.94.235
81.32.94.235 (235.red-81-32-94.dynamicip.rima-tde.net)