Update 'installer.sh'
This commit is contained in:
@@ -142,6 +142,7 @@ timedatectl set-timezone Europe/Amsterdam
|
||||
sed -i 's/#/vm.swappiness=10/g' /etc/sysctl.conf
|
||||
sed -i 's/#/vm.vfs_cache_pressure=50/g' /etc/sysctl.conf
|
||||
|
||||
sed -i 's/IPV6=yes/IPV6=no/g' /etc/default/ufw
|
||||
sed -i "\$a0 3 * * 1 root apt update >/dev/null 2>&1&& apt upgrade -y >/dev/null 2>&1" /etc/crontab
|
||||
systemctl restart cron
|
||||
ufw allow OpenSSH
|
||||
@@ -150,6 +151,10 @@ ufw allow 80/tcp
|
||||
ufw limit ssh
|
||||
echo "y" | ufw enable
|
||||
|
||||
mkdir /root/.ssh
|
||||
|
||||
apt install fail2ban -y
|
||||
|
||||
##-------------------##
|
||||
# Install Phase #
|
||||
##-------------------##
|
||||
|
||||
Reference in New Issue
Block a user