eBPF-based WireGuard mesh VPN (Rust/Aya)
A WireGuard mesh VPN implemented in Rust with Aya that relies on the kernel's WireGuard and processes packets in kernel space via eBPF (egress and ingress TC) for maximum performance and minimal CPU overhead. Goals include single-digit CPU overhead at multi-Gbps bandwidth, Linux-only support, no hole punching or complex NAT handling, and a basic policy language for L3 and L4 traffic. Intended as a learning exercise and possibly a reference implementation for those learning eBPF in Rust.
Shared over time
Each entry reflects what was shared on that date. Details may have changed since then.
eBPF-based WireGuard mesh VPN (Rust/Aya)
A WireGuard mesh VPN implemented in Rust with Aya that relies on the kernel's WireGuard and processes packets in kernel space via eBPF (egress and ingress TC) for maximum performance and minimal CPU overhead. Goals include single-digit CPU overhead at multi-Gbps bandwidth, Linux-only support, no hole punching or complex NAT handling, and a basic policy language for L3 and L4 traffic. Intended as a learning exercise and possibly a reference implementation for those learning eBPF in Rust.
Posted by @Cyph0n · Original source ↗
Source text · @Cyph0n · · Source ↗
An eBPF-based Wireguard mesh VPN in Rust using Aya. The idea is to rely on kernel Wireguard, and process packets in kernel space (via eBPF) for maximum performance and minimal CPU overhead.