唔知點解 BAN 唔到 IP, 設定左 maxretry = 5 次, 自己試過不停access個網都無BAN我.
有無高手知問題所在? THX
設定
[http-get-dos]
enabled = true
port = http
filter = http-get-dos
logpath = /var/log/dos.log
maxretry = 5
findtime = 120
bantime = 600
action = iptables[name=HTTP, port=http, protocol=tcp]
fail2ban.log 文件都無顯示有問題
2018-07-07 15:48:21,116 fail2ban.server [11701]: INFO Changed logging target to /var/log/fail2ban.log for Fail2ban v0.9.6
2018-07-07 15:48:21,118 fail2ban.database [11701]: INFO Connected to fail2ban persistent database '/var/lib/fail2ban/fail2ban.sqlite3'
2018-07-07 15:48:21,121 fail2ban.jail [11701]: INFO Creating new jail 'http-get-dos'
2018-07-07 15:48:21,146 fail2ban.jail [11701]: INFO Jail 'http-get-dos' uses pyinotify {}
2018-07-07 15:48:21,174 fail2ban.jail [11701]: INFO Initiated 'pyinotify' backend
2018-07-07 15:48:21,177 fail2ban.filter [11701]: INFO Added logfile = /var/log/dos.log
2018-07-07 15:48:21,178 fail2ban.filter [11701]: INFO Set maxRetry = 5
2018-07-07 15:48:21,179 fail2ban.filter [11701]: INFO Set jail log file encoding to UTF-8
2018-07-07 15:48:21,179 fail2ban.actions [11701]: INFO Set banTime = 600
2018-07-07 15:48:21,180 fail2ban.filter [11701]: INFO Set findtime = 120
2018-07-07 15:48:21,195 fail2ban.jail [11701]: INFO Jail 'http-get-dos' started |