Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Latest commit

 

History

History
32 lines (25 loc) · 640 Bytes

SSHGuard.org

File metadata and controls

32 lines (25 loc) · 640 Bytes

SSHGuard

Installation

sudo apt-get install -y sshguard
sudo systemctl start sshguard
sudo systemctl status sshguard
sudo systemctl enable sshguard

Config

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