Low-latency P2P mesh VPN in Rust.
Reed-Solomon FEC loss immunity • 40 Gbps AF_XDP multi-core scaling • Decentralized threshold PKI • Anti-DPI TLS mimicry
What is yip?
Standard VPNs collapse the moment a physical link drops packets. WireGuard delivers exceptional throughput on clean fiber, but on lossy Wi-Fi, cellular networks, or congested trans-oceanic routes, even 2% packet loss forces TCP into exponential backoff, cutting effective speeds by up to 99%.
yip fixes this at the root. It is a high-performance peer-to-peer mesh VPN in Rust that bakes Reed-Solomon forward error correction (FEC) directly into the datapath. Missing packets are reconstructed in-flight before the kernel TCP stack or user applications ever realize a drop occurred.
Under the hood, yip pairs proactive loss recovery with 40 Gbps AF_XDP zero-copy scaling, post-quantum ML-KEM-768 handshakes (with ML-KEM-1024 and ML-KEM-512 support), an online t-of-n Decentralized Threshold CA (RFC 9591 FROST), and authentic Chrome TLS mimicry to glide past aggressive DPI firewalls unnoticed.
[!TIP]
Decentralized Threshold CA Hero Feature:
yip avoids single-key CA failure by partitioning root signing authority across a distributed t-of-n signer quorum (yip-ca serve). Because FROST threshold signatures aggregate linearly into a standard 64-byte Ed25519 signature, threshold credentials require zero changes to node verifiers and support zero-touch 70% TTL auto-renewal inside yipd. See the turnkey Threshold CA Quickstart.
[!NOTE]
yip builds an encrypted peer-to-peer overlay, not an anonymizing mix-net like Tor. Connected peers authenticate directly and see each other's physical IP addresses.
Start Here
Find the fastest path to what you need:
Why yip Exists: The Problem with Traditional VPNs
Every traditional tunnel protocol (WireGuard, OpenVPN, IPsec) makes an optimistic assumption: the underlying transport delivers packets reliably. On clean datacenter cross-connects, that assumption holds.
The open internet is not a clean datacenter cross-connect. On cellular data, satellite connections, crowded public Wi-Fi, or international transit routes, packet loss is an inescapable reality. When an underlying network drops packets, standard VPNs pass that loss straight up to the kernel. For TCP connections, this triggers catastrophic congestion window throttling modeled by Mathis' formula:
$$T \le \frac{MSS}{RTT} \times \frac{C}{\sqrt{p}}$$
Because throughput is inversely proportional to the square root of loss probability ($p$), injecting just 3% packet loss on a 100 Mbit/s link (60ms RTT) slashes transfer speeds from 95 Mbit/s down to under 10 Mbit/s. At 10% loss, connections stall completely.
yip's answer is proactive in-flight repair. Instead of waiting for timeout expirations and reactive retransmissions, yip computes Cauchy Reed-Solomon erasure coding over Galois Field $GF(2^8)$ directly in the datapath. For every block of packets, yip generates mathematical parity symbols in-flight. Missing symbols are reconstructed in 117 ns with zero heap allocations before TCP stacks detect a gap.
When to Choose yip
| Use yip for |
Stick with WireGuard or others for |
| Contended, lossy, or wireless links (cellular, satellite, trans-oceanic transit) where packet drops stall standard tunnels |
Clean zero-loss gigabit LANs where in-kernel WireGuard already saturates the wire with lower CPU overhead |
| Zero-trust mesh networks requiring decentralized t-of-n threshold signing and automated certificate renewal |
Simple point-to-point home VPNs where static public keys are easily managed manually |
| High-packet-rate 40G/100G edge infrastructure scaling across multiple CPU cores via zero-copy AF_XDP |
Anonymity or mix-net routing without trusted direct peering (peers authenticate directly) |
| Hostile network environments monitored by active-probing Deep Packet Inspection (DPI) firewalls |
Desktop platforms other than Linux (macOS and Windows desktop clients are not currently supported) |
| Future-proof quantum resistance via NIST FIPS 203 ML-KEM-768 hybrid handshakes (with ML-KEM-1024 and ML-KEM-512 support) |
Environments where legacy unencrypted protocols or centralized proprietary controllers are required |
5-Minute Quickstart
Set up an encrypted, forward-error-corrected tunnel between two Linux nodes in four steps:
# 1. Install binaries
cargo install yipd yip-ca
# Or automated installer: curl -fsSL https://raw.githubusercontent.com/femboyisp/yip/main/install.sh | sh
# Or pre-compiled binary: cargo binstall yipd yip-ca
# 2. Generate identity keypair and print self-certifying overlay IPv6 address
yipd --genkey > /etc/yip/node.key && yipd --addr $(grep '^public=' /etc/yip/node.key | cut -d= -f2)
# 3. Start the daemon (systemd service or direct configuration file invocation)
sudo systemctl start yipd
# Or run manually: sudo yipd /etc/yip/yipd.conf
# 4. Verify telemetry and ping remote overlay peer
yipctl status
ping6 <peer-overlay-ip>
Primary Deployment Modes
Mode 1: Direct Point-to-Point (VPS-to-VPS)
Direct UDP tunnel between two publicly addressable nodes with Cauchy RS-FEC:
# /etc/yip/yipd.conf (Host A: 198.51.100.1)
local_private = dd152fc311a115549005da852d101a7d3a14594c728f71ff87aa0872da6c0fa9
local_public = bf923deeaddb66dde39e99987abdfd789c54eb882a570c340cd338071727ceeb
listen = 0.0.0.0:443
device = yip0
# Remote peer: Host B (203.0.113.2)
[peer]
public_key = 1f5b6b76d9723a79221777a7450522c32faa7300efd59b0a5efa42665cac0a0a
endpoint = 203.0.113.2:443
Mode 2: NAT Rendezvous (Behind CGNAT)
Node behind NAT discovering and coordinating through an intermediate rendezvous relay:
# /etc/yip/yipd.conf (Node A behind CGNAT)
local_private = 2f2b5880cc15f29f826e876f5396c6f418e2366b73b415c5441f152b23c0334d
local_public = 4cbc48cf095389d829abf3c7d78747ca35c96483375bd73860b2ebba94c99d50
listen = 0.0.0.0:443
device = yip0
rendezvous = 198.51.100.5:443
# Remote peer: Node B (endpoint resolved dynamically via rendezvous)
[peer]
public_key = 6ed3f82ba6450cd14ec52509deb42a87c6a8d2fa91a5a145f2ddcfdb0d675d12
Mode 3: Zero-Trust Offline CA Mesh
Nodes discover and peer with authorized members automatically via signed gossip and rendezvous, requiring zero manual [peer] entries:
# /etc/yip/yipd.conf (Mesh Member Node)
local_private = 2f2b5880cc15f29f826e876f5396c6f418e2366b73b415c5441f152b23c0334d
local_public = 4cbc48cf095389d829abf3c7d78747ca35c96483375bd73860b2ebba94c99d50
listen = 0.0.0.0:443
device = yip0
rendezvous = 198.51.100.5:443
# Offline CA credentials minted via `yip-ca sign-cert`
ca_public = 8a03a4cf43c2907041efb394c0effabad5bdb4cbbc35d17c924c0b6cbfa8ba75
cert = /etc/yip/node.cert
roots = /etc/yip/network.roots
member_sign_private = c22239d00522843313aa03a662e8f0cb6abb7889f8f103510ebb5dee0e924857
network_id = f11a8e0df8fa6352eeb62192de7ece47
Mode 4: Decentralized Threshold CA Mesh (t-of-n FROST)
Eliminates single-point-of-compromise root keys. Online signers jointly issue and renew certificates via online RPC, with yipd handling zero-touch renewal in the background at 70% TTL:
# /etc/yip/yipd.conf (Enrolled Node with Automated Renewal)
ca_public = 8a03a4cf43c2907041efb394c0effabad5bdb4cbbc35d17c924c0b6cbfa8ba75
cert = /etc/yip/node.cert
roots = /etc/yip/network.roots
member_sign_private = c22239d00522843313aa03a662e8f0cb6abb7889f8f103510ebb5dee0e924857
network_id = f11a8e0df8fa6352eeb62192de7ece47
# Online Threshold CA Coordinator for background 70% TTL renewal
threshold_ca_server = 198.51.100.10:4443
Check status or trigger immediate renewal via the control socket:
sudo yipd cert status
sudo yipd cert renew
👉 Complete deployment walk-through: See the Turnkey Threshold CA Tutorial & Systemd Units.
Comprehensive 6-Pillar Feature Showcase
1. Galois Field Proactive FEC
- Systematic Cauchy RS + RLNC Streaming: In-flight erasure coding over $GF(2^8)$ pairs Cauchy Reed-Solomon block codes with Random Linear Network Coding streaming fountain codes.
- Poly-Vector SIMD Acceleration: Hardware-accelerated matrix multiplication across AVX-512BW, Intel GFNI, AVX2, SSSE3, ARM NEON, and WebAssembly SIMD128.
- Adaptive Repair Scaling: Real-time sliding window telemetry dynamically adjusts repair symbol overhead based on observed channel loss, eliminating goodput waste on clean links.
- Zero-Allocation Hot-Path Reassembly: Pre-allocated contiguous object buffers and in-place Cauchy RS repair (
reconstruct_missing_sources) deliver clean packets in 117 ns with zero heap allocations.
2. Zero-Trust PKI & Decentralized Mesh Membership
- Dual Cryptographic CA Architecture: Supports both an air-gapped, offline master key root CA (
yip-ca sign-cert) and an online, decentralized t-of-n Threshold CA (yip-ca serve --role coordinator|signer).
- RFC 9591 FROST Ed25519 Quorum: Threshold signers collaborate using the FROST(Ed25519, SHA-512) ciphersuite. Because Schnorr threshold signatures aggregate linearly into a standard 64-byte Ed25519 signature, threshold credentials are 100% byte-for-byte indistinguishable from single-signer certificates, requiring zero changes to existing node verifiers.
- Single-Round (1-RTT) Online Enrollment: Pre-generated nonce pools (
frost_ed25519::round1::preprocess) pre-cached at the coordinator collapse online certificate enrollment from two network round-trips to a single RPC round-trip.
- Asynchronous Robustness (ROAST): Coordinator signing loop is wrapped in a ROAST state machine, guaranteeing progress and unforgeable issuance even if up to n - t signers are unresponsive, delayed, or Byzantine.
- Rollback-Immune Nonce Vault: Memory-locked (
mlock), zeroized-on-drop ephemeral nonce pools bound to 128-bit CSPRNG boot-epoch IDs eliminate nonce-reuse private key extraction under VM snapshots.
- Automated Lifecycle & Background Renewal: Proactive zero-knowledge polynomial share refreshing (CVE-2025-58359 hardened), lost-share repair, and automated zero-touch renewal inside
bin/yipd at ≥ 70% of certificate TTL.