Pi-Hole

From Omnia
Revision as of 21:29, 13 January 2024 by Kenneth (talk | contribs) (→‎Install)
Jump to navigation Jump to search

Pi-Hole

Network Wide Ad Blocker

httsp://pi-hole.net/

Install

Install Pi-Hole [1]

curl -sSL https://install.pi-hole.net | bash
  • StevenBlack's Unified Hosts List

Admin web interface:

http://10.x.x.x/admin/
or
http://pi.hole/admin

Switch lighttpd port

https://discourse.pi-hole.net/t/migrating-pi-hole-from-lighttpd-to-apache/152/11

#!/bin/bash

if (whiptail --title "Change Pi-hole port" --yesno "Do you want to change the port pi-hole uses?" 8 78) then
  PORT_PIHOLE="89"
  PORT_PIHOLE=$(whiptail --inputbox "Which port you do you want to use for Pi-hole?" 8 78 $PORT_PIHOLE --title "Pi-hole Port" 3>&1 1>&2 2>&3)
  sed -i "s/server.port                 = 80/server.port                 = $PORT_PIHOLE/" /etc/lighttpd/lighttpd.conf
  service lighttpd restart
fi
http://10.0.0.10:89/admin/

Reset Password

pihole -a -p

ref: https://discourse.pi-hole.net/t/how-do-i-set-or-reset-the-web-interface-password/1328

Reset Stats

cd /etc/pihole
sudo service pihole-FTL stop
sudo mv pihole-FTL.db pihole-FTL.db.old
sudo service pihole-FTL start

Ref: https://discourse.pi-hole.net/t/how-can-i-reset-all-pihole-stats/7749

Clear Logs

pihole -f

Whitelist Only

Set a regex ".*" black list, then whitelist what you want.

Ref: https://discourse.pi-hole.net/t/block-everything-allow-whitelisted-only/15782

keywords