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.";return1;}
{echo -e ":::\n::: Not installing firewall rulesets.";return0;}
echo -e ":::\n:::\n Configuring FirewallD for httpd and dnsmasq."
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.";return1;}
{echo -e ":::\n::: Not installing firewall rulesets.";return0;}
echo -e ":::\n::: Installing new IPTables firewall rulesets."
# Check chain first, otherwise a new rule will duplicate old ones