home
·
contact
·
privacy
projects
/
config
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a7f3f7
)
Add sshguard to server config.
author
Christian Heller
<c.heller@plomlompom.de>
Fri, 9 Oct 2015 01:21:33 +0000
(
03:21
+0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Fri, 9 Oct 2015 01:21:33 +0000
(
03:21
+0200)
jessie_start_server.sh
patch
|
blob
|
history
diff --git
a/jessie_start_server.sh
b/jessie_start_server.sh
index 7141a42ffda2be0d6124930fbcee83c5df76ddcc..d3d536716abe2f36482d524599fbe91b138d7ed6 100755
(executable)
--- 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