mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
Use Firewalld services instead of ports
This commit is contained in:
parent
2e74219ff9
commit
e45559da20
1 changed files with 1 additions and 1 deletions
|
@ -965,7 +965,7 @@ configureFirewall() {
|
||||||
whiptail --title "Firewall in use" --yesno "We have detected a running firewall\n\nPi-hole currently requires HTTP and DNS port access.\n\n\n\nInstall Pi-hole default firewall rules?" ${r} ${c} || \
|
whiptail --title "Firewall in use" --yesno "We have detected a running firewall\n\nPi-hole currently requires HTTP and DNS port access.\n\n\n\nInstall Pi-hole default firewall rules?" ${r} ${c} || \
|
||||||
{ echo -e ":::\n::: Not installing firewall rulesets."; return 0; }
|
{ echo -e ":::\n::: Not installing firewall rulesets."; return 0; }
|
||||||
echo -e ":::\n:::\n Configuring FirewallD for httpd and dnsmasq."
|
echo -e ":::\n:::\n Configuring FirewallD for httpd and dnsmasq."
|
||||||
firewall-cmd --permanent --add-port=80/tcp --add-port=53/tcp --add-port=53/udp
|
firewall-cmd --permanent --add-service={http,dns}
|
||||||
firewall-cmd --reload
|
firewall-cmd --reload
|
||||||
return 0
|
return 0
|
||||||
# Check for proper kernel modules to prevent failure
|
# Check for proper kernel modules to prevent failure
|
||||||
|
|
Loading…
Reference in a new issue