From: Christian Heller Date: Fri, 9 Oct 2015 01:21:33 +0000 (+0200) Subject: Add sshguard to server config. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/%7B%7B%20web_path%20%7D%7D/%7B%7Bdb.prefix%7D%7D/task?a=commitdiff_plain;h=68e27cdad1b4194244289fe3e5ecc2ffd8dd83d5;p=config Add sshguard to server config. --- 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