From e45559da206978c2a6b89eadf876180034a0c768 Mon Sep 17 00:00:00 2001
From: georou <geors22@gmail.com>
Date: Tue, 14 Mar 2017 01:13:23 +1100
Subject: [PATCH] Use Firewalld services instead of ports

---
 automated install/basic-install.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh
index 7c9a83d5..b9e38bef 100755
--- a/automated install/basic-install.sh	
+++ b/automated install/basic-install.sh	
@@ -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} || \
     { echo -e ":::\n::: Not installing firewall rulesets."; return 0; }
     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
     return 0
   # Check for proper kernel modules to prevent failure