Update install-ufw.sh

This commit is contained in:
Johan 2023-04-05 11:08:38 +02:00
parent 0cb86fb0f4
commit 3f5df5e15b

View File

@ -32,10 +32,11 @@ iptables --list >/dev/null 2>&1 && (
ufw status >/dev/null 2>&1 || ( ufw status >/dev/null 2>&1 || (
echo "Installing UFW..." echo "Installing UFW..."
apt install ufw -y 2>>install.log apt install ufw -y 2>>install.log
ufw default allow outgoing 2>>install.log
ufw default deny incoming 2>>install.log
ufw allow ssh 2>>install.log
ufw enable 2>>install.log
) )
echo "Setting UFW rules..."
ufw default allow outgoing 2>>install.log
ufw default deny incoming 2>>install.log
ufw allow ssh 2>>install.log
ufw enable 2>>install.log
echo 'Installation complete' echo 'Installation complete'