Page 1 of 1
csf not Blocking FTP when username matches
Posted: 30 Oct 2013, 13:45
by deutschnaftula
csf is not Blocking FTP when username matches,
when i make a failed login with just a random username then am blocked, but if the username matches but i put in a wrong password, im not getting blocked,
i use Proftpd
Thanks......
Re: csf not Blocking FTP when username matches
Posted: 02 Nov 2013, 03:33
by idkau
I have the same issue except that it doesn't block any user.
Re: csf not Blocking FTP when username matches
Posted: 20 Dec 2013, 10:10
by eulergui
Hello friend, I have the solution for this problem. The regex is wrong to ProFTPD on file /usr/local/csf/bin/regex.pm
I had to edit this file and change the line #150. This line is relative to ProFTPD section of regular expressions. Note that the end of this line is:
Code: Select all
( -)?:? - USER (\S*) \(Login failed\): Incorrect password\./)) {
You have to remove the characters "- ", dash and space just before the word USER. After that, restart your csf and lfd and now everything works fine! Your line should end like this:
Code: Select all
( -)?:? USER (\S*) \(Login failed\): Incorrect password\./)) {
Try it and return here to say if works for you.