安装
sudo yum install fail2ban
sudo apt-get
<!--more-->
install fail2ban 服务状态
systemctl status fail2ban
systemctl restart fail2ban查看敏感日志:
sudo tail -f /var/log/fail2ban.log检查 fail2ban 状态
fail2ban-client status
fail2ban-client status sshd解锁 ip
sudo fail2ban-client set sshd unbanip 192.168.1.8问题记录
Failed during configuration: Have not found any log file for sshd jail #3567 
From other point of view it is a configuration issue and can be surely simply fixed using:
- echo -e "[sshd]\nenabled=true" | sudo tee /etc/fail2ban/jail.local
+ echo -e "[sshd]\nbackend=systemd\nenabled=true" | sudo tee /etc/fail2ban/jail.localWith other words:
  $ sudo cat /etc/fail2ban/jail.local 
  [sshd]
+ backend=systemd
  enabled = true