Remove outdated pi hole server
This commit is contained in:
@@ -1,78 +0,0 @@
|
|||||||
---
|
|
||||||
title: pi-hole-server
|
|
||||||
tags:
|
|
||||||
- distros
|
|
||||||
---
|
|
||||||
# Installation
|
|
||||||
|
|
||||||
## Arch
|
|
||||||
|
|
||||||
```sh
|
|
||||||
yay -S pi-hole-server
|
|
||||||
```
|
|
||||||
|
|
||||||
```sh
|
|
||||||
sudo systemctl enable --now pihole-FTL
|
|
||||||
```
|
|
||||||
|
|
||||||
```sh
|
|
||||||
sudo systemctl disable --now systemd-resolved
|
|
||||||
```
|
|
||||||
|
|
||||||
```sh
|
|
||||||
sudo rm -f /dev/shm/FTL-\*
|
|
||||||
```
|
|
||||||
|
|
||||||
## Debian
|
|
||||||
|
|
||||||
Debian has a long, boring setup.
|
|
||||||
|
|
||||||
```sh
|
|
||||||
sudo apt-get install wget curl net-tools gamin lighttpd lighttpd-mod-deflate
|
|
||||||
curl -sSL https://install.pi-hole.net | PIHOLE_SKIP_OS_CHECK=true sudo -E bash
|
|
||||||
```
|
|
||||||
|
|
||||||
# Setup
|
|
||||||
|
|
||||||
```sh
|
|
||||||
sudo usermod -aG pihole $USER
|
|
||||||
```
|
|
||||||
|
|
||||||
Remove that google dns server.
|
|
||||||
|
|
||||||
```sh
|
|
||||||
pihole -a setdns 9.9.9.9 1.0.0.1
|
|
||||||
```
|
|
||||||
|
|
||||||
Disable pihole password by setting a blank password.
|
|
||||||
|
|
||||||
```sh
|
|
||||||
pihole -a -p
|
|
||||||
```
|
|
||||||
|
|
||||||
Get a new list of blocked domains, then reload:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
pihole -g -r
|
|
||||||
```
|
|
||||||
|
|
||||||
Every so often, run `pihole -g` again (perhaps put it in crontab).
|
|
||||||
|
|
||||||
## Check the Pihole
|
|
||||||
|
|
||||||
Observe the pihole's output while you ask it a question:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
pihole -t
|
|
||||||
```
|
|
||||||
|
|
||||||
Then ask the question from another computer:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
dig @[ pihole ip ] archlinux.org
|
|
||||||
```
|
|
||||||
|
|
||||||
## System-Wide Setup
|
|
||||||
|
|
||||||
To make the pihole work for the entire Network, enter your router and set the DNS server as nothing but your pihole.
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user