Skip to content

Instantly share code, notes, and snippets.

@rudyj03
Last active November 4, 2021 18:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rudyj03/0955b04b04cc7d584fb7034ce4e1e01d to your computer and use it in GitHub Desktop.
Save rudyj03/0955b04b04cc7d584fb7034ce4e1e01d to your computer and use it in GitHub Desktop.
Set up Pi Hole via Docker with DHCP with instructions for a Verizon fios router
Pi-Hole
Installation:
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
sudo usermod -aG docker pi
newgrp docker
sudo systemctl enable docker
git clone https://github.com/pi-hole/docker-pi-hole.git
cd docker-pi-hole
Change the docker run command in docker_run.sh to use host networking and NET_ADMIN capability
./docker_run.sh
* Once started, go to the web UI -> Settings -> DNS -> Interface Listening Behavior
* Change to Listen on all interfaces, permit all origins
On the Fios router:
1. Go to My Network
2. Go to Network Connections
3. Click "Edit" to the right of "Broadband Connection (Ethernet/Coax)"
4. Click "Setting >"
5. Change “IPV4” DNS to "Use the Following IPv4 DNS Addresses”
6. In "IPv4 DNS Address 1:" add your PiHole server IP, in "IPv4 DNS Address 2:" add a secondary DNS if desired (used as backup)
7. Click Apply
8. You should be PiHoled
——————————————————————————————————————————————————————————————————
Configure DHCP:
Disable Fios router DHCP:
1. Go to My Network
2. Go to Network Connections
3. Click "Edit" to the right of “Network (Home/Office)”
4. Click “IPv4 Address Distribution”
5. Click “Edit”
6. Change drop-down in “IPv4 Address Distribution” to Disabled
7. Click “Apply”
Enable DHCP on pi-hole:
1. Log in and go to Settings -> DHCP
2. Click “DHCP server enabled”
3. Enter 192.168.1.100 - 192.168.1.254 for range, 192.168.1.1 for router IP
Set static IP on raspberry pi:
1. Edit sudo nano /etc/dhcpcd.conf
2. Add static IP info for interfaces eth0 and wlan0 (Ensure the static IPs you pick are not in the DHCP range specified in step 3 above)
3. Reboot
Example /etc/dhcpdcd.conf (add this to the end of the file with the proper IPs):
# Example static IP configuration:
interface eth0
static ip_address=192.168.1.2/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1
interface wlan0
static ip_address=192.168.1.3/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment