Pi-Hole: Difference between revisions

From Omnia
Jump to navigation Jump to search
 
No edit summary
Line 1: Line 1:
== Install ==
Install Pi-Hole <ref>https://github.com/pi-hole/pi-hole/#one-step-automated-install</ref>
curl -sSL https://install.pi-hole.net | bash
== Switch lighttpd port ==
== Switch lighttpd port ==



Revision as of 21:22, 13 January 2024

Install

Install Pi-Hole [1]

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

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