文件操作 - vsftpd.conf
返回文件管理
返回主菜单
删除本文件
文件: /etc/fail2ban/filter.d/vsftpd.conf
编辑文件内容
# Fail2Ban filter for vsftp # # 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. [INCLUDES] before = common.conf [Definition] __pam_re=\(?%(__pam_auth)s(?:\(\S+\))?\)?:? _daemon = vsftpd 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*$ ^ \[pid \d+\] \[[^\]]+\] FAIL LOGIN: Client "<HOST>"(?:\s*$|,) ignoreregex = # Author: Cyril Jaquier # Documentation from fail2ban wiki
修改文件时间
将文件时间修改为当前时间的前一年
删除文件