APP: PiHole (Docker)

Home Forums PeppermintOS 10 Respin APP: PiHole (Docker)

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #45
    Voodoo
    Keymaster

    REF: https://www.youtube.com/watch?v=r72qhtc_zFg

    Pull the official Pihole Image
    sudo docker pull pihole/pihole

    Verify it downloaded by listing the docker images
    sudo docker images

    Disabled Resolved
    sudo systemctl disable systemd-resolved.service

    Stop Resolved
    sudo systemctl stop systemd-resolved

    Change the Nameserver
    sudo nano /etc/resolv.conf
    nameserver 1.1.1.1

    sudo systemctl daemon-reload
    sudo systemctl restart docker
    sudo docker pull pihole/pihole

    sudo apt update

    sudo apt upgrade

    sudo nano pihole.sh

    Paste the settings for the pihole.sh

    #!/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 \
        -p 8080:8080 \
        -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 \
        thenetworkchuck/networkchuck_pihole
    
    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;
    © 2020 GitHub, Inc.

    Allow the script to be executed
    sudo chmod u+x pihole.sh

    Run the Pihole.sh script
    sudo ./pihole.sh

    Force in Root
    sudo docker exec -it pihole bash

    Change the Password
    pihole -a -p

    • This topic was modified 6 days ago by Voodoo.
    #49
    Voodoo
    Keymaster

    Once PiHole is installed, go ahead and under Settings and under the DNS tab, ensure that you select your DNS provider. I choose Cloudflare.

    I also go under Settings and to the Blocklists tab and add the following:

    https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
    https://mirror1.malwaredomains.com/files/justdomains
    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
    https://hosts-file.net/ad_servers.txt
    https://blocklist.cyberthreatcoalition.org/vetted/url.txt
    https://adaway.org/hosts.txt
    https://v.firebog.net/hosts/Easyprivacy.txt
    https://raw.githubusercontent.com/DandelionSprout/adfilt/master/Alternate%20versions%20Anti-Malware%20List/AntiMalwareHosts.txt
    https://v.firebog.net/hosts/AdguardDNS.txt
    https://raw.githubusercontent.com/matomo-org/referrer-spam-blacklist/master/spammers.txt
    https://someonewhocares.org/hosts/zero/hosts
    https://v.firebog.net/hosts/Prigent-Ads.txt
    https://raw.githubusercontent.com/RooneyMcNibNug/pihole-stuff/master/SNAFU.txt
    https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=0&mimetype=plaintext
    https://www.github.developerdan.com/hosts/lists/ads-and-tracking-extended.txt
    https://www.stopforumspam.com/downloads/toxic_domains_whole.txt
    https://gitlab.com/quidsup/notrack-blocklists/raw/master/notrack-malware.txt
    https://gitlab.com/quidsup/notrack-blocklists/raw/master/notrack-blocklist.txt
    https://v.firebog.net/hosts/static/w3kbl.txt
    https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts
    https://hostfiles.frogeye.fr/firstparty-trackers-hosts.txt
    https://urlhaus.abuse.ch/downloads/hostfile/
    https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser
    https://blocklist.site/app/dl/ads
    https://blocklist.site/app/dl/crypto
    https://blocklist.site/app/dl/youtube
    https://blocklist.site/app/dl/tracking
    https://github.com/LunarWatcher/Pihole-blocklists/raw/master/global-blocklist-plain.txt
    https://github.com/LunarWatcher/Pihole-blocklists/raw/master/desktop-blocklist.txt
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.