2013-10-30 13:02:59 +00:00
|
|
|
# Fail2Ban filter for vsftp
|
2006-07-17 19:26:14 +00:00
|
|
|
#
|
2014-01-05 00:30:56 +00:00
|
|
|
# Configure VSFTP for "dual_log_enable=YES", and have fail2ban watch
|
|
|
|
# /var/log/vsftpd.log instead of /var/log/secure. vsftpd.log file shows the
|
|
|
|
# incoming ip address rather than domain names.
|
2006-07-17 19:26:14 +00:00
|
|
|
|
2013-10-05 10:01:43 +00:00
|
|
|
[INCLUDES]
|
|
|
|
|
|
|
|
before = common.conf
|
|
|
|
|
2006-07-16 21:35:08 +00:00
|
|
|
[Definition]
|
|
|
|
|
2015-01-27 21:34:27 +00:00
|
|
|
__pam_re=\(?%(__pam_auth)s(?:\(\S+\))?\)?:?
|
2013-10-05 10:01:43 +00:00
|
|
|
_daemon = vsftpd
|
|
|
|
|
2013-10-25 22:51:25 +00:00
|
|
|
failregex = ^%(__prefix_line)s%(__pam_re)s\s+authentication failure; logname=\S* uid=\S* euid=\S* tty=(ftp)? ruser=\S* rhost=<HOST>(?:\s+user=.*)?\s*$
|
2013-10-05 09:47:47 +00:00
|
|
|
^ \[pid \d+\] \[.+\] FAIL LOGIN: Client "<HOST>"\s*$
|
2006-11-12 14:52:36 +00:00
|
|
|
|
2006-11-15 18:44:28 +00:00
|
|
|
ignoreregex =
|
2013-10-30 13:02:59 +00:00
|
|
|
|
|
|
|
# Author: Cyril Jaquier
|
2014-01-05 00:30:56 +00:00
|
|
|
# Documentation from fail2ban wiki
|