From 0dd9a1e6fcfbbfffba3ffcf50a9f7197b3c6cbbd Mon Sep 17 00:00:00 2001 From: bprieshof Date: Fri, 15 Nov 2019 09:51:21 +0100 Subject: [PATCH] Updated UFW Rules --- installer.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/installer.sh b/installer.sh index ea80d5f..3114246 100644 --- a/installer.sh +++ b/installer.sh @@ -143,8 +143,9 @@ fi # UFW # ##-------## -sed -i 's/IPV6=yes/IPV6=no/g' /etc/default/ufw +sed -i '/IPV6=/c\IPV6=yes' /etc/default/ufw ufw default deny incoming > $OUTPUT 2>&1 +ufw default allow outgoing > $OUTPUT 2>&1 ufw allow 80/tcp > $OUTPUT 2>&1 ufw allow 443/tcp > $OUTPUT 2>&1 ufw limit 4242/tcp > $OUTPUT 2>&1