Pi-hole LXC Install Script

Pi-hole is a free, open-source network-level advertisement and Internet tracker blocking application. It runs on a Raspberry Pi or other Linux-based systems and acts as a DNS sinkhole, blocking unwanted traffic before it reaches a user’s device. Pi-hole can also function as a DHCP server, providing IP addresses and other network configuration information to devices on a network. The software is highly configurable and supports a wide range of customizations, such as allowing or blocking specific domains, setting up blocklists and whitelists, and customizing the appearance of the web-based interface. The main purpose of Pi-hole is to protect users’ privacy and security by blocking unwanted and potentially malicious content, such as ads, trackers, and malware. It is designed to be easy to set up and use, and can be configured through a web-based interface or through a terminal-based command-line interface.

To create a new Proxmox VE Pi-hole LXC, run the command below in the Proxmox VE Shell.

bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/pihole.sh)"

Default Settings: 512MiB RAM - 2GB Storage - 1vCPU

:warning: Reboot Pi-hole LXC after install

Pi-hole Interface: IP/admin

:gear: To set your password:

pihole -a -p

Morning! I ended up with an error here -

⠧ Installing Pi-hole
[ERROR] in line 50: exit code 0: while executing command “$@” > /dev/null 2>&1
The silent function has suppressed the error, run the script with verbose mode enabled, which will provide more detailed output.

In the other thread you said Plex and Pi-hole worked great? Nothing wrong with the script, just installed without issues.

I was wrong. It’s plex that worked but the github partsd of pi hole threadfin didn’t. I’m thinking it’s my network.

Can you ping api.github.com? Also what happens if you open api.github.com in your browser? If there are too many requests from one ip, you might get blocked from Github. If that is the case, you can try again in 1-2 hours

Yeah -

and

I’m the tech director here and we have lots of blocks for github because students (I work in a school district) use github as a tool to get around our filters. I’m 87% sure that’s the issue. I’m talking to my team now about ways to get around that for this ProxMox learning I’m doing.

Okay, well the script works. You should try ping from your Proxmox to know for sure.
Good luck with the Proxmox learning, you will love it! :+1: