csf not Blocking FTP when username matches

Post Reply
deutschnaftula
Junior Member
Posts: 3
Joined: 30 Oct 2013, 13:38

csf not Blocking FTP when username matches

Post 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......
idkau
Junior Member
Posts: 1
Joined: 02 Nov 2013, 03:32

Re: csf not Blocking FTP when username matches

Post by idkau »

I have the same issue except that it doesn't block any user.
eulergui
Junior Member
Posts: 2
Joined: 20 Dec 2013, 09:58

Re: csf not Blocking FTP when username matches

Post 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.
Post Reply