firewalld: specify ports and use default zone

This commit is contained in:
bcambl 2016-06-08 00:00:20 -06:00
parent 682113892a
commit 5e27ccc37c

View file

@ -747,8 +747,8 @@ configureFirewall() {
$SUDO firewall-cmd --state > /dev/null $SUDO firewall-cmd --state > /dev/null
if [[ $? -eq 0 ]]; then if [[ $? -eq 0 ]]; then
$SUDO echo "::: Configuring firewalld for httpd and dnsmasq.." $SUDO echo "::: Configuring firewalld for httpd and dnsmasq.."
$SUDO firewall-cmd --zone=public --permanent --add-service=http $SUDO firewall-cmd --permanent --add-port=80/tcp
$SUDO firewall-cmd --zone=public --permanent --add-service=dns $SUDO firewall-cmd --permanent --add-port=53/tcp
$SUDO firewall-cmd --reload $SUDO firewall-cmd --reload
fi fi
elif [ -x "$(command -v iptables)" ]; then elif [ -x "$(command -v iptables)" ]; then