Cloud WireGuard Guide

github.com/rajannpatel/Pi-Hole-on-Google-Compu… VPNs Open-source projectFreeOpen source

This guide sets up Pi-hole and WireGuard on Ubuntu 24.04 using Google Cloud's free tier, with full-tunnel and split-tunnel configurations.

github.com/rajannpatel/Pi-Hole-on-Google-Compu…
Cloud WireGuard Guide homepage screenshot

About Cloud WireGuard Guide

Cloud WireGuard Guide is an open-source repository with instructions and files to set up Pi-hole and WireGuard on Ubuntu 24.04 LTS using Google Cloud's free tier. It uses cloud-init to deploy a virtual machine that works as a self-run VPN server with DNS-based ad blocking.

The guide covers installing and connecting the gcloud CLI, reserving a static IP address, and deploying the virtual machine. Once set up, you can connect phones, tablets, and computers using a Full Tunnel configuration for all traffic or a Split Tunnel configuration for DNS traffic only. Both options provide ad blocking over an encrypted connection to the cloud.

Split Tunnel allows direct use of local network devices such as Chromecast or Roku, while Full Tunnel routes all traffic through the server. It suits users who are comfortable running Linux commands and want to manage their own VPN and ad blocker.

Key features

  • Sets up Pi-hole and WireGuard on Ubuntu 24.04 LTS
  • Deploys to Google Cloud free tier via cloud-init
  • Includes full-tunnel VPN config for all traffic
  • Includes split-tunnel VPN config for DNS traffic only
  • Provides DNS-based ad blocking for connected devices
  • Instructions for gcloud CLI and static IP setup
Best for: People comfortable with Linux commands who want to run their own VPN with ad blocking.
Good for
  • Open source repository with setup files
  • Covers both full-tunnel and split-tunnel use
  • Blocks ads across phones, tablets, and computers
  • Uses Google Cloud free tier infrastructure
Watch out for
  • Requires Linux command line and gcloud setup
  • Egress fees may apply from China and Australia
  • Split tunnel limits DNS-based discovery of local devices

Cloud WireGuard Guide at a glance

Type
Open-source project
Pricing
Free
Open source
Yes · Source code
Language
English
Last checked
Oct 5, 2026 · Online when checked
Listed
Oct 5, 2026

Cloud WireGuard Guide alternatives

Tools and sites you could use instead, ranked by how closely they match.

All 24 alternatives

WireHole

github.com/IAmStoxe/wirehole

WireHole combines WireGuard, Pi-hole, and Unbound in a Docker Compose project for a managed VPN with ad blocking and DNS caching.

Windscribe

windscribe.com

Windscribe provides a VPN service that describes privacy protection, location masking, and access to global content across servers in more than 130 locations.

MahsaNG

github.com/GFW-knocker/MahsaNG

MahsaNG adds fragmentation, DNS over HTTPS, rotating configurations, and free VPN servers to a V2RayNG-based app.

Open source
24 alternatives

Popular in VPNs

Well-known listings from the same topic.

All 93

Cloud WireGuard Guide FAQ

What does this guide set up?
It sets up Pi-hole and WireGuard on Ubuntu 24.04 LTS on Google Cloud's free tier via cloud-init.
What is the difference between full tunnel and split tunnel?
Full Tunnel routes all traffic through the VPN, while Split Tunnel routes DNS traffic only. Both provide DNS-based ad blocking over an encrypted connection.
Does it cost anything to run?
The guide states it costs $0, except for data egress fees when connecting from China and Australia.
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing