From 5e27ccc37c7ee6705385db48fb3efb6df5d916ff Mon Sep 17 00:00:00 2001 From: bcambl Date: Wed, 8 Jun 2016 00:00:20 -0600 Subject: [PATCH] firewalld: specify ports and use default zone --- automated install/basic-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index 6f837df0..5096c8e7 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -747,8 +747,8 @@ configureFirewall() { $SUDO firewall-cmd --state > /dev/null if [[ $? -eq 0 ]]; then $SUDO echo "::: Configuring firewalld for httpd and dnsmasq.." - $SUDO firewall-cmd --zone=public --permanent --add-service=http - $SUDO firewall-cmd --zone=public --permanent --add-service=dns + $SUDO firewall-cmd --permanent --add-port=80/tcp + $SUDO firewall-cmd --permanent --add-port=53/tcp $SUDO firewall-cmd --reload fi elif [ -x "$(command -v iptables)" ]; then