Waywarp is a tool for orchestrating multiple Cloudflare WARP connections on one Linux machine.
- Run multiple independent WARP connections on one host.
- Support for both tunnel mode via a bridge and proxy mode.
- Import existing registrations.
- Optionally bootstrap regional connections through a setup proxy, then connect directly to Cloudflare.
curl -fsSL https://raw.githubusercontent.com/apersomany/waywarp/master/install.sh | bashShould work on most Linux distributions with Cloudflare WARP, iproute2, and nftables installed.
nix profile add github:apersomany/waywarpcargo install --locked --git https://github.com/apersomany/waywarpRead Cloudflare’s Terms of Service before accepting them with --accept-tos.
waywarp up proxy 0 --name personal --accept-tos
waywarp up proxy 1 --name work --accept-tosConfigure applications to use 127.0.0.1:1080 or 127.0.0.1:1081 as their SOCKS5 or HTTP proxy.
curl -x socks5h://127.0.0.1:1080 https://www.cloudflare.com/cdn-cgi/traceCheck or stop connections:
waywarp status
waywarp down personal
waywarp down worksudo waywarp up bridge --accept-tos
sudo curl --interface waywarp0 https://www.cloudflare.com/cdn-cgi/trace
sudo waywarp downBind applications to waywarp0 or configure routes through it.
Import the host client’s registration, disconnect the original while the copy makes its first connection, then reconnect it:
sudo waywarp import 3
warp-cli --accept-tos disconnect
sudo waywarp up bridge 3 --name work
warp-cli --accept-tos connectFor Zero Trust registrations, your organization’s policies still apply.
Use a UDP-capable SOCKS5 proxy in the target region:
waywarp up proxy 2 --name hong-kong --accept-tos \
--location geo4=HK --via socks5:ADDRESS:PORTReplace ADDRESS:PORT with your proxy’s IPv4 address and port. The proxy is only used for setup, then traffic goes directly to Cloudflare.
There’s also native Mudfish integration because its traffic-based pricing makes setup-only use ridiculously cheap.
export WAYWARP_MUDFISH_USERNAME='your-username'
export WAYWARP_MUDFISH_PASSWORD='your-password'
waywarp up proxy 2 --name hong-kong --accept-tos \
--location geo4=HK --via mudfish:city=hongkongThe local proxy listens on 127.0.0.1:1082 in either case.
IP routing does not require symmetric paths, and asymmetry is normal on anycast networks like Cloudflare. Traffic can enter and leave through different data centers, so the tunnel endpoint does not necessarily identify the exit.
| Field | What it measures | What it implies |
|---|---|---|
edge |
The Cloudflare-side tunnel endpoint reported by warp-cli tunnel stats. |
The tunnel’s ingress region, not necessarily where traffic exits Cloudflare. |
geo4, geo6 |
The public IPv4/IPv6 addresses returned by the probes, looked up in Cloudflare’s IP geofeed. | The IPs’ advertised country and city, not necessarily their physical exit. |
probe4, probe6 |
The data center (colo) and public source IP returned by an IPv4/IPv6 Cloudflare trace request through WARP. |
Where Cloudflare served that test request, which is a clue to likely egress rather than proof that every destination uses the same exit. |
All five fields can differ. IPv4 and IPv6 can use different paths, and websites using other geolocation databases may place the same IP elsewhere.
For example, geo4=HK with probe4=LAX means the IPv4 address is advertised in Hong Kong, but the test request was served in Los Angeles.
--location accepts one field or several joined with +. Every term must match.
--location 'geo4=HK+geo6=HK+edge=HKG'This requires both public IP families to be advertised in Hong Kong and the tunnel endpoint to be HKG. The earlier geo4=HK example only requires the IPv4 location.
geo4andgeo6accept two-letter country codes orCOUNTRY/City.edge,probe4, andprobe6accept three-letter colo codes such asHKG.
An unavailable required field fails the check, so only require the address families you need.
Waywarp checks after moving off the setup proxy and after reconnects. If a required location changes, it repeats setup.
See location fields for matching rules and further details.
- Instances, status, logs, and troubleshooting
- Bridge routing, NAT, and Zero Trust
- Regional setup, relay filters, and credentials
- Location fields and matching rules
- NixOS services
- Architecture
- Changelog
I use WARP for both work and my personal network, but the official client makes me switch between them. I tried running separate clients in systemd-managed namespaces, but that setup felt cumbersome and unreliable. I wanted a small Rust wrapper with Nix integration, so I built Waywarp.
Keeping the official client means running a daemon for each connection and adding a userspace hop for tunnel packets. A kernel WireGuard setup can be leaner where available, but it does not offer the same MASQUE and Zero Trust support.
I’ve tried to keep the overhead down, but there’s a limit to what a wrapper can do without becoming a much larger project.
nix develop --command cargo test --locked
nix flake checkThe flake checks formatting, Clippy, package tests, the installer, and a NixOS VM with a WARP stand-in. These checks do not test live WARP or setup-proxy availability.
MIT. Independent project, not affiliated with Cloudflare or Mudfish.