GeoIP lookup broken with latest maxmind db

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
murmaider
Junior Member
Posts: 1
Joined: 20 Nov 2019, 11:05

GeoIP lookup broken with latest maxmind db

Post by murmaider »

Hi,

There has been an update to the GeoLite2-Country-Locations-en.csv file that comes from maxmind.

Prior to around 31st October 2023, the GeoLite2-Country-Locations-en.csv file had this entry:

Code: Select all

2750405,en,EU,Europe,NL,Netherlands,1
After the 1st November 2023, this line has been updated to:

Code: Select all

2750405,en,EU,Europe,NL,"The Netherlands",1
For some reason, csf is having an issue with parsing "The Netherlands" and is causing the csf ip lookups to fail.

Code: Select all

# csf --iplookup 169.159.129.125
169.159.129.125 (-)

# sed -i 's/\"The Netherlands\"/Netherlands/g' /var/lib/csf/Geo/GeoLite2-Country-Locations-en.csv

# csf --iplookup 169.159.129.125
169.159.129.125 (ZA/South Africa/-)

This is using csf: v14.20

Regards,
Dave
Post Reply