Skip to content

Pi-hole – control what ads you see across your whole network

pinhole

Pi-hole is a handy and easy to setup on a raspberry pi. It literally takes minutes to install and run. Once up and running it allows you to block ads on any device connected to your network. That’s right, any iPad, laptop, Smart TV, anything! It’s powerful and simple to administer.

First get a raspberry pi. I recommend the one from amazonhttps://www.amazon.com/CanaKit-Raspberry-Premium-Clear-Supply/dp/B07BC7BMHY.

For the rest of the setup instructions, simply refer to https://pi-hole.net/

Sample Docker setup

#!/bin/bash

docker run -d \
    --name pihole \
    -p 53:53/tcp -p 53:53/udp \
    -p 80:80 \
    -p 443:443 \
    -e TZ="America/Chicago" \
    -v "$(pwd)/etc-pihole/:/etc/pihole/" \
    -v "$(pwd)/etc-dnsmasq.d/:/etc/dnsmasq.d/" \
    --dns=127.0.0.1 --dns=1.1.1.1 \
    --restart=unless-stopped \
    pihole/pihole:latest

Leave a Reply