From 68e27cdad1b4194244289fe3e5ecc2ffd8dd83d5 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Fri, 9 Oct 2015 03:21:33 +0200 Subject: [PATCH] Add sshguard to server config. --- jessie_start_server.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/jessie_start_server.sh b/jessie_start_server.sh index 7141a42..d3d5367 100755 --- a/jessie_start_server.sh +++ b/jessie_start_server.sh @@ -82,6 +82,12 @@ apt-get -y install vim mkdir -p .vimbackups su plom -c 'mkdir -p /home/plom/.vimbackups/' +# Set up ssh-guard. +apt-get -y install sshguard rsyslog iptables-persistent +iptables -N sshguard +iptables -A INPUT -j sshguard +iptables save > /etc/iptables/rules.v4 + # Set up openssh-server. apt-get -y install openssh-server -- 2.30.2