This repository has been archived on 2023-05-21. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
VPS-CockpitSetup/MasterSetup.sh
Bram Prieshof af7d9ce16b added MasterSetup.sh
Install script for Master
2018-09-20 10:26:55 +00:00

17 lines
471 B
Bash

##################
#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