Projekt Homepage https://pi-hole.net/
1. Install a supported operating system
You can run Pi-hole in a container, or deploy it directly to a supported operating system via our automated installer.

2. Install Pi-hole
Our intelligent, automated installer asks you a few questions and then sets everything up for you. Once complete, move onto step 3.

|
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
# For DHCP it is recommended to remove these ports and instead add: network_mode: "host"
ports:
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp" # Only required if you are using Pi-hole as your DHCP server
- "80:80/tcp"
environment:
TZ: 'Europe/Berlin'
# WEBPASSWORD: 'set a secure password here or it will be random'
# Volumes store your data between container upgrades
volumes:
- './etc-pihole:/etc/pihole'
- './etc-dnsmasq.d:/etc/dnsmasq.d'
# https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
cap_add:
- NET_ADMIN # Required if you are using Pi-hole as your DHCP server, else not needed
restart: unless-stopped
|
- Run
docker compose up -dto build and start pi-hole (Syntax may bedocker-composeon older systems) - Use the Pi-hole web UI to change the DNS settings Interface listening behavior to "Listen on all interfaces, permit all origins", if using Docker's default
bridgenetwork setting. (This can also be achieved by setting the environment variableDNSMASQ_LISTENINGtoall)
3. Use Pi-hole as your DNS server
Configure your router’s DHCP options to force clients to use Pi-hole as their DNS server, or manually configure each device to use the Pi-hole as their DNS server.
Use Pi-hole as your DNS server

4. Block ads everywhere, even on the go
By pairing your Pi-hole with a VPN, you can have ad blocking on your cellular devices, helping with limited bandwidth data plans.

5. Einspielen der Blocklisten
Zuerst muss man sich auf der Admin-Console anmelden:
http://<IP>/admin/login.php
Jetzt das vergebene WebPasswort eingeben.
Nun können die Sogenannten Sperrlisten eingetragen werden.
Eine Gute Sammlung findet Ihr unter: https://github.com/RPiList/specials/blob/54876178ffa7e4d1224ac81b00bedd0040f65802/Blocklisten.md
Leider müssen die Listen beim 1.Einspielen per Hand mit Copy/Paste übertragen werden. Danach geht es automatisch.
--> Adlists
Nun aus dem geöffneten Blocklisten.md File eine Zeile in die Zwischenablage holen und bei Address einfügen:
z.B. so
Auf das Icon Add klicken.
Es kann schon sein, das auch mal doppelte Einträge vorkommen, aber einfach weitere Einträge vornehmen.
WICHTIG ist, das am Ende aller eingetragener Listen, der Pi-hole Container neu gestartet wird mit dem Kommando
pihole -g
Und nach dem Reboot sieht man oben Rechts die Anzahl der aktiven Blockeinträge.
Je nachdem, wieviel Mühe man sich macht erscheinen da nun mehr oder weniger :-)
Viel Spass beim Blocken. Mein Amazon Fire TV Stick ist das am meisten geblockte Device !!
