English
DH3MFW
headerimage

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.

Docker install

Supported operating systems

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.

Install Pi-hole

Das Einfachste bei Containern ist in meinen Augen immer mit einer docker-compose.yaml Datei zu arbeiten.
Da stehen dann alle nötigen Informationen zu dem Container drin.
 
 
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
 
  1. Run docker compose up -d to build and start pi-hole (Syntax may be docker-compose on older systems)
  2. 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 bridge network setting. (This can also be achieved by setting the environment variable DNSMASQ_LISTENING to all)

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.

Pi-hole + VPN

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 !!

nach oben