这就是我想要做的:如果您使用 ssh 登录并失败 3 次,那么您必须等待 30 秒才能重试。
4次=60秒
5次=300秒
...
10 次 = 被禁止
我在谷歌上搜索了我的愿望,但没有找到任何有用的东西。也许有人可以在这里帮我一点忙。
我会很感激!
答案1
快速搜索表明,在 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.*
相关选项。