Blogs›Cloudflare›Userspace VPN Implementation
Userspace VPN Implementation
Cloudflare has developed BoringTun, a userspace implementation of the WireGuard protocol written in Rust, aiming for a fast, safe, and cross-platform VPN solution. WARP, a mobile app utilizing this technology, secures all of a phone's internet traffic. The technical challenges in building WARP involved addressing issues with diverse phone and operating system versions, varied network conditions, and Cloudflare's own infrastructure. Key technical hurdles included managing ECMP routing with dynami
The Cloudflare agent, built with a shared Rust daemon and leveraging BoringTun for its WireGuard implementation, has achieved feature parity across Windows, macOS, ChromeOS, Linux, iOS, and Android. New deployment and configuration options include domain-based and include-only split tunneling, improved private domain DNS resolution, and upcoming posture-only mode. Deployment is further streamlined through APIs and Terraform provider integration, with future plans for user/group-specific settings and dashboard management.