这是我想要做的:如果你用sshlogin并且失败了3次,那么你必须等待30秒才能重试。
4次= 60秒
5次= 300秒
…
10次=禁止
我GOOGLE了我的愿望,我没有发现任何有用的东西。 也许有人可以帮我一点点。
我会很感激!
快速search显示,在fail2ban 0.11中引入了禁令时间的指数增长: https : //github.com/fail2ban/fail2ban/pull/1460/commits/6f7c9b7d0f5c637672ed215e726e5d6ace29b664
https://github.com/fail2ban/fail2ban/blob/0.11/config/jail.conf
# # MISCELLANEOUS OPTIONS # # "bantime.increment" allows to use database for searching of previously banned ip's # to increase a default ban time using special formula, # default it is banTime * 1, 2, 4, 8, 16, 32... #bantime.increment = true
和其他一些bantime.*相关的选项。