Temp to perm ban works until you remove the IP

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
cloudseeder
Junior Member
Posts: 11
Joined: 04 Feb 2014, 01:17

Temp to perm ban works until you remove the IP

Post 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.
Sergio
Junior Member
Posts: 1712
Joined: 12 Dec 2006, 14:56

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

Post by Sergio »

I am interested in know CSF answer.

Sergio
ForumAdmin
Moderator
Posts: 1524
Joined: 01 Oct 2008, 09:24

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

Post by ForumAdmin »

Thank you for reporting this. We'll have a fix for it in the next release of csf.
Sergio
Junior Member
Posts: 1712
Joined: 12 Dec 2006, 14:56

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

Post by Sergio »

Could it be a good idea to clean the /var/lib/csf/csf.tempip if there is no temp ips ?

Sergio
ForumAdmin
Moderator
Posts: 1524
Joined: 01 Oct 2008, 09:24

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

Post by ForumAdmin »

This should be fixed in csf v6.43:
http://blog.configserver.com
Sergio
Junior Member
Posts: 1712
Joined: 12 Dec 2006, 14:56

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

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

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

Post by ForumAdmin »

You can empty the file if you want to.
Sergio
Junior Member
Posts: 1712
Joined: 12 Dec 2006, 14:56

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

Post by Sergio »

Thanks! I have done that, appreciated.

Sergio
Post Reply