Webmin/CSF IP Deny doesn't work.

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.
Infopro
Junior Member
Posts: 142
Joined: 15 Dec 2006, 00:22

Post by Infopro »

Yes, the date changes as expected. If you check the csf.deny after removing a line and saving, it actually scrambles the remaining lines a bit. For example, if the csf.deny has this in it with no space betwen the two lines:

Code: Select all

5.17.159.141 # lfd: 5 (sshd) login failures from 85.17.159.141 (NL/Netherlands/hosted-by.leaseweb.com) in the last 300 secs - Sun Apr  4 11:05:20 2010
211.192.213.10 # #maually added by Infopro - Sun Apr  4 12:24:26 2010

And I remove the second line completely and save changes. When I check the file again, both lines are there, but now there is a space in between them.

One line was added automatically by CSF, the other manually as noted when added.

But, if there are several lines that were auto added, take the example above with one added line like this:

Code: Select all

5.17.159.141 # lfd: 5 (sshd) login failures from 85.17.159.141 (NL/Netherlands/hosted-by.leaseweb.com) in the last 300 secs - Sun Apr  4 11:05:20 2010
211.192.213.10 # #manually added by Infopro - Sun Apr  4 12:24:26 2010
11.192.213.10 # lfd: 5 (sshd) login failures from 85.17.159.141 (NL/Netherlands/hosted-by.leaseweb.com) in the last 300 secs - Sun Apr  4 11:05:20 2010
and I edit the 2nd line out (the manually added by...) and save, when I check csf.deny again, it looks like this:

Code: Select all

5.17.159.141 # lfd: 5 (sshd) login failures from 85.17.159.141 (NL/Netherlands/hosted-by.leaseweb.com) in the last 300 secs - Sun Apr  4 11:05:20 2010


.192.213.10 # lfd: 5 (sshd) login failures from 85.17.159.141 (NL/Netherlands/hosted-by.leaseweb.com) in the last 300 secs - Sun Apr  4 11:05:20 2010
You'll notice partial line left from the 2nd, 3rd line snipped a bit when it saved.

I hope that makes some sense. Note that in my example I did reuse a line with a different IP at the front end of the line for example purposes only, hence the same mesage on tail end of line.
ForumAdmin
Moderator
Posts: 1524
Joined: 01 Oct 2008, 09:24

Post by ForumAdmin »

I'm afraid I cannot recreate the problem on Webmin. It's certainly odd as it is the exact same code used by the cPanel and DA UI. I suspect it's an issue with the webmin form parser.

If you're willing, please log a ticket on our help desk with SSH and webmin access details and I'll have a look.
Infopro
Junior Member
Posts: 142
Joined: 15 Dec 2006, 00:22

Post by Infopro »

ForumAdmin wrote:I'm afraid I cannot recreate the problem on Webmin. It's certainly odd as it is the exact same code used by the cPanel and DA UI. I suspect it's an issue with the webmin form parser.

If you're willing, please log a ticket on our help desk with SSH and webmin access details and I'll have a look.
Yes of course. I'll put in a ticket this morning. Thanks so much.
Post Reply