Skip to content- Sources: primary, discussion
- Summary: Firezone published sanstun, an Apache 2.0 Rust implementation of the WireGuard state machine with no internal buffering and caller-supplied time, replacing its boringtun fork after more than 70 patches. begin_encapsulate reserves the packet counter and returns a Send PendingEncapsulate, so encryption can move off the owner thread. At 1280-byte packets the bookkeeping step takes about 21 ns against about 934 ns for encryption, and every inbound datagram must pass Interface::receive, which applies rate limits and cookie replies.
- Why it matters: Teams building VPNs or meshes on userspace WireGuard get a tested alternative to boringtun that scales per-tunnel throughput across cores and supports deterministic simulation.