Pi-Hole
Pi-Hole is a network-wide ad blocking DNS resolver that makes use of blacklists to block ads.
Step 1 - Create Proxmox Container
Click "Create CT" in top right corner.
General - set Hostname and Password
Template - Debian 11
Disks - local-lvm, 2GB
CPU - 1 Core
Memory - 256MB, 512MB swap
Network - Static IP address required - 192.168.0.2 Gateway 192.168.0.1
DNS - use host settings (DNS settings will be applied in PiHole itself)
Step 2 - Installing PiHole
Login with username 'root' and password set earlier
apt update
apt upgrade
Add the following lines to /etc/sysctl.conf to disable ipv6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
Install curl
apt install curl
Download and run PiHole install script
curl -sSL https://install.pi-hole.net | bash
PiHole install script will run and ask a number of questions.
Upstream DNS - Cloudflare
Default Blacklists - use both
Install admin web interface - yes
Install lighttpd - yes
Enable query logging - yes
Privacy mode - show everything
After the process completes, take note of the Admin webpage login password (this can be changed later)
Step 3 - Set Pi-Hole as DNS
This will vary for each router, on asus routers it is found in WAN settings, ensure Pi-Hole is the only DNS available otherwise the secondary DNS will be used to fulfil blocked DNS requests.
Step 4 - Check its working!
Pi-Hole admin web page can be found at the assigned IP address or http://pi.hole if everything is configured correctly.
To check that ad blocking is working, use the tests at https://canyoublockit.com/extreme-test/

