mirror of
https://github.com/pi-hole/pi-hole
synced 2025-01-21 21:40:55 +00:00
firewalld: specify ports and use default zone
This commit is contained in:
parent
682113892a
commit
5e27ccc37c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user