Temp to perm ban works until you remove the IP
-
- Junior Member
- Posts: 11
- Joined: 04 Feb 2014, 01:17
Temp to perm ban works until you remove the IP
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
I am interested in know CSF answer.
Sergio
Sergio
-
- Moderator
- Posts: 1524
- Joined: 01 Oct 2008, 09:24
Re: Temp to perm ban works until you remove the IP
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
Could it be a good idea to clean the /var/lib/csf/csf.tempip if there is no temp ips ?
Sergio
Sergio
-
- Moderator
- Posts: 1524
- Joined: 01 Oct 2008, 09:24
Re: Temp to perm ban works until you remove the IP
This should be fixed in csf v6.43:
http://blog.configserver.com
http://blog.configserver.com
Re: Temp to perm ban works until you remove the IP
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
Sergio
-
- Moderator
- Posts: 1524
- Joined: 01 Oct 2008, 09:24
Re: Temp to perm ban works until you remove the IP
You can empty the file if you want to.
Re: Temp to perm ban works until you remove the IP
Thanks! I have done that, appreciated.
Sergio
Sergio