Skip to main content

HomeLab - Pi-Hole + WireGuard + DuckDNS - < Part 3 -WireGuard >

  • January 14, 2026
  • 2 comments
  • 31 views

HunterLAFR
Forum|alt.badge.img+9

After Part 1 Pi-Hole and Part 2 DuckDNS,

 

Now, Let´s install WireGuard - Part 3!

to be full set,
We are going to use this command, its awesome and prepared for raspberry pi, but also work with many distros and platforms, making the deployment super easy and smooth!

Follow the screenshots!

sudo curl -L https://install.pivpn.io | bash
As you can see here, we must select WireGuard!!
Port! I leave the default one, to be opened later on in our router.
Super Important! the script detected we have deployed in the same machine Pi-Hole, so say yes and continue.
here, Important step, select DNS as shown, to be able to call our service via DuckDNS Subdomain and not Public IP Address!!

Done!
Now our server is full setup with PiHole, DuckDNS and Wireguard.
Now we need a few adjustments in PiHole and create users in WireGuard.

Important!

The Server has not a fixed IP Address, I do assign an IP address on my DHCP, if you want to do so, please setup a fix IP address into the machine.

Open your port on the router to be able to reach the VPN service from outside of your network, IP - port 51820 UDP, I normally open both, TCP and UDP.

Next entry, Wireguard user creation and Pi-Hole little config.

Cheers.

2 comments

Chris.Childerhose
Forum|alt.badge.img+21
  • Veeam Legend, Veeam Vanguard
  • January 14, 2026

Great part 3 Luis.  Interesting series for sure.


RonV
Forum|alt.badge.img
  • Comes here often
  • January 14, 2026

PiHole: I found this tool handy to keep blocklists updated: https://github.com/jacklul/pihole-updatelists

I would also suggest booting from an ssd vs. using MicroSD cards: You can google around some, but like this: https://www.xda-developers.com/ditched-sd-cards-started-booting-raspberrypi-ssd/