This is a script for installing pi-hole container on Firewalla Gold or Purple. It is based on the Firewalla tutorial and has been tested on 1.974.
Assuming you want to go on with pihole, given the above:
firewalla
.To install:
SSH into your Firewalla (learn how if you don't know how already.)
If you want regular pi-hole with the version Firewalla recommends, copy the line below and paste into the Firewalla shell and then hit enter.
curl -s -L -C- https://raw.githubusercontent.com/mbierman/pihole-installer-for-Firewalla/main/pihole_docker_install.sh | cat <(cat <(bash))
If you want pi-hole with the latest pihole image, copy the line below instead and paste into the Firewalla shell and then hit enter.
curl -s -L -C- https://raw.githubusercontent.com/mbierman/pihole-installer-for-Firewalla/main/pihole_docker_install.sh | cat <(cat <(bash -s -- latest))
If you want pi-hole with DoH, copy the line below instead and paste into the Firewalla shell and then hit enter.
curl -s -L -C- https://raw.githubusercontent.com/mbierman/pihole-installer-for-Firewalla/main/pihole_docker_install.sh | cat <(cat <(bash -s -- doh))
Now go to the network settings on Firewalla App, assign 172.16.0.2
as the primary DNS server for all networks that you want to enable Pi-Hole and disable DoH or Unbound on these networks.
172.16.0.2
. Leave the secondary DNS empty.Standard disclaimer: I can not be responsible for any issues that may result. Nothing in the script should in any way, affect firewalla as a router or comprimise security. Happy to answer questions though if I can. :)
Use the fillowing to debug. If you have any issues, please provide:
sudo docker logs pihole
sudo docker inspect pihole | grep "IPAddress"
sudo docker ps
you hould get something like:CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
a5fe91e7a8ab pihole/pihole:latest "/s6-init" 11 minutes ago Up 11 minutes (healthy) 53/udp, 53/tcp, 80/tcp, 67/udp pihole
sudo docker inspect pihole
You can run this by copying this line and run it on firewalla to uninstall.
curl -s -L -C- https://raw.githubusercontent.com/mbierman/pihole-installer-for-Firewalla/main/uninstall_pihole.sh | cat <(cat <(bash))
There are lots of pihole communities on Reddit. If you have pi-hole questions, please check there.