From 4ad318063b872ca885ec41ced9bd14b875e2c700 Mon Sep 17 00:00:00 2001 From: Michael Kroes Date: Sun, 13 Mar 2016 09:03:00 +0100 Subject: [PATCH] Enable ufw in the config after allowing SSH --- setup/system.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/setup/system.sh b/setup/system.sh index 9d2c636d..cd39dc9e 100755 --- a/setup/system.sh +++ b/setup/system.sh @@ -191,12 +191,6 @@ if [ -z "$DISABLE_FIREWALL" ]; then modprobe ip6_tables fi - # Some default configurations disable the firewall in the settings (Scaleway) - # If this isn't set, enabling the firewall will fail with: - # - # ERROR: Could not load logging rules - sed -i "s/ENABLED.*/ENABLED=yes/" /etc/ufw/ufw.conf - # Allow incoming connections to SSH. ufw_allow ssh; @@ -213,6 +207,12 @@ if [ -z "$DISABLE_FIREWALL" ]; then fi fi + # Some default configurations disable the firewall in the settings (Scaleway) + # If this isn't set, enabling the firewall will fail with: + # + # ERROR: Could not load logging rules + sed -i "s/ENABLED.*/ENABLED=yes/" /etc/ufw/ufw.conf + ufw --force enable; fi #NODOC