Install Fail2ban

sudo apt-get install fail2ban

Configure Fail2ban

sudo cp /etc/fail2ban/fail2ban.conf /etc/fail2ban/fail2ban.local
sudo cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local

Useful command

systemctl enable fail2ban
systemctl restart fail2ban
fail2ban-client status

Manually UnBan IP Banned by Fail2Ban

sudo fail2ban-client set ssh-iptables unbanip IP_ADDRESS

Reference

results matching ""

    No results matching ""