From af7d9ce16b308f8278a82deb1ea59118ef26ae38 Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Thu, 20 Sep 2018 10:26:55 +0000 Subject: [PATCH] added MasterSetup.sh Install script for Master --- MasterSetup.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 MasterSetup.sh diff --git a/MasterSetup.sh b/MasterSetup.sh new file mode 100644 index 0000000..0cd8fad --- /dev/null +++ b/MasterSetup.sh @@ -0,0 +1,17 @@ +################## +#Master Installer# +################## + +#install Software +apt install cockpit + +#Login Limiter +sed -i '/pam_sepermit.so/ i auth required pam_tally.so preauth silent deny=4 even_deny_root unlock_time=30' /etc/pam.d/cockpit +sed -i '/pam_shells.so/ -i account required pam_tally2.so' /etc/pam.d/cockpit +systemctl restart cockpit +ufw enable +ufw default deny incoming +ufw default allow outgoing +ufw allow ssh +ufw allow 9090/tcp +ufw reload \ No newline at end of file