Create a VPN between a client and server across untrusted or restricted networks with DSVPN.
Cloud WireGuard Guide
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.

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
- 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
- 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
- Category
- Privacy & Security › VPNs
- 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.
WireHole combines WireGuard, Pi-hole, and Unbound in a Docker Compose project for a managed VPN with ad blocking and DNS caching.
Windscribe provides a VPN service that describes privacy protection, location masking, and access to global content across servers in more than 130 locations.
Connect to WireGuard or AmneziaWG servers on Android with WG Tunnel, an open-source client.
MahsaNG adds fragmentation, DNS over HTTPS, rotating configurations, and free VPN servers to a V2RayNG-based app.
Set up a personal VPN server in the cloud using Algo, an open-source project from Trail of Bits.
Popular in VPNs
Well-known listings from the same topic.
Cloud WireGuard Guide FAQ
What does this guide set up?
What is the difference between full tunnel and split tunnel?
Does it cost anything to run?
Tell us and an editor will check it.
Claim the listing and suggest updates yourself. An editor checks every claim first.












