Page 1 of 1

Temp to perm ban works until you remove the IP

Posted: 04 Feb 2014, 01:29
by cloudseeder
Once an IP address has been through the temp to perm ban cycle the status is changed to PERM in /var/lib/csf/csf.tempip. If you then remove the ban on the IP using "csf -dr IP" the IP will never be subject to being banned again because the entry in /var/lib/csf/csf.tempip is not removed and lfd ignores new entries if it finds a matching IP entry with a PERM ban flag. I think the lfd code looks sane (quick look) but "csf -dr should remove the entry from /var/lib/csf/csf.tempip as well as from /etc/csf/csf.deny.

Re: Temp to perm ban works until you remove the IP

Posted: 04 Feb 2014, 03:48
by Sergio
I am interested in know CSF answer.

Sergio

Re: Temp to perm ban works until you remove the IP

Posted: 04 Feb 2014, 12:10
by ForumAdmin
Thank you for reporting this. We'll have a fix for it in the next release of csf.

Re: Temp to perm ban works until you remove the IP

Posted: 04 Feb 2014, 16:28
by Sergio
Could it be a good idea to clean the /var/lib/csf/csf.tempip if there is no temp ips ?

Sergio

Re: Temp to perm ban works until you remove the IP

Posted: 06 Feb 2014, 12:10
by ForumAdmin
This should be fixed in csf v6.43:
http://blog.configserver.com

Re: Temp to perm ban works until you remove the IP

Posted: 06 Feb 2014, 14:37
by Sergio
Once again, my question, is ok to clean csf.tempip? I don't need any IPs that are there. Or is there a clean utility among CSF to clean that type of files?

Sergio

Re: Temp to perm ban works until you remove the IP

Posted: 06 Feb 2014, 15:06
by ForumAdmin
You can empty the file if you want to.

Re: Temp to perm ban works until you remove the IP

Posted: 06 Feb 2014, 16:35
by Sergio
Thanks! I have done that, appreciated.

Sergio