Back to blog
Jul 20, 2026
3 min read

How to configure Pi-hole and your private VPN

Learn how we can configure our service using a raspberry pi

To keep in mind

The raspberry is a little old, it is a raspberry pi with only 1gb of ram. So, you probably asking you, why could we run in it.

Here is the answer:

  • Run pi-hole
  • Run caddy
  • Run beszel
  • Run unbound
  • Run tailscale

Dont worry, its a lot of services but its not that hard to configurate.

What do them

Pi hole

Pi-hole is a service that allows you to block ads network, you can install in the pi and block all adds in your network. Also working with social media? Unfortunatily no, only works for adds in your searching result, egg. marca .com, this website has many adds by default, and sometimes the adds difficult us the reading in the website, with pi-hole, we removed all distraction adds.

Caddy

Caddy is a powefull server and reverse proxy, with caddy, we can configure our domain and obtain free ssl certificates, but for this case, we only to need caddy for connect our services to the ports, only for that,

Beszel

Beszel is a open source server monitoring. We can watch in any time how is working our local network, we can see the CPU temperature, RAM usage, Disk usage, and the services that are running in the Raspberry pi, even Docker services.

Is a powerfully tool for monitoring our home.

Unbound

Unbound is a DNS resolver, you can install in the pi and use it as your our DNS resolver. This DNS gets us out of the way DNS resolvers like google or cloudflare. Unbound is a validating recursive, and resolves domain names directly by communicating with root and authoritative DNS server. This is a good way to incread our privacity and security.

Tailscale

Tailscale is a VPN based on WireGuard protocol, it allows you to create. secure, enctypted network between your devices, menaing you can access your home newtork and Raspberry pi services (pi-hole, beszel) from any where. It does not matter if you can access to Internet from yuor mobile data, public wifi, airport wifi, your friend’s home, any where, you can access to your home services. For use tailscale, we need to create a new account in the website, install in the pi, install in our mobile or any device, the app is available for iOS and Android, for windows, in our network LAN, we dont need it, only in our mobile devices.

Instalation

  • Docker
  • Raspberry Pi OS / Debian