Page 1 of 1

Changelog and GeoIp (csf 7.0x)

Posted: 06 May 2014, 18:07
by P4D-830
Hi, just for (my) info...
the change.log (for 7.00) says

Code: Select all

 Ensure GeoIPCountryWhois.csv is removed before processing a new d/b download
If i do this (delete/remove it) csf hangs in a loop (it downloads the "GeoIPContryWhois.zip") and report this

Code: Select all

May  5 18:19:51 bf2-gs lfd[13725]: CC: Retrieving GeoLite CSV Country database [http://geolite.maxmind.com/download/geoip/database/GeoIPCountryCSV.zip]
May  5 18:19:54 bf2-gs lfd[13725]: CC Error: GeoIPCountryWhois.csv empty or missing
May  5 18:19:54 bf2-gs lfd[13725]: CC: Processing GeoLite CSV Country database
May  5 18:19:54 bf2-gs lfd[13725]: CC: Extracting zone from GeoLite CSV Country database for [UA]
May  5 18:19:54 bf2-gs lfd[13725]: CC: No entries found for [UA] in /var/lib/csf/zone/GeoIPCountryWhois.csv

[...]

May  5 18:19:57 bf2-gs lfd[13725]: CC: Repopulating CC_DENYP with IP addresses from [UA]
May  5 18:19:57 bf2-gs lfd[13725]: CC: Finished repopulating CC_DENYP with IP addresses from [UA]
So it looks like that csf can not handle this - if the DB file does not exist (see above in "changelog").

Then if i get and extract this DB manual and move this to the right place (that csf normaly use there for) it will work...

Code: Select all

May  6 07:07:25 bf2-gs lfd[26284]: CC: Processing GeoLite CSV Country database
May  6 07:07:26 bf2-gs lfd[26284]: CC: Extracting zone from GeoLite CSV Country database for [UA]

[...]

May  6 07:07:38 bf2-gs lfd[26284]: CC: Repopulating CC_DENYP with IP addresses from [UA]
May  6 07:07:39 bf2-gs lfd[26284]: CC: Finished repopulating CC_DENYP with IP addresses from [UA]
So normal - csf get and use (extract) the "GeoIPContryWhois.zip" if an older version exist.
Without - an older version (as .zip or extracted file) - it does not work... any more.

Seen on debian 6, with apache - running as pure gameserver file root (means no mysql/php., ect.pp. is there installed or used). CSF runs in generic mode.

So - is the changelog wrong at this point or do i missunderstand this... entry here ?
cu

Re: Changelog and GeoIp (csf 7.0x)

Posted: 06 May 2014, 18:27
by ForumAdmin
The changelog is correct. Your issue suggests that the unzip failed. Is the UNZIP setting in /etc/csf/csf.conf pointing to the unzip binary location (assuming that you have installed it).

If you mean that YOU removed the file, then you should not do that. That is not what the changelog means. It means the script will ensure the file is removed if necessary.