What it is
Cloudflare's service for encrypted connections through its network. On a server it is a separate outbound route: the destination sees a Cloudflare address instead of the server's own.
How we use it
As a separate container that only selected services use for outgoing traffic, with a watchdog that checks the tunnel. The rest of the server keeps its own address.
What it is in plain words
WARP is Cloudflare's service for encrypted connections to the internet through its network. On a phone or laptop it is an app; on a server it is a tunnel based on WireGuard (newer versions also use the MASQUE protocol) that carries outgoing traffic to the nearest Cloudflare data centre, and from there to the destination. The destination then sees a Cloudflare address instead of the server's own.
Where it helps a server
- The server needs outgoing IPv6, but the hosting provider gives only IPv4.
- An external API or service treats data-centre addresses with suspicion and answers the server with errors or checks.
- Only some outgoing traffic should leave through a separate route, while the main traffic stays on the server's own address.
- Outgoing connections of a particular service should be encrypted up to the Cloudflare network.
How it is set up on a server
- A separate exit. WARP runs as a separate interface or container. The server routes into it only the traffic that needs it: by service, by domain or by address.
- Rules, not everything. Sending all of the server's traffic through WARP is a bad idea: replies to incoming connections, including SSH, would leave the wrong way and the server would become unreachable.
- In Docker. A convenient setup is a WARP container that other containers use as their outbound route; the rest of the server is not affected.
- Health checks. A watchdog regularly checks that traffic really leaves through Cloudflare and restarts the container if the tunnel hangs.
WARP and your own exit server
| Cloudflare WARP | Your own exit server |
|---|
| Cost | free for basic use | the price of a VPS |
| Outgoing address | a Cloudflare address that can change | a fixed address of your choice |
| Incoming connections | not accepted | possible |
| Control | Cloudflare's terms and limits | fully yours |
Common mistakes
- The whole server goes into WARP. Access to the server is lost because replies go out through the tunnel. Use rules for selected traffic only.
- Relying on a fixed address. The outgoing WARP address changes over time; a partner cannot grant access by it, and nothing should be tied to it.
- Waiting for incoming traffic. WARP carries outgoing connections only; nobody can connect to the server through it.
- No health check. The tunnel can hang while the container still shows as running, and the service quietly loses access to the outside world.
- Ignoring the terms of service. WARP is a free service with its own rules; for critical traffic a paid Cloudflare product or your own exit is more reliable.
When you do not need it
If the server reaches every service it needs from its own address, a separate route adds only complexity. When a fixed outgoing address is required, your own exit server is the right tool, not WARP.