Skip to content
Contents
GuidesOpenWrt

OpenWrt and WARP: verify one client's exit path

Keep a second client on the ordinary WAN. One comparison from each client tells you more than a green interface icon on the router. This walkthrough starts with an existing usable profile.

Keep a second client on the ordinary WAN. One comparison from each client tells you more than a green interface icon on the router. This walkthrough starts with an existing usable profile.

Identify the profile and save a route back

Cloudflare documents DNS-only and traffic tunnel modes. Its Linux client supports MASQUE and WireGuard. An OpenWrt WireGuard interface instead needs suitable peer settings; wgcf is a third-party profile generator. Record the OpenWrt release, save the network, firewall and policy settings, and keep wired management on LAN. This preview has no end-to-end WARP registration or throughput measurement.

WARP modes · wgcf · Linux desktop WARP client

Route the test client

In LuCI add a WireGuard interface using the address, keys, endpoint and allowed prefixes supplied in the profile. Leave automatic routing of all allowed IPs off when a policy will select the exit. Give the tunnel its own firewall zone, permit LAN forwarding into it and enable IPv4 masquerading when the peer expects the tunnel address. Reserve a LAN address for the test client. In pbr match that one source /32 to the tunnel. Keep the endpoint reachable over WAN. Use an explicit IPv6 policy if the profile supplies an IPv6 path.

Route the test client

Policy-Based Routing 1.2.4 · WireGuard Quick Start

Read the result on each client

On the router, wg show reports the latest handshake and byte counters. On each client start a fresh request with the commands below. Compare the warp field for IPv4 and IPv6 separately. A missing IPv6 route is a separate result. Resolve a hostname through the same resolver the client normally uses. A router acting as DNS forwarder originates its own upstream traffic, which need not match a policy for a LAN source.

curl -4 https://www.cloudflare.com/cdn-cgi/trace
curl -6 https://www.cloudflare.com/cdn-cgi/trace

With an active WARP path the test request should show warp=on. A control without WARP should show warp=off. Record failures and other account modes as observed.

Read the result on each client

Cloudflare Trace

Two clients and a real WireGuard peer

In the 25.12.6 guest both clients initially received “direct”. With source 192.0.2.2/32 assigned to table 120 the test client received “peer”; the control still received “direct”. Removing the rule restored both. This measures IPv4 policy selection with a local WireGuard peer. Public WARP registration, IPv6 transit and Cloudflare DNS routing remain unmeasured here.

Two clients and a real WireGuard peer

Return the client to WAN

Disable the single-client policy first. Open a new connection and compare the trace with the control client. Then disable the tunnel if no other policy uses it. If the control client changed as well, inspect the default routes and automatic peer routes before running another test.

References and media

Type Attachment Source Language Version or date
Document WARP modes Cloudflare en —
Document wgcf ViRb3 en —
Document Linux desktop WARP client Cloudflare en —
Diagram Route the test client GeeksMeta en 2026-11-27
Document Policy-Based Routing 1.2.4 pbr maintainer en —
Document WireGuard Quick Start WireGuard en —
Diagram Read the result on each client GeeksMeta en 2026-11-27
Document Cloudflare Trace Cloudflare en —
Diagram Two clients and a real WireGuard peer GeeksMeta en 2026-11-27
Reference

Check the model, region and hardware revision on the label before selecting firmware.

Explore hardware

Comments