Cloudflare

How to build your own VPN, or- the history of WARP

Oct 29, 2025Chris Branch
How to build your own VPN, or- the history of WARP
SummaryAI, from the source post

This post details the initial implementation of WARP, Cloudflare's mobile-first performance and security app, which involved building a high-performance VPN using the Linux networking stack. It explains the technical challenges of securely and efficiently egressing arbitrary user packets from edge machines, detailing the use of Layer 3 VPN tunneling, Network Address Translation (NAT) with Netfilter and nftables, and the role of the conntrack module for stateful packet handling. The post also highlights the use of TUN devices and packet marking for distinguishing WARP client traffic and controlling routing decisions, laying the groundwork for future zero-trust products and capabilities.

More from the Website Security & Threat Management trail