Running Pi-Hole Ad Blocker in a Proxmox VE LXC Linux Container [CT]

Channel:
Subscribers:
14,500
Published on ● Video Link: https://www.youtube.com/watch?v=h0TlH39oLhE



Duration: 4:53
3,192 views
36


#Proxmox #Hypervisor #PiHole #AdBlocking

Full steps can be found at https://i12bretro.github.io/tutorials/0593.html

--------------------------------------------------------------------
Creating the Container
--------------------------------------------------------------------
   01. Log into the Proxmox VE web UI
   02. Select a storage device from the left navigation that allows storing Container templates
   03. Select CT Templates from the left sub-navigation menu
   04. Click the Templates button
   05. Search for core ≫ Click TurnKey Core to select it ≫ Click the Download button
   06. After the download completes, close the download dialog
   07. Right click the Proxmox node name ≫ Create CT
   08. Enter the Hostname PiHole, Password and Confirm the password ≫ Next
   09. Select the Storage where the container template was downloaded and select the TurnKey Core container template ≫ Click Next
   10. Set the Storage device to save the container to ≫ Click Next
   11. Leave the defaults on the CPU tab ≫ Next
   12. On the Memory tab, set the Memory to 1024 ≫ Next
   13. Leave the defaults on the Network tab, setup a static IP address if needed (I prefer to set this from my router) ≫ Next
   14. Leave the defaults on the DNS tab ≫ Next
   15. Verify the summary and click Finish
   16. After the container creation completes, close the download dialog
   17. Right click the PiHole container in the left navigation pane ≫ Start
   18. Click console in the left sub-navigation menu
 
--------------------------------------------------------------------
Installing Updates and Pi-Hole
--------------------------------------------------------------------
   01. Log into the container with the username root and the password set during the setup
   02. On the Initialize Hub services dialog, press tab and select Skip ≫ Press Enter
   03. On the System Notifications dialog, press tab and select Skip ≫ Press Enter
   04. On the Security updates dialog, press tab to select Install to enable automatic updates or Skip ≫ Press Enter
   05. Press Enter to select Advanced Menu
   06. Arrow down and select Quit ≫ Press Enter ≫ Select Yes to confirm ≫ Press Enter
   07. Run the following commands to install updates
         # update software repositories
         apt update
         # install available software updates
         apt upgrade -y
         # clean apt cache
         apt clean
         # reboot the container
         reboot now
   08. Log back into the container
   09. Run the following command to install Pi-Hole
         curl -sSL https://install.pi-hole.net | bash
   10. Press Enter until the DNS selection is displayed
   11. Select a DNS provider and press Enter
   12. Press Enter through the rest of the Pi-Hole installer, selecting the defaults
   13. Copy the randomly generated admin password (just in case)
   14. Press Enter to complete the installation
   15. Run the following command to change the Pi-Hole admin password
         pihole -a -p
   16. Enter and confirm the new password
   17. Click the Applications button ≫ Internet ≫ Chromium Web Browser
   18. Navigate to http://DNSorIP/admin
   19. Click Login
   20. Authenticate with the admin password
 
--------------------------------------------------------------------
Testing Pi-Hole From Windows Client
--------------------------------------------------------------------
   01. Click the Start button ≫ Type control panel ≫ press Enter
   02. Click View By ≫ Small Icons
   03. Click Network and Sharing Center
   04. Click Change adapter settings
   05. Right click on the network connection ≫ Properties
   06. Select Internet Protocol Version 4 (TCP/IPv4) ≫ Properties
   07. Select the radio option next to Use the following DNS server addresses
   08. Input the IP address of the Pi-Hole VM
   09. Click OK on both of the open dialog windows
   10. Right click the Start button ≫ Command Prompt (Admin)
   11. Type the following commands to flush your DNS cache and restart the network connections (note: your network connection will drop if running the commands on a remote machine)
         ipconfig /flushdns
         ipconfig /release
         ipconfig /renew
 
More on Pi-Hole  https://pi-hole.net/
 


### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro







Tags:
How To
Tutorial
i12bretro
Proxmox
Linux
Container
LXC
CT
Pi-Hole
Ad Blocking
Ad Blocker
DNS
Self-Hosted
Home Lab
Ad
Block