Page 1 of 1

Quick Deny Able to Add Same IP

Posted: 22 Jan 2015, 16:35
by Infopro
I just happened to notice that I am able to add the same IP as many times as I want via the Quick Deny. Checking another server, I'm not, as expected.
csf: v7.58

Is this a bug or did I break something?

Thanks!

Re: Quick Deny Able to Add Same IP

Posted: 23 Jan 2015, 10:22
by ForumAdmin
I am unable to replicate a problem. Quick Deny runs csf -d IP which always states that it is already blocked for me. Do you see multiple entries in /etc/csf/csf.deny? Also, have you checked for leading and trailing spaces (though in testing that made no difference to it working)? On the server where it is not working, try doing a csf -d IP from the command line for the IP that does repeat and see if that still works or not.

Re: Quick Deny Able to Add Same IP

Posted: 23 Jan 2015, 10:41
by Infopro
Do you see multiple entries in /etc/csf/csf.deny?
I do.
have you checked for leading and trailing spaces
Yes. LFD is automagically adding them again and again as well.
try doing a csf -d IP from the command line
I can add them all day via command line.

Re: Quick Deny Able to Add Same IP

Posted: 23 Jan 2015, 10:45
by ForumAdmin
Do you have LF_REPEATBLOCK set to anything other than 0? If you do, set it to 0. If not, then could you log a ticket on our helpdesk with access details as I'd like to take a look?

Re: Quick Deny Able to Add Same IP

Posted: 23 Jan 2015, 10:55
by Infopro
I can add them all day via command line.
A bit of an exaggeration on my part. I added 3 via command line and they took.
Do you have LF_REPEATBLOCK set to anything other than 0?
Yep. And that was it. Set to 0 and I'm no longer able to add one if its there.

False alarm. My apologies sir.

Thank you for your support.

Re: Quick Deny Able to Add Same IP

Posted: 23 Jan 2015, 10:57
by ForumAdmin
I'm glad it is sorted :)