Ubuntu fail2ban apachefakegooglebot failregex位置

Ubuntu fail2ban apachefakegooglebot failregex位置,ubuntu,fail2ban,Ubuntu,Fail2ban,我应该将failregex过滤器放在fail2ban的何处? 我是把它放在监狱里,本地的还是别的地方? 我正在运行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

我应该将failregex过滤器放在fail2ban的何处? 我是把它放在监狱里,本地的还是别的地方? 我正在运行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"]
[apache fakegooglebot]
启用=真
过滤器=apache fakegooglebot
端口=http,https
日志路径=%(apache\u访问\u日志)s
maxretry=1
班次=360000
failregex=
ignorecommand=%(ignorecommands_dir)s/apache fakegooglebot
动作=%(banaction)s[名称=%(bantime)s,bantime=“%(bantime)s”,port=“%(port)s”,protocol=“%(protocol)s”,chain=“%(chain)s”]

您需要在/etc/fail2ban/filter.d中创建apache-fakegooglebot.conf文件

# go to filter.d directory
cd /etc/fail2ban/filter.d

# create filter
sudo nano apache-fakegooglebot.conf

# add fail & ignore regex into the filter
failregex=<whatever>
ignoreregex=<whatever>

#转到filter.d目录
cd/etc/fail2ban/filter.d
#创建过滤器
sudo nano apache-fakegooglebot.conf
#将fail&ignore正则表达式添加到筛选器中
failregex=
ignoreregex=

我们正在调用不同版本的python,我将标题从

#!/usr/bin/python


在那里我发现了一个不同的问题
/usr/bin/share/fail2ban-client and fail2ban-server
#!/usr/bin/python
#!/usr/bin/python3