Fail2Ban

See Fail2Ban status

sudo fail2ban-client status sshd

See ban IPs

sudo zgrep 'Ban' /var/log/fail2ban.log*

Ban IP manually

  1. Get jail name :

    sudo fail2ban-client status
  2. Ban IP W.XX.YY.ZZ

    sudo fail2ban-client -vvv set JAIL banip WW.XX.YY.ZZ
  3. Check IP is banned

    sudo fail2ban-client status sshd

Unban IP manually

sudo fail2ban-client -vvv set JAIL unbanip WW.XX.YY.ZZ