Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
userdoc:guest_lxc_container_pihole [2020/05/31 21:18] abelbeck created |
userdoc:guest_lxc_container_pihole [2022/01/07 10:20] mkeuter |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Pi-hole DNS Blocking ====== | ====== Pi-hole DNS Blocking ====== | ||
+ | |||
+ | The [[https:// | ||
+ | |||
+ | Pi-hole is a perfect example to use with AstLinux within a LXC. | ||
+ | |||
+ | **Resource Usage:** (minimum) | ||
+ | * Memory: 50 MB | ||
+ | * Storage: 0.7 GB | ||
+ | \\ | ||
+ | |||
+ | First, it is assumed the '' | ||
+ | |||
+ | Then from the CLI: | ||
+ | |||
+ | lxc-create -t download -n pi-hole -- -d debian -r buster -a amd64 --no-validate | ||
+ | |||
+ | service lxc restart | ||
+ | |||
+ | lxc-attach pi-hole | ||
+ | passwd | ||
+ | apt update | ||
+ | apt install openssh-server iputils-ping curl | ||
+ | ... | ||
+ | exit | ||
+ | |||
+ | !!Tip ->!! Optionally you may want to also... | ||
+ | apt install sudo nano | ||
+ | |||
+ | !!Tip ->!! Set '' | ||
+ | |||
+ | \\ | ||
+ | __Install Pi-hole:__ | ||
+ | \\ | ||
+ | |||
+ | Either with '' | ||
+ | |||
+ | curl -sSL https:// | ||
+ | # Comment out the "set -e" in pihole.sh, then | ||
+ | bash pihole.sh | ||
+ | |||
+ | Follow the dialogs and answer the questions. | ||
+ | |||
+ | Change Pi-hole WebGUI password: | ||
+ | |||
+ | / | ||
+ | |||
+ | \\ | ||
+ | !!Tip ->!! If '' | ||
+ | |||
+ | apt remove lighttpd | ||
+ | bash pihole.sh | ||
+ | # choose " | ||
+ | | ||
+ | \\ | ||
+ | !!Related Info ->!! **[[userdoc: | ||
+ | |||
+ | \\ | ||
+ | **Override default DHCP dns-server option** | ||
+ | |||
+ | By default, the DHCP server (dnsmasq) offers the '' | ||
+ | |||
+ | ## Override default dns-server option | ||
+ | dhcp-option=lan, | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | |||
+ | Replace the '' | ||
+ | |||
+ | \\ | ||
+ | **Pi-hole Interface Settings Config** | ||
+ | |||
+ | Newer versions (2021/12) of Pi-hole default to " | ||
+ | |||
+ | One solution is to change the Pi-hole Interface Setting from "Allow only local requests" | ||