【发布时间】:2020-01-01 00:10:22
【问题描述】:
fail2ban 中的 failregex 过滤器应该放在哪里? 我把它放在 jail.local 还是其他地方? 我正在运行 ubuntu 18.04
[apache-fakegooglebot]
enabled=true
filter=apache-fakegooglebot
port=http,https
logpath=%(apache_access_log)s
maxretry=1
banTime=360000
failregex=<whatever>
ignorecommand=%(ignorecommands_dir)s/apache-fakegooglebot <ip>
action_=%(banaction)s[name=%(__name__)s,bantime="%(bantime)s",port="%(port)s",protocol="%(protocol)s",chain="%(chain)s"]
【问题讨论】: