Why a new protocol instead of WireGuard?
此内容尚不支持你的语言。
A fair question, and the default instinct is right: WireGuard is about 4,000 lines, kernel-fast, formally analyzed, and has had years of public scrutiny. rVPN is none of those things yet. This section is the honest version of what the design buys and what it costs.
What threading stealth into the protocol buys
- The first bytes on the wire are a browser TLS handshake. The macOS/desktop clients open with a Chrome-like TLS 1.3 ClientHello (BoringSSL, real ALPN, session resumption). WireGuard’s handshake is a fixed-format UDP packet that any DPI labels instantly — so a WireGuard deployment that needs stealth wraps it in a second protocol, and at that point the wrapper is the stealth protocol and WireGuard is cargo.
- TCP/443 in a world that throttles UDP. WireGuard is UDP-only. Networks that rate-limit UDP or only allow 443/TCP kill it outright.
- The server answers active probes as a website. When a censor connects to your server and speaks to it, the same listener serves a real website (the decoy) or completes the tunnel handshake. A layered design can bolt a web server in front, but then two systems must agree about which connections are tunnels — the seam is where probing lives.
- Pooled flows flatten traffic shape. Many flows share a small set of long-lived connections with credit-based flow control, and after the handshake packets are padded to 1 KB blocks, so per-flow size and timing patterns don’t reach the wire. WireGuard maps flows to packets more or less directly; its sizes and timing are observable unless the transport around it pads.
- Per-message key rotation. Both protocols have forward secrecy: WireGuard rekeys with a fresh ephemeral handshake about every two minutes, so a stolen session key exposes minutes of traffic, and a later identity-key theft does not decrypt recordings. The Double Ratchet adds per-message rotation and, once DH steps run regularly (a fix is pending in our tracker), recovery from a session-state compromise within one round trip rather than at the next rekey. Neither protocol protects against a stolen long-term identity key — that means rotating it out of band in both.
What it costs
- WireGuard’s crypto is analyzed; ours is young. “Don’t roll your own protocol” is correct advice for most projects, and we are paying the price of the exception: this codebase needs, and is getting, outside review rather than inherited confidence.
- Wrapping WireGuard in an obfuscation transport (the udp2raw / pluggable-transport pattern) is a legitimate design: you keep the analyzed crypto and swap the wire format. What it can’t do is shape the handshake or the probe surface, because the obfuscator sits outside the protocol that generates them.
Which to run
- If your adversary is a passive classifier and you control both ends, WireGuard plus a pluggable transport is simpler and better analyzed.
- If your adversary actively probes servers or throttles UDP, the integrated design is what those two properties require. That is the adversary rVPN is built for.
Neither choice is a guarantee. Censors adapt; treat stealth as resistance, not invisibility.