jail.local 配置
jail.local 配置
# /etc/fail2ban/jail.local
[DEFAULT]
ignoreip = 127.0.0.1/8 10.10.0.0/24
bantime = 1h
findtime = 10m
maxretry = 5
[sshd]
enabled = true运行与查询
运行与查询
systemctl enable --now fail2ban
fail2ban-client status sshd
fail2ban-client set sshd unbanip 203.0.113.10