Pi-Hole installieren

Ohne Docker

Das Installieren gestaltet sich als sehr einfach, dazu reicht eine einzige Zeile, die man als Root Nutzer ausführt

sudo curl -sSL https://install.pi-hole.net | bash

Dann tauchen ab und zu Fenster womit du denn den Pi-Hole in der Installation konfigurierst.

Mit Docker (noch ungetestet)

#!/bin/bash

# https://github.com/pi-hole/docker-pi-hole/blob/master/README.md

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

printf 'Starting up pihole container '
for i in $(seq 1 20); do
    if [ "$(docker inspect -f "{{.State.Health.Status}}" pihole)" == "healthy" ] ; then
        printf ' OK'
        echo -e "\n$(docker logs pihole 2> /dev/null | grep 'password:') for your pi-hole: https://${IP}/admin/"
        exit 0
    else
        sleep 3
        printf '.'
    fi

    if [ $i -eq 20 ] ; then
        echo -e "\nTimed out waiting for Pi-hole start, consult check your container logs for more info (\`docker logs pihole\`)"
        exit 1
    fi
done;
docker run -d \
    -p 53:53/tcp \
    -p 53:53/udp \
    -p 88:80 \
    -p 443:443 \
    --name Pi-Hole \
    --restart always \
    -e TZ="Europe/Berlin" \
    -e WEBPASSWORD="1234" \
    -v "/home/pi/docker_data/pihole/etc-pihole/:/etc/pihole/" \
    -v "/home/pi/docker_data/pihole/etc-dnsmasq.d/:/etc/dnsmasq.d/" \
    pihole/pihole:latest

Blocklisten

Ich habe mir von hier ein paar Listen ausgesucht (Adblock Format geht auch) .

https://filterlists.com/

Das sind meine Listen:

https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts

http://sysctl.org/cameleon/hosts
https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt


#########
## Ende der offiziellen Listen
########

# Privatsphäre
https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts
https://www.github.developerdan.com/hosts/lists/ads-and-tracking-extended.txt
https://raw.githubusercontent.com/xxcriticxx/.pl-host-file/master/hosts.txt
https://raw.githubusercontent.com/anudeepND/blacklist/master/adservers.txt
https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt

# Phishing
https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts
https://raw.githubusercontent.com/Spam404/lists/master/main-blacklist.txt
https://v.firebog.net/hosts/BillStearns.txt
https://www.joewein.net/dl/bl/from-bl.txt

# Windows Telemetry
https://raw.githubusercontent.com/deathbybandaid/piholeparser/master/Subscribable-Lists/ParsedBlacklists/WindowsSpyBlocker7.txt
https://raw.githubusercontent.com/deathbybandaid/piholeparser/master/Subscribable-Lists/ParsedBlacklists/WindowsSpyBlocker81.txt
https://raw.githubusercontent.com/Hakame-kun/uBlock-Filters-Indonesia/master/Windows%20Host/hosts
https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/update.txt
https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/extra.txt
https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/spy.txt
https://raw.githubusercontent.com/Akamaru/Pi-Hole-Lists/master/nomsdata.txt

# malware
https://raw.githubusercontent.com/deathbybandaid/piholeparser/master/Subscribable-Lists/ParsedBlacklists/Disconnect-Malware-Filter.txt

# EU Cookie
https://raw.githubusercontent.com/deathbybandaid/piholeparser/master/Subscribable-Lists/ParsedBlacklists/Block-EU-Cookie-Shit-List.txt

# Anti Adblock

# admin IP Snooping

# Coins
https://zerodot1.gitlab.io/CoinBlockerLists/list.txt

# Ads
https://easylist-msie.adblockplus.org/easylist.tpl
https://www.joewein.net/dl/bl/dom-bl-base.txt
https://v.firebog.net/hosts/Prigent-Ads.txt
https://v.firebog.net/hosts/AdguardDNS.txt
https://warui.intaa.net/adhosts/hosts.txt
https://v.firebog.net/hosts/Easylist.txt
https://tgc.cloud/downloads/hosts.txt
https://abpvn.com/android/abpvn.txt

# Sozial Medien
https://raw.githubusercontent.com/DandelionSprout/adfilt/master/AntiAwfulCommentsList.txt
https://raw.githubusercontent.com/Hubird-au/Adversity/master/Antisocial.txt
https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts
https://filters.adtidy.org/extension/chromium/filters/4.txt
http://jansal.net/tpl/Adversity/Antisocial.tpl

# Spotify
https://raw.githubusercontent.com/w13d/adblockListABP-PiHole/master/Spotify.txt



# Eigene


# Test!

Quellen

https://github.com/pi-hole/docker-pi-hole/blob/master/docker_run.sh

https://forum.kuketz-blog.de/viewtopic.php?f=42&t=3067