pangeavpn/pangeavpn-app
Acerca de
Our PangeaVPN desktop and android clients. Break down borders. Reunite the internet.
Sistemas e infraestructuraWhat you can do
- Nine transports, automatic fallback - Blocking one doesn't take you offline, and the client remembers what worked on each network
- Tectonic (beta) - Our own transport: WireGuard spread over short-lived, Chrome-like TLS connections that hold up under loss, resets and per-connection throttling
- WireGuard core - Modern crypto, low latency, fully in-process
- Post-quantum tunnel keys - An ML-KEM-768 exchange sets WireGuard's pre-shared key, so breaking X25519 later isn't enough to decrypt traffic recorded today
Crecimiento de estrellas medido
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Recopilando historial
Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.
README.md
Original
An open-source VPN client for networks that block VPNs. It runs WireGuard inside
nine censorship-resistant transports, so the tunnel looks like ordinary HTTPS.
Install · Transports · Tectonic · How it works · Verify your download · Security · Build from source · Docs
What this is
PangeaVPN is a desktop VPN client for Windows, macOS and Linux. It's made for networks that go looking for VPNs and block them: national firewalls, ISP-level DPI, corporate filters, captive Wi-Fi, hotel networks.
It runs WireGuard entirely in-process and wraps it in an obfuscation transport, so what crosses the wire looks like a normal HTTPS session instead of a recognisable VPN handshake. If one transport gets blocked, the client moves on to the next by itself.
[!NOTE] The client is open source. The network is a paid service. The app in this repository is GPL-3.0, and yours to read, build, fork and audit. Connecting to the Pangea network needs an account: there's a 5-day free trial with no card required, then plans from £2.33/month. Monero is accepted and you don't need to give an email. See pangeavpn.org/pricing.
The client speaks a documented HTTP API, so you could point it at your own infrastructure, but that isn't a supported path yet.
Why it exists
Most VPNs give themselves away somehow: an odd port, a WireGuard handshake signature, a TLS fingerprint that doesn't match any real browser. Deep packet inspection spots these and drops the connection. Worse, once a protocol has been fingerprinted, everyone using it goes down at the same moment.
PangeaVPN doesn't bet on one obfuscation scheme holding up forever. The daemon carries several and falls back between them on its own, so blocking one doesn't take you offline.
Transports
In auto mode the daemon works down this list and uses the first transport that actually carries traffic. It dials a few ahead in parallel, so one that's being silently dropped doesn't hold up the rest. You can also pin a single transport.
| # | Transport | What the network sees |
|---|---|---|
| 1 | VLESS + REALITY | A TLS handshake that borrows a real third-party site's certificate |
| 2 | Cloak | A TLS session to a harmless-looking web host |
| 3 | Shadowsocks | An encrypted stream on its own port with no TLS shape at all, so a block aimed at the TLS ones above doesn't touch it |
| 4 | Hysteria2 | QUIC / HTTP-3, hard to tell apart from modern web traffic |
| 5 | TUIC | QUIC with an HTTP/3 handshake, like a browser on a modern site. Needs UDP to get through |
| 6 | NaiveProxy | Traffic carrying a genuine Chrome TLS fingerprint |
| 7 | AnyTLS | A TLS session whose record sizes are padded to blunt the TLS-in-TLS fingerprint |
| 8 | CDN (VMess) | An HTTPS connection to a content delivery network edge, never to our servers, so it survives every node address being blocked. It also works behind school and office filters that decrypt HTTPS, and a filter that does sees only a browser-style WebSocket and VMess ciphertext. Slower |
| 9 | CDN (VLESS) | The same CDN route with VLESS over HTTPUpgrade, tried when a node's VMess route is missing or refused. A filter that decrypts HTTPS can read the node credential it carries. Slower |
| 10 | Tectonic (beta) | Several short-lived TLS connections that look like Chrome loading an ordinary website. Our own transport |
Cloak is always available. The others switch on when the hub provisions them, so your exact cascade depends on your account and the node you land on.
The client also remembers which transport worked on each network and puts it first the next time you connect there. A network that blocks REALITY only costs you the fallback delay once.
Whichever transport comes up, the tunnel inside it is always WireGuard, and it never shells out to wg, wg-quick or any other external binary. You can also pick plain WireGuard with no transport at all. It's the fastest option and the only one that is recognisable on the wire as a VPN, which is why auto mode never chooses it.
A Snowflake transport (WebRTC, as used by Tor) is written and wired up but switched off in current releases, because its peer address is only discovered at runtime and the kill switch can't permit it in advance. See snowflakeReleaseGated in daemon/internal/api/service.go.
Tectonic: our own transport (beta)
Tectonic is the transport we built for PangeaVPN, and the one we mean to make the default once it has proven itself in the field.
Almost every other transport carries the whole tunnel inside one long-lived connection, and one connection is easy to single out. A firewall can throttle it, reset it, or flag it just for staying open for hours. Tectonic spreads WireGuard across a small pool of short-lived TLS 1.3 connections called lanes. Each lane looks like Chrome loading an ordinary website, and lanes are swapped out every few tens of seconds to minutes, the way a browser cycles its connections.
- Hard to throttle. If the network caps each connection, Tectonic notices and opens more lanes. Under a 4 Mbit/s per-connection cap it carried 10–24 Mbit/s, where a single-connection transport can never beat 4.
- Made for bad links. Every lane has its own congestion window, so a lost packet slows one lane instead of the whole tunnel. With 1% packet loss it carried 1.4–3.7× as much as REALITY and AnyTLS.
- Responsive under load. While the link is saturated, ping stays around 3× its idle value. REALITY's climbs to 12–17×.
- Shrugs off resets. When a lane gets reset, the others carry on and a replacement opens. The longest stall measured was 139 ms. A REALITY transfer hit by the same reset carried nothing more.
- No speed tax. The first packet reaches the node within about two round trips, and on a clean link it runs at 91–97% of plain WireGuard, level with REALITY.
- Probes find a real website. Each node serves a real site on its own domain with a real certificate. The login is tied to the TLS session it rides in, so a captured login is useless anywhere else, and anything that fails it just gets the website.
- Survives network changes. A session belongs to your device, not to a connection. Moving from Wi-Fi to mobile data rejoins the same session instead of starting over.
- Gaming mode. Optionally sends game traffic over two lanes at once, so a lost packet doesn't freeze the game.
- No home-made cryptography. Real TLS 1.3 outside and WireGuard inside. Tectonic adds only the login, framing, scheduling and traffic shaping, built from standard primitives.
It's open source under the same licence: pangeavpn/Tectonic. The design write-up explains every choice, and the benchmark results have the full numbers behind the claims above.
[!WARNING] Tectonic is in beta. It's implemented and covered by tests, including end-to-end runs with real WireGuard, but it hasn't been field-tested at scale. The numbers above come from our network lab, not from real-world networks, and part of its traffic shaping still uses placeholder values until we've recorded real Chrome sessions. That's why auto mode tries it last.
To try it now, choose Tectonic in Settings under Censorship Bypass. If it connects, the app remembers that for the network, and auto mode tries it first there next time. We'd love to hear how it goes.
It won't connect through a filter that decrypts HTTPS, which many schools and offices use. That's deliberate: its login only works over an unbroken TLS session. Auto mode moves on to the other transports there.
Features
| Nine transports, automatic fallback | Blocking one doesn't take you offline, and the client remembers what worked on each network |
| Tectonic (beta) | Our own transport: WireGuard spread over short-lived, Chrome-like TLS connections that hold up under loss, resets and per-connection throttling |
| WireGuard core | Modern crypto, low latency, fully in-process |
| Post-quantum tunnel keys | An ML-KEM-768 exchange sets WireGuard's pre-shared key, so breaking X25519 later isn't enough to decrypt traffic recorded today |
| Multihop | Enter through one server and leave through another. The network you're on only ever sees the entry |
| Kill switch | OS firewall rules block traffic if the tunnel drops (Windows WFP, Linux nftables/iptables, macOS PF) |
| Lockdown mode | Optionally keeps the kill switch armed after you disconnect |
| Split tunnelling | Pick apps or IPv4 ranges that skip the VPN, with no kernel driver. DNS always stays in the tunnel |
| Encrypted hub channel | Each request is sealed with hybrid X25519 + ML-KEM-768 and AES-256-GCM, so it survives proxies that intercept TLS |
| Hub access when blocked | Cached IP, DNS-over-HTTPS, REALITY, Shadowsocks and a CDN relay, then a signed dead drop if every known address has been burned |
| 8 languages | Including Persian, Arabic, Chinese, Russian and Ukrainian |
| Native desktop | Compact taskbar popover, dark and light themes, system tray, auto-start at login |
| Real installers | NSIS on Windows, a signed and notarized .pkg that sets up launchd on macOS, AppImage and .deb on Linux |
Languages
English · Español · Français · Русский · Українська · 中文 · العربية · فارسی
Translation fixes are welcome. The locale files are in apps/desktop/src/renderer/i18n/locales/.
Install
Download from pangeavpn.org/download or the Releases page.
| Platform | Download | Notes |
|---|---|---|
| Windows 10/11 (x64, arm64) | Setup.exe (NSIS) |
Installs PangeaDaemon as a Windows service, so you aren't prompted every time you connect |
| macOS (Intel, Apple Silicon) | .pkg |
Signed and notarized. Installs the app and registers the launchd daemon, so there are no password prompts at runtime |
| Linux (x64, arm64) | build from source | ./scripts/install-linux.sh installs the app and a systemd service |
Release builds cover Windows and macOS. On Linux, npm run build-bin:linux also produces an AppImage and a .deb, but neither of those sets up the daemon service by itself.
Linux from source
git clone https://github.com/pangeavpn/pangeavpn-app.git
cd pangeavpn-app
./scripts/install-linux.sh
Verify your download
[!WARNING] Windows releases are not code-signed yet. We'd rather tell you here than have you find out from a SmartScreen prompt.
Until they are, Windows will show "Windows protected your PC" when you run the installer (click More info → Run anyway). Signing them is on the roadmap. The macOS .pkg is already signed with an Apple Developer ID and notarized by Apple, so Gatekeeper opens it without a warning.
You don't have to take our word for anything:
Check the hash. Every release publishes a
SHA256SUMS.txtwith a checksum for each file. Compare before installing:# macOS / Linux shasum -a 256 PangeaVPN-Setup-*.exe# Windows Get-FileHash .\PangeaVPN-Setup-*.exe -Algorithm SHA256Check where it was built. Every release file comes out of GitHub Actions from the tagged commit, in public, with public logs.
Build it yourself. See Build from source. Then you don't have to trust our binaries at all.
Read the code. That's what the licence is for.
The bundled wintun.dll and wireguard.dll are the official Authenticode-signed builds from WireGuard LLC. We don't rebuild them.
How it works
- You sign in. The app seals the request under the hub's pinned keys, with a fresh key per request, and POSTs it to the hub.
- The hub provisions a peer on the best node and sends back a WireGuard config and transport credentials over the same encrypted channel.
- The local daemon builds the tunnel. It works through the transport list until one connects, brings WireGuard up over it, and routes your traffic in.
- The kill switch arms, so a dropped tunnel can't leak your real IP.
On a normal connection all four steps finish in well under a second.
Architecture
Three components live in one repo:
apps/desktop: Electron and TypeScript, with vanilla HTML/CSS and no framework. The sandbox is on, context isolation is on, and the renderer has no Node access.daemon: a Go HTTP daemon on127.0.0.1:8787with token auth, rate limiting, a 1 MB body cap and sanitised errors. It owns the state machine and the in-process WireGuard and transport managers.packages/shared-types: the Zod schemas shared between Electron and the daemon-facing TypeScript.
docs/architecture.md goes into the details.
Platform implementations
| Platform | WireGuard | Transports | Daemon model | Kill switch |
|---|---|---|---|---|
| Windows | In-process (wireguard/windows + Wintun) |
In-process | Windows service (LocalSystem) | WFP filters |
| macOS | In-process (Go library + utun) | In-process | launchd system daemon | PF rules |
| Linux | In-process (Go library + TUN, policy routing + fwmark) | In-process | systemd service | nftables, falling back to iptables |
No platform spawns an external wg, wg-quick, wireguard-go or ck-client binary, and daemon/internal/wg/no_exec_test.go fails the build if anything tries.
Security
PangeaVPN is open source so you can check every claim below instead of believing it.
Encrypted hub channel
The app talks to the hub over its own encrypted channel inside HTTPS. The threat model includes captive portals and corporate proxies that intercept TLS on purpose, so the outer TLS can't be the thing you rely on.
For each request, the app:
- generates a fresh X25519 key pair and runs ECDH against the hub's pinned X25519 key;
- asks the local daemon for an ML-KEM-768 encapsulation to the hub's second pinned key;
- feeds both secrets through HKDF-SHA256 to get separate AES-256 keys for each direction;
- encrypts the inner
{method, route, headers, body}with AES-256-GCM, binding the reply to the request it answers; - sends it to
/v2/secure, where only an allowlist of client-facing routes is reachable.
The desktop app never falls back to /v1/secure: until the daemon can encapsulate, hub requests wait for it to start and are refused if it can't, rather than sent under X25519 alone. docs/post-quantum.md covers both the channel and the tunnel keys.
[!IMPORTANT] About
rejectUnauthorized: false. Yes, the outer TLS layer skips CA validation, and yes, that's deliberate. On a network where a middlebox already terminates and re-signs TLS, validation either fails outright or passes against the middlebox's own certificate, and neither result tells you anything. The trust anchors are the pinned hub keys. Without the matching private keys an interceptor can't read or forge the inner payload, whatever it does to the outer TLS. Please read docs/architecture.md before proposing a change here.
Electron hardening
sandbox: trueandcontextIsolation: trueon the renderer- Strict CSP:
default-src 'self',object-src 'none',base-uri 'none',frame-src 'none',form-action 'none' - The main process blocks navigation,
window.openand webview tags - Permission requests are denied by default, TLS errors are fatal in production, and DevTools are off in packaged builds
- Electron Fuses:
runAsNodeoff,enableNodeOptionsEnvironmentVariableoff,enableNodeCliInspectArgumentsoff, cookie encryption on,onlyLoadAppFromAsaron - Credentials live in the OS keychain through
safeStorage - The renderer builds its DOM with
createElementandtextContent, neverinnerHTMLon user-controlled data
Daemon hardening
- Every endpoint except
/pingneeds the token. On macOS and Linux the app never sends it: each request carries an HMAC of its method, path, body, timestamp and nonce, so whatever grabs the port while the daemon restarts gets nothing reusable - The token file is
0600, machine-scoped (%ProgramData%) for the Windows service and user-scoped elsewhere - Token-bucket rate limit (2000 burst, refilling at about 33/s), a 1 MB request cap, and sanitised error messages
- It listens on loopback only and never binds a network interface. Requests with a non-loopback
HostorOriginare refused, so a web page can't reach it
Reporting a vulnerability
Please report security issues privately through pangeavpn.org/contact instead of opening a public issue.
Build from source
Prerequisites
- Node.js LTS and npm
- Go 1.25+ on
PATH, or a prebuilt daemon atdaemon/bin/PangeaDaemon.exe/daemon/bin/daemon - The platform's installer toolchain: NSIS on Windows, Xcode Command Line Tools on macOS,
dpkg/fakerootfor.deb - For NaiveProxy, cgo and a C toolchain. Without the
naive_cgobuild tag it compiles to a stub that reports itself unavailable
Run in dev
npm install
npm run dev
[!TIP] On Windows the dev script asks for UAC so the daemon can configure the WireGuard adapter.
Commands
| Command | What it does |
|---|---|
npm run dev |
UI and daemon, rebuilt on change and wired together |
npm run preview |
The UI alone in a browser at 127.0.0.1:5199, on a fake daemon and hub; query options like ?sub=expired&state=CONNECTED&lang=ru pick the scenario |
npm run build |
Compile shared-types, then the desktop app, then the daemon |
npm test |
TypeScript and Go test suites |
npm run build-bin:windows |
NSIS installer (x64 + arm64) |
npm run build-bin:mac |
.pkg for Intel and Apple Silicon |
npm run build-bin:linux |
AppImage and .deb (x64 + arm64) |
npm run build-bin |
All three, in sequence |
docs/binaries-and-packaging.md has the per-platform details.
Project layout
apps/desktop/ Electron app (TypeScript, vanilla HTML/CSS)
src/main/ Main process: IPC, daemon client, secure channel, auth, updater
src/renderer/ UI + i18n locales
src/shared/ IPC channel constants and shared helpers
daemon/ Go daemon
cmd/daemon/ Entry point + Windows service host
internal/api/ HTTP handlers (rate-limited, sanitised)
internal/auth/ Token management and request auth
internal/state/ State machine, config store, log store
internal/cloak/ In-process Cloak runtime
internal/naive/ NaiveProxy transport (cgo)
internal/tectonic/ Tectonic transport (links github.com/pangeavpn/tectonic)
internal/pq/ ML-KEM-768 key exchange
internal/wg/ In-process WireGuard manager (build-tagged per OS)
internal/platform/ Paths, kill switch, routes, WFP
packages/shared-types/ Zod schemas + TS types shared by both halves
infra/edge-relay/ Cloudflare Worker that relays the hub envelope
scripts/ Dev + packaging scripts (Node MJS)
docs/ Architecture and packaging deep-dives
Documentation
| Document | What's in it |
|---|---|
| Architecture | Trust boundaries, the local API, reaching the hub, the connection lifecycle, the kill switch and the health loop |
| Binaries and packaging | Build prerequisites, installer contents, service setup and release CI |
| Post-quantum protection | The ML-KEM-768 exchange behind WireGuard's pre-shared key and the /v2/secure channel |
| Dead-drop bootstrap | How a client that can't reach the hub learns new addresses from a signed public file |
| Edge relay | The CDN relay behind the fronted hub method, and how to deploy one |
| Tectonic design | How our own transport works, its threat model, and how its speed is measured |
Roadmap
Roughly in priority order:
- Mobile releases. Native iOS and Android apps are built from this repo (
apps/ios,apps/android) on the same Go core as the desktop, and iOS builds are in TestFlight. Neither has a public release yet. - Code-signed Windows releases. macOS releases are already signed and notarized.
- Tectonic out of beta, once it has proven itself in the field, and then the first transport auto mode tries.
- Auto-connect rules for untrusted Wi-Fi, on boot, and after leaving a captive portal.
- Snowflake. It's written but not switched on in production yet.
- SNI rotation and domain fronting, to get past single-fingerprint blocks.
- Reproducible builds, so anyone can confirm a release matches this source.
- Kernel WireGuard on Windows and Linux, for gigabit throughput.
Contributing
PRs and issues are welcome. A few things to know first:
- Keep one commit per logical change. It's easier to review and easier to revert.
- Don't change
rejectUnauthorizedon the secure channel. It's deliberate; if it looks wrong, read docs/architecture.md first. - Don't shell out to
wg,wireguard-goorck-client. Everything runs in-process for a reason, andno_exec_test.goenforces it. - Run
npm testbefore you open a PR.
Links
- Website: pangeavpn.org
- Privacy policy: pangeavpn.org/legal/privacy
- Warrant canary: pangeavpn.org/canary
License
GPL-3.0. If you ship a fork, ship the source.
Explorar proyectos relacionados
Cargando…