Skip to content
Projects

About

The Mullvad VPN app, pointed at your own server. Self-hosted WireGuard + Shadowsocks that gets through DPI.

Systems & Infrastructure

How these counts are measured

Measured star growth

in 24h
0
in 7 days
Collecting history
in 15 days
Collecting history
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

Burrow logo

Burrow

The Mullvad VPN app, pointed at your own server.
Self-hosted WireGuard with Shadowsocks obfuscation that gets through DPI.

CI GPL-3.0

Setup · How it works · Good to know

Burrow is a fork of the open-source Mullvad VPN app. It keeps the same daemon, interface and WireGuard tunnel, plus the anti-censorship tricks. The only difference is where it connects: your own server instead of Mullvad's network. Mullvad is Swedish for "mole". Moles dig burrows, so that's the name.

Burrow is not affiliated with or endorsed by Mullvad VPN AB. "Mullvad" is their trademark. The upstream code is GPL-3.0, and so is this fork.


Why this exists

On a lot of networks, VPNs just don't work. Cafés, university Wi-Fi, some mobile carriers: WireGuard connects and the handshake goes through, but a few seconds later packets start vanishing. Pages hang and pings don't come back. Some sites can't be opened at all without a VPN, because they're simply blocked.

The odd thing was that every VPN I tried got stuck, but Mullvad kept working. It turns out Mullvad can wrap its WireGuard traffic in Shadowsocks and other obfuscation layers, so DPI doesn't recognise it.

But Mullvad costs money every month, and I already had a server sitting there. I got tired of paying for a VPN and still asking "why won't this site load?". So I took the app and pointed it at my own box.

The numbers, same server and same laptop:

Path Packet loss (small) Packet loss (large)
No tunnel, straight to the server 0% 0%
Plain WireGuard 42–67% 93%
Burrow (WireGuard over Shadowsocks) 0% 0%

The network itself was fine. WireGuard was being fingerprinted and throttled. If you have a server, you can set up the same thing in about 15 minutes.


How it works

The Mullvad app doesn't read WireGuard .conf files. It logs in, registers its device key and downloads the server list from the Mullvad API. So instead of rewriting the app, Burrow runs a small Mullvad-compatible API on your server and changes only a handful of lines in the client.

Burrow architecture: devices talk to burrow-api over HTTPS for login and keys, and send WireGuard wrapped in Shadowsocks through the DPI to the server, which forwards it to WireGuard, DNS and NAT

Server components

Component What it does
burrow-api Implements the parts of the Mullvad API the app needs: tokens, accounts, devices, relay list and the "secure connection" check. Adds and removes WireGuard peers itself.
WireGuard (wg-burrow) The tunnel. Clients can reach the internet, but not other services on your server.
Shadowsocks (burrow-ss) Gets traffic past DPI. It may only forward to the local WireGuard port, so it is not an open proxy.
dnsmasq (burrow-dns) DNS for clients inside the tunnel.

What changed in the client

File Change
mullvad-api/mullvad-api-constants/src/lib.rs API host and IP are set at build time (BURROW_API_HOST, BURROW_API_IP).
mullvad-daemon/src/geoip.rs The "secure connection" check asks your API.
mullvad-tls-client/src/lib.rs Sends SNI and falls back from ML-KEM to X25519, because stock nginx/OpenSSL 3.0 doesn't speak ML-KEM yet.
mullvad-types/src/settings/mod.rs Defaults to any relay and Shadowsocks obfuscation.
mullvad-types/src/wireguard.rs Quantum-resistant tunnels are off by default, because they need a Mullvad-specific service on the relay.
selfhost/ Everything server-side: API source, installer and admin tool.

Setup

Never rented a server or built an app? Follow the step-by-step guide. It covers everything from renting a server to installing the app on your phone, written for non-technical people.

The short version:

1. Server

You need Ubuntu 22.04 or 24.04, a public IPv4 address and a hostname that points at the server. No domain? A free name.1-2-3-4.sslip.io name works, where 1-2-3-4 is your IP with dashes.

git clone https://github.com/abdullaabdullazade/burrow-vpn.git
cd burrow-vpn/selfhost/deploy
sudo API_HOST=vpn.example.com ./install.sh

Optional variables:

Variable Default Meaning
WG_PORT 51820 WireGuard UDP port
SS_PORT 51900 Shadowsocks UDP port
COUNTRY, CITY Unknown Shown in the app
LOC_CODE xx-srv Location code, <country>-<city> (e.g. de-fra)
LAT, LON 0 Map position
SUBNET_PREFIX 10.99 Client addresses are 10.99.x.y

Then create accounts:

burrow-admin add 365          # prints a 16-digit account number for the app
burrow-admin list
burrow-admin extend <number> 30
burrow-admin delete <number>  # also removes that account's WireGuard peers

Public sign-up is disabled. Only you can create accounts, on the server.

2. Build the app

Every build reads your server from two environment variables:

export BURROW_API_HOST=vpn.example.com
export BURROW_API_IP=203.0.113.10
Platform Command (from the repo root) Status
Android APK ./scripts/setup-rust android && cd android && ./gradlew assembleOssProdDebug ✅ built and checked
Linux (.rpm / .deb) ./scripts/setup-rust linux && ./build.sh --optimize --disable-update-notification ✅ built and checked
Windows (.exe) ./scripts/setup-rust windows && ./build.sh --optimize in Git Bash ✅ built, installed and connected (Windows 11 x64)
Linux daemon + CLI only cargo build --release -p mullvad-daemon -p mullvad-cli ✅ connected end to end

System packages, the Android SDK/NDK and Windows tooling are covered in the guide.

Don't run Burrow alongside the official Mullvad app on the same machine. Both manage the same firewall tables. On Windows, installing Burrow over an existing Mullvad install replaces it but keeps the old settings (location, ports, multihop). Run mullvad reset-settings once after installing, or the app may say "The selected WireGuard port is not supported".

3. Connect

Open the app, enter the account number from burrow-admin add and press Connect. The relay and Shadowsocks are picked automatically.


Good to know

  • The relay list isn't signed. Mullvad signs its relay list with Sigsum. Burrow's API doesn't, so the app logs a warning and relies on TLS instead. The API certificate is pinned to the Let's Encrypt root.
  • The Shadowsocks password is public (mullvad), just like on Mullvad's own relays. Shadowsocks is there to get past DPI, not for secrecy. WireGuard does the real encryption.
  • No quantum-resistant tunnels. Mullvad's post-quantum key exchange service isn't part of the self-hosted stack.
  • One server per install. The relay list format supports many servers, but install.sh sets up one.
  • Branding. The apps say "Burrow VPN" everywhere you can see. Internal names (mullvad-daemon, the mullvad CLI, config paths) stay as upstream so Mullvad's updates can still be merged.

Development

  • CI (ci.yml) runs on every push: Go vet and tests for the API, shellcheck for the deploy scripts, and Rust formatting, tests and a daemon + CLI build (against a placeholder server).
  • CD (release.yml): pushing a v* tag publishes burrow-api for linux/amd64 and arm64, plus the deploy scripts, as a GitHub release. Client apps aren't published there, because each one has your server address built in.
  • Mullvad's own workflows are kept, disabled, in .github/upstream-workflows.

License

GPL-3.0, inherited from mullvad/mullvadvpn-app. The original README is kept as README.mullvad.md.

Explore related projects

Loading…