User Tools

Site Tools


servers:linux:pi-hole

Information

Prerequisites

Install

wget -O '/tmp/basic-install.sh' 'https://raw.githubusercontent.com/pi-hole/pi-hole/master/automated install/basic-install.sh' && chmod +x '/tmp/basic-install.sh' && sudo '/tmp/basic-install.sh' && rm '/tmp/basic-install.sh' && sync

Web Interface Password

pihole admin password

Adlist

WaLLy3K

  • :!: Change all in type=all with either tick or nocross if less-aggressive blocking is wanted 3)
sudo wget -O '/etc/pihole/adlists.list' 'https://v.firebog.net/hosts/lists.php?type=all' && pihole updateGravity

Blacklist

Battle.net Telemetry

echo 'telemetry-in.battle.net' | sudo tee --append '/etc/pihole/blacklist.txt' > '/dev/null'

Whitelist

  • None currently

Automatic Updates

Service

  • :!: Change all in type=all with either tick or nocross if less-aggressive blocking is wanted 4)
sudo -e '/etc/systemd/system/pihole-up.service'
[Service]
Type=oneshot
Group=pihole
ExecStartPre=/usr/bin/wget -O '/etc/pihole/adlists.list' 'https://v.firebog.net/hosts/lists.php?type=all'
ExecStart=/usr/local/bin/pihole updateGravity
ExecStart=/usr/local/bin/pihole updatePihole
ExecStart=/usr/local/bin/pihole flush
ExecStart=/usr/local/bin/pihole restartdns
ExecStartPost=/bin/sync

Timer

sudo -e '/etc/systemd/system/pihole-up.timer' && sudo systemctl daemon-reload && sudo systemctl enable 'pihole-up.timer' && sudo systemctl start 'pihole-up.timer' 'pihole-up' && sudo systemctl status 'pihole-up' -l
[Unit]
Description=Pi-hole Updater
After=network-online.target
Wants=network-online.target

[Timer]
OnCalendar=weekly
Persistent=true

[Install]
WantedBy=timers.target

Addresses

IPv4

192.168.1.155

IPv6

fd85:801b:aa06:0:4c01:694b:3c15:9ab5

Admin Console

/var/www/wiki/data/pages/servers/linux/pi-hole.txt · Last modified: by 127.0.0.1