Home Install Pi-Hole DNS filter
Post
Cancel

Install Pi-Hole DNS filter

Install Pi-Hole in a Proxmox container (LXC Template)

Download the Debian template

To start you will need to have the CT template on proxmox, go to your proxmox node, select the storage (in my case ‘local’) and ‘CT Templates’. Here you have the change to ‘Upload’, ‘Download from URL’ or ‘Templates’. You click ‘Templates’ and then search for ‘Debian 11’ (Or other distro of your preference).

Create CT

Top of the Proxmox GUI, ‘Create CT’

Fill up the usual info

1
2
3
- Choose a ID and Hostname
- Uncheck 'Unprivileged container'
- Create password

Choose your Template, and for hardware i gone for:

1
2
3
- 4Gb Disk (nothing to see here) 
- 2 Core (plenty)
- 1Gb DDR (no need more)

Network configuration:

If you have VLANS and want all by protected by Pi-Hole you’ll need to add them on the network section: Only one need/can have gateway

1
2
3
4
- eth0 IP / Netmask + Gateway = VLAN1
- eth1 IP / Netmask = VLAN2
- eth2 IP / Netmask = VLAN3
- ....

Install pi-Hole

SSH in to the container. Start by updating the distro..

1
apt update && apt upgrade -y

Install Curl,

1
apt install curl -y 

Install Pi-Hole himself

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

You can change admin password using,

1
pihole -a -p

Notes

Intallation is straght forward.

  • If you get error at the end that couldn’t start services, just run the installation script again:
1
curl -sSL https://install.pi-hole.net | bash
  • When installing, choose the main network (eth0) then you can listening to all networks (Permit all origins).

More adblock & Malware list can be found here:

1
    https://filterlists.com/
This post is licensed under CC BY 4.0 by the author.