添加 fail2ban/jail.d/sshd.conf
This commit is contained in:
11
fail2ban/jail.d/sshd.conf
Normal file
11
fail2ban/jail.d/sshd.conf
Normal 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
|
||||
Reference in New Issue
Block a user