User Tools

Site Tools


servers:pi-hole

This is an old revision of the document!


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

FTLDNS Beta

echo 'FTLDNS' | sudo tee '/etc/pihole/ftlbranch' > '/dev/null' && pihole checkout core 'FTLDNS' && pihole checkout web 'FTLDNS' && sync

Null Blocking

echo 'BLOCKINGMODE=NULL' | sudo tee '/etc/pihole/pihole-FTL.conf' > '/dev/null' && sudo systemctl restart 'pihole-FTL'

Revert

  • master branch is the default branch
  • /etc/pihole/ftlbranch and /etc/pihole/pihole-FTL.conf don't normally exist without the above
sudo rm -f '/etc/pihole/ftlbranch' '/etc/pihole/pihole-FTL.conf' && pihole checkout 'master'

Adlist

WaLLy3K

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'

NETGEAR R6260

  • Not sure what this is, but I don't like my router querying it at regular intervals…
echo -e 'registration.ngxcld.com\niqi.labs.att.com' | sudo tee --append '/etc/pihole/blacklist.txt' > '/dev/null'

Whitelist

  • None currently

Automatic Updates

Service

sudo -e '/etc/systemd/system/pihole-up.service'
[Service]
Type=oneshot
Group=pihole
ExecStart=/usr/local/bin/pihole updateGravity
ExecStart=/usr/local/bin/pihole updatePihole
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

Test

Addresses

IPv4

192.168.1.158

IPv6

2601:545:4501:980a:6a7d:f541:fba0:ab41

Admin Console

/var/www/wiki/data/attic/servers/pi-hole.1527547334.txt.gz · Last modified: 2018/05/28 18:42 by Sean Rhone