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

This forum is only for reproducible bugs with csf and lfd (i.e. not iptables problems, lack of understanding how to use a feature, etc). Posts must be accompanied with full technical details of the problem and how it can be recreated. Any posts not adhering to this, or not considered bugs, will be moved to the General Discussion (csf) forum.
Post Reply
david_we
Junior Member
Posts: 3
Joined: 02 Nov 2010, 11:39

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

Post 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)
ForumAdmin
Moderator
Posts: 1524
Joined: 01 Oct 2008, 09:24

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

Post 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".
marcele
Junior Member
Posts: 215
Joined: 17 Sep 2007, 17:02

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

Post 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)
Post Reply