Update install-ufw.sh
This commit is contained in:
parent
0cb86fb0f4
commit
3f5df5e15b
@ -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
|
||||||
|
)
|
||||||
|
echo "Setting UFW rules..."
|
||||||
ufw default allow outgoing 2>>install.log
|
ufw default allow outgoing 2>>install.log
|
||||||
ufw default deny incoming 2>>install.log
|
ufw default deny incoming 2>>install.log
|
||||||
ufw allow ssh 2>>install.log
|
ufw allow ssh 2>>install.log
|
||||||
ufw enable 2>>install.log
|
ufw enable 2>>install.log
|
||||||
)
|
|
||||||
|
|
||||||
echo 'Installation complete'
|
echo 'Installation complete'
|
Loading…
x
Reference in New Issue
Block a user