wlanboy

tutorials and ruby scripts

Read my tutorials

Tutorial

Tutorial: pi hole on docker

You do not need a raspberry pi to run an instance of the pi hole dns filter project.

Steps:

  • docker pull pihole/pihole:latest
  • vim docker-compose.yml with content:
pihole:
  restart: unless-stopped
  container_name: pihole
  image: pihole/pi-hole:latest
  volumes:
    - /home/wlanboy/pihole/:/etc/pihole/
    - /home/wlanboy/pihole-dnsmasq/:/etc/dnsmasq.d/'
  environment:
    - TZ=Europe/Berlin
    - ServerIP=your-docker-host-public-ip
    - WEBPASSWORD=your-secure-password
  dns:
    - 8.8.8.8
    - 8.8.4.4
  ports:
    - "53:53/tcp"
    - "53:53/udp"
    - "80:80"
  • mkdir ~/pihole && mkdir ~/pihole-dnsmasq
  • docker-compose up
  • Add filter lists to pi hole:
https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/win10/spy.txt
https://raw.githubusercontent.com/quidsup/notrack/master/trackers.txt
https://github.com/chadmayfield/pihole-blocklists/raw/master/lists/pi_blocklist_porn_all.list
https://v.firebog.net/hosts/Prigent-Phishing.txt
https://v.firebog.net/hosts/Prigent-Malware.txt
https://mirror.cedia.org.ec/malwaredomains/immortal_domains.txt