sudo apt-get install -y sshguard
sudo systemctl start sshguard
sudo systemctl status sshguard
sudo systemctl enable sshguard
sudo iptables -N sshguard # for IPv4
sudo ip6tables -N sshguard # for IPv6
sudo iptables -I INPUT -j sshguard
sudo ip6tables -I INPUT -j sshguard
sudo vi /etc/iptables/rules.v4
sudo vi /etc/iptables/rules.v6
sudo iptables-restore </etc/iptables/rules.v4
sudo ip6tables-restore </etc/iptables/rules.v6
*filter :sshguard - [0:0] -A INPUT -j sshguard