1
0
mirror of https://github.com/pi-hole/pi-hole synced 2025-01-22 05:51:15 +00:00

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
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