csf.deny doesnt accept any more lines

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
ElYepez
Junior Member
Posts: 7
Joined: 28 Oct 2012, 15:41

csf.deny doesnt accept any more lines

Post by ElYepez »

Hi Sirs,

I used this product for more than 3 years and never happened this. Since yesterday and after my CSF upgraded form vers-5.65 to 5.66 my csf.deny file doesnt accept any more lines, showing this lots of messages in my lfd-log:
Oct 28 06:44:07 moche lfd[12889]: *Error*: csf output: deny failed: tcp|in|d=22|s=37.55.225.145 is in already in the deny file /etc/csf/csf.deny 68 times
Oct 28 06:44:07 moche lfd[12889]: (sshd) Failed SSH login from 37.55.225.145 (UA/Ukraine): 4 in the last 3600 secs - *Blocked in csf* port=22 [LF_SSHD]
Oct 28 06:44:12 moche lfd[12921]: *Error*: csf output: deny failed: tcp|in|d=22|s=37.55.225.145 is in already in the deny file /etc/csf/csf.deny 68 times
Oct 28 06:44:12 moche lfd[12921]: (sshd) Failed SSH login from 37.55.225.145 (UA/Ukraine): 4 in the last 3600 secs - *Blocked in csf* port=22 [LF_SSHD]
...... more than 36 messages like this ........

Oct 28 08:02:46 moche lfd[18267]: (sshd) Failed SSH login from 64.31.20.117 (US/United States/): 4 in the last 3600 secs - *Blocked in csf* port=22 [LF_SSHD]
Oct 28 08:02:51 moche lfd[18329]: *Error*: csf output: deny failed: tcp|in|d=22|s=64.31.20.117 is in already in the deny file /etc/csf/csf.deny 68 times
Oct 28 08:02:53 moche lfd[18329]: (sshd) Failed SSH login from 64.31.20.117 (US/United States/): 4 in the last 3600 secs - *Blocked in csf* port=22 [LF_SSHD]
...... more than 81 messages like this ........
I´v restarted CSF twice and erase all of olders csf.deny entries but doest works, it´s like csf.deny file doesnt roll new entries and discard oldiers. Ive keep configured to keep 120 of last SSH login failures (port 22) and works fine after CSF upgraded.

I appreciate all of your suggestions.

regards

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

Re: csf.deny doesnt accept any more lines

Post by ForumAdmin »

Have you set LF_REPEATBLOCK to something other than 0? If so what did you set it to and what is DENY_IP_LIMIT set to?
ForumAdmin
Moderator
Posts: 1524
Joined: 01 Oct 2008, 09:24

Re: csf.deny doesnt accept any more lines

Post by ForumAdmin »

We've found an issue in the code and will look to fixing this shortly.
ElYepez
Junior Member
Posts: 7
Joined: 28 Oct 2012, 15:41

Re: csf.deny doesnt accept any more lines

Post by ElYepez »

ForumAdmin wrote:Have you set LF_REPEATBLOCK to something other than 0? If so what did you set it to and what is DENY_IP_LIMIT set to?
Hi Sir,

Thank you for your assistance, ok here is my values:
LF_REPEATBLOCK = [ 0 ] --- I´ve never touch this option
DENY_IP_LIMIT = [ 110 ] --- I have 10 lines in "do not delete" mode and the other 100 scroll by time
FER
ElYepez
Junior Member
Posts: 7
Joined: 28 Oct 2012, 15:41

Re: csf.deny doesnt accept any more lines

Post by ElYepez »

ForumAdmin wrote:We've found an issue in the code and will look to fixing this shortly.
Hi Sirs!

Thank you for working in this issue. At this time I changed LF_SSHD_PERM option from [ 1 ] value (blocked permanently) to [ 21600 ] (blocked temporarily) to avoid the too much messages rejecting SSH atacks.

regards,

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

Re: csf.deny doesnt accept any more lines

Post by ForumAdmin »

This should hopefully be fixed in v5.67 which we have just released:
http://blog.configserver.com/index.php?itemid=682
Post Reply