GeoLocation not working
Posted: 17 Mar 2022, 18:17
csf: v14.16
Geolocation not working with maxmind:
The "fix" from this:
viewtopic.php?f=4&t=12044
still working, but it is lost every time the file is updated:
Geolocation not working with maxmind:
Code: Select all
root@server [/var/lib/csf]# grep -R 176.80.0.0
zone/es.zone:176.80.0.0/13
Geo/ip2asn-combined.tsv:176.80.0.0 176.80.255.255 3352 ES TELEFONICA_DE_ESPANA
Geo/dbip-country-lite.csv:176.80.0.0,176.87.255.255,ES
Geo/GeoLite2-ASN-Blocks-IPv4.csv:176.80.0.0/16,3352,"Telefonica De Espana"
Geo/GeoLite2-Country-Blocks-IPv4.csv:176.80.0.0/13,2510769,2510769,,0,0
Code: Select all
root@server [/var/lib/csf]# csf -i 176.80.231.121
176.80.231.121 (121.red-176-80-231.dynamicip.rima-tde.net)
root@server [/var/lib/csf]#
viewtopic.php?f=4&t=12044
still working, but it is lost every time the file is updated:
Code: Select all
root@server [/var/lib/csf]# echo ',,,,,,' >> /var/lib/csf/Geo/GeoLite2-Country-Locations-en.csv
Code: Select all
root@server [/var/lib/csf]# csf -i 176.80.231.121
176.80.231.121 (ES/Spain/121.red-176-80-231.dynamicip.rima-tde.net)
root@server [/var/lib/csf]#
Code: Select all
root@server [/var/lib/csf/Geo]#
total 121M
drw------- 2 root root 4.0K Mar 17 18:08 ./
drw------- 10 root root 4.0K Mar 17 19:00 ../
-rw-rw-r-- 1 root root 55 Mar 17 18:08 COPYRIGHT.txt
-rw------- 1 root root 31K Mar 17 17:53 countryInfo.txt
-rw------- 1 root root 25M Mar 17 17:53 dbip-country-lite.csv
-rw-rw-r-- 1 root root 19M Mar 17 18:08 GeoLite2-ASN-Blocks-IPv4.csv
-rw-rw-r-- 1 root root 4.6M Mar 17 18:08 GeoLite2-ASN-Blocks-IPv6.csv
-rw-rw-r-- 1 root root 14M Mar 17 18:08 GeoLite2-Country-Blocks-IPv4.csv
-rw-rw-r-- 1 root root 23M Mar 17 18:08 GeoLite2-Country-Blocks-IPv6.csv
-rw-rw-r-- 1 root root 9.7K Mar 17 19:24 GeoLite2-Country-Locations-en.csv
-rw------- 1 root root 37M Mar 17 17:54 ip2asn-combined.tsv
-rw-rw-r-- 1 root root 398 Mar 17 18:08 LICENSE.txt
-rw------- 1 root root 116 Jun 1 2021 README.txt
root@server [/var/lib/csf/Geo]# c