Reply to comment

vsftp hanging

When I try to use blockhosts for vsftp I am allowed to give my username and password but then the session just hangs. The following is in my hosts.allow file:

vsftpd: ALL: spawn (/usr/bin/blockhosts.py --verbose --echo "%c-%s" >> /var/log/blockhosts.log 2>&1 )& : allow

and I changed the pattern in blockhosts.cfg to look like this:

"VSFTPD-Fail": re.compile(r"""vsftp\(pam_unix\)\[\d+\]: authentication failure; logname=\[(?P<user>.*)\] uid=\d+ euid=\d+ tty=\.* ruser=\.* rhost="(?P<host>\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})"""),

to match my entries in /var/log/messages which look like this

Dec 25 21:18:58 myhost vsftpd(pam_unix)[21989]: authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=210.118.217.194

Any thoughts?

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