gitwtfhub

wtf is 32-bit-wireguard-tor-vpn?

coderfetch21/32-bit-wireguard-tor-vpn — explained in plain English

Analysis updated 2026-05-18

0ShellAudience · developerComplexity · 3/5LicenseSetup · moderate

TL;DR

Shell scripts that turn a Raspberry Pi into a WireGuard VPN gateway that routes all connected devices' traffic through Tor for privacy.

Mindmap

mindmap
  root((Pi VPN Gateway))
    What it does
      WireGuard encryption
      Routes through Tor
      Hides traffic from ISP
    Tech stack
      Shell scripts
      WireGuard
      Tor
      Raspberry Pi OS
    Use cases
      Personal privacy gateway
      Multi device VPN
      Troubleshooting toolkit
    Audience
      Raspberry Pi owners
      Privacy focused users
    Setup
      One time install script
      Add client via QR code
      Verify with test scripts

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Route a phone or laptop's traffic through Tor automatically by connecting it to a home Raspberry Pi.

REASON 2

Hide your browsing from your internet provider and local WiFi network using layered encryption.

REASON 3

Add or remove devices from the VPN with a single script that generates a QR code to scan.

REASON 4

Diagnose common Raspberry Pi VPN problems like broken DNS or Tor failing to start using built in troubleshooting scripts.

What's in the stack?

ShellWireGuardTorRaspberry Pi OSdnsmasq

How it stacks up

coderfetch21/32-bit-wireguard-tor-vpn123satyajeet123/bitnet-serverahloiscreamo/pod-search
Stars000
LanguageShellShellShell
Setup difficultymoderateeasyeasy
Complexity3/52/52/5
Audiencedeveloperdevelopergeneral

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · moderate Time to first run · 30min

Requires a Raspberry Pi 4B running 32-bit Raspberry Pi OS with sudo access and an Ethernet connection.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

Wtf does this do

This project is a collection of shell scripts that turn a Raspberry Pi 4B into a personal privacy gateway. The idea is simple: devices like a laptop or phone connect to the Pi over WireGuard, an encrypted VPN protocol, and the Pi then routes all of that traffic through the Tor network before it reaches the internet. The result is that your internet provider only ever sees encrypted traffic going to the Pi, websites only see a random Tor exit node's address instead of yours, and anyone on the same WiFi network cannot see what you are doing at all. Setup is meant to be done entirely on the Pi itself, running 32 bit Raspberry Pi OS with sudo access. A single setup script installs WireGuard, Tor, and dnsmasq, and after that one command starts every service at once. Adding a new device, such as a phone or laptop, is handled by a script that generates a configuration file and a QR code, so most devices can connect just by scanning the code with the WireGuard app. The scripts also include ways to check that everything is actually working, both on the Pi and on the connecting device, by confirming that outgoing traffic really is passing through Tor. Beyond the basics, the README documents a long list of things that can go wrong on real Raspberry Pi hardware and how to fix them: connections timing out, DNS resolution failing, the interface being torn down because of a strict script setting, Tor not starting properly on some Pi OS images, and IP forwarding resetting after a reboot. Each of these comes with the exact commands needed to diagnose or resolve the problem. The project supports both IPv4 and IPv6 addressing with a defined internal network range and can handle up to 253 connected devices at once. It uses modern WireGuard encryption methods and is released under the MIT license, meaning it can be used, modified, and shared freely as long as the original copyright notice is kept.

Yoink these prompts

Prompt 1
Walk me through running setup-full.sh on my Raspberry Pi 4B step by step.
Prompt 2
Help me troubleshoot why my wg-quick interface keeps getting torn down immediately.
Prompt 3
Explain how traffic flows from my laptop through WireGuard and then through Tor in this setup.
Prompt 4
Show me how to add a new phone as a client using add-client.sh and connect with the QR code.

Frequently asked questions

wtf is 32-bit-wireguard-tor-vpn?

Shell scripts that turn a Raspberry Pi into a WireGuard VPN gateway that routes all connected devices' traffic through Tor for privacy.

What language is 32-bit-wireguard-tor-vpn written in?

Mainly Shell. The stack also includes Shell, WireGuard, Tor.

What license does 32-bit-wireguard-tor-vpn use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is 32-bit-wireguard-tor-vpn to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is 32-bit-wireguard-tor-vpn for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.