添加 fail2ban/jail.d/sshd.conf

This commit is contained in:
2026-04-05 16:45:12 +08:00
parent 2edeb75a17
commit 612651bf3f

11
fail2ban/jail.d/sshd.conf Normal file
View File

@@ -0,0 +1,11 @@
[sshd]
enabled = true
port = 22
filter = sshd
maxretry = 3
findtime = 60
#bantime = 86400
bantime = 7d
action = iptables-multiport
logpath = /var/log/auth.log
backend = polling