From d0b6ff2d083b075b8c78b3a8787f61e5cb2d4a9d Mon Sep 17 00:00:00 2001 From: bcambl Date: Wed, 8 Jun 2016 21:42:08 -0600 Subject: [PATCH] add udp port 53 to iptables/firewalld configuration --- automated install/basic-install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index 922f3d77..73a45365 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -749,12 +749,14 @@ configureFirewall() { $SUDO echo "::: Configuring firewalld for httpd and dnsmasq.." $SUDO firewall-cmd --permanent --add-port=80/tcp $SUDO firewall-cmd --permanent --add-port=53/tcp + $SUDO firewall-cmd --permanent --add-port=53/udp $SUDO firewall-cmd --reload fi elif [ -x "$(command -v iptables)" ]; then $SUDO echo "::: Configuring iptables for httpd and dnsmasq.." $SUDO iptables -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT $SUDO iptables -A INPUT -p tcp -m tcp --dport 53 -j ACCEPT + $SUDO iptables -A INPUT -p tcp -m udp --dport 53 -j ACCEPT else $SUDO echo "::: No firewall detected.. skipping firewall configuration." fi