Skip to content

Instantly share code, notes, and snippets.

@cryptrz
Last active November 2, 2021 20:32
Show Gist options
  • Save cryptrz/40ea325528612ac18af385e4f167ef25 to your computer and use it in GitHub Desktop.
Save cryptrz/40ea325528612ac18af385e4f167ef25 to your computer and use it in GitHub Desktop.
Pi-Hole on Fedora Linux (the easy way)
SELinux will be configured in permissive mode, don't follow this steps if you're not on a secure network:
1) Switch to root user, set SELinux on permissive and reboot:
sudo -i
sed -i 's/^SELINUX=enforcing/SELINUX=permissive/g' /etc/selinux/config
reboot
2) Switch to root user and install Pi-Hole:
sudo -i
curl -sSL https://install.pi-hole.net | bash
3) Enable HTTP and DNS on firewalld:
firewall-cmd --add-service=http --add-service=dns --permanent
firewall-cmd --reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment