forked from DevOps/deploy.stack
build(etc): 添加 Fail2ban SSH 防爆破配置
This commit is contained in:
@@ -0,0 +1,8 @@
|
|||||||
|
[sshd]
|
||||||
|
enabled = true
|
||||||
|
maxretry = 3
|
||||||
|
findtime = 10m
|
||||||
|
bantime = 1h
|
||||||
|
bantime.increment = true
|
||||||
|
bantime.factor = 2
|
||||||
|
bantime.maxtime = 1w
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
[sshd]
|
||||||
|
enabled = true
|
||||||
|
backend = systemd
|
||||||
|
journalmatch = _SYSTEMD_UNIT=ssh.service + _COMM=sshd + _COMM=sshd-session
|
||||||
|
maxretry = 3
|
||||||
|
findtime = 10m
|
||||||
|
bantime = 24h
|
||||||
|
bantime.increment = true
|
||||||
|
bantime.factor = 2
|
||||||
|
bantime.maxtime = 7d
|
||||||
Reference in New Issue
Block a user