Reply to comment

Different vsftpd regular expression needed

So in my log (/var/log/secure) it says when there are failed login attempts. When the failed attempt is with a user that does not exist, this is logged
Dec 31 13:27:30 Server vsftpd: pam_unix(vsftpd:auth): check pass; user unknown
Dec 31 13:27:30 Server vsftpd: pam_unix(vsftpd:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=192.168.1.1
Dec 31 13:27:30 Server vsftpd: pam_succeed_if(vsftpd:auth): error retrieving information about user asdf

I think that middle line is the important one though. When the user is put in, but wrong password this is logged

Dec 31 13:31:43 Server vsftpd: pam_unix(vsftpd:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=192.168.1.1 user=Test

What would the Regular expression be to make blockhosts work with this?

thank you very much

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <b> <span> <pre> <hr>
  • Lines and paragraphs break automatically.
  • You may use [acidfree:xx] tags to display acidfree videos or images inline.
  • [l:URL text] input tags replaced with HTML links. URL may be Drupal internal path. [ Link Filter Tips ]

More information about formatting options