Skip to content
Contents
GuidesOpenWrt

Trace a connection across tunnels and WAN links

Pick one reachable endpoint. Give each site a distinct LAN prefix and associate the remote prefix with the right peer. A peer behind NAT can initiate; keepalive can preserve the mapping when idle. Test the tunnel address first, then a host beyond it and its return route. A hub carries transit traffic and needs forwarding.

Pick one reachable endpoint. Give each site a distinct LAN prefix and associate the remote prefix with the right peer. A peer behind NAT can initiate; keepalive can preserve the mapping when idle. Test the tunnel address first, then a host beyond it and its return route. A hub carries transit traffic and needs forwarding.

Which side must be reachable?

Pick one reachable endpoint. Give each site a distinct LAN prefix and associate the remote prefix with the right peer. A peer behind NAT can initiate; keepalive can preserve the mapping when idle. Test the tunnel address first, then a host beyond it and its return route. A hub carries transit traffic and needs forwarding.

wg show

WireGuard Quick Start

A handshake is only the first check

A WireGuard peer can handshake while forwarded LAN traffic follows the ordinary default route. Match a single source first. Check the policy table, allowed prefixes at both peers, the return route and zone forwarding. Make a new connection from the chosen client and another from the control. Remove the rule and repeat the same requests.

ip rule show ; ip route show table all

Two clients and a real WireGuard peer

WireGuard Quick Start · Policy-Based Routing 1.2.4

Failover and balancing need different tests

Give each WAN its own gateway and test it alone. For failover keep one long connection and start fresh connections before and after losing the primary. The old connection can break as its public address changes. For balancing compare many independent connections. Record IPv6 source prefix and return path separately for each ISP.

ip rule show

mwan3

A route vanished: check the neighbour and then the table

A static route has a configured next hop. OSPF derives paths inside a routing domain; BGP exchanges reachable prefixes under policy. BFD can tell a routing process that a forwarding path has failed. Record neighbour state, selected prefix and next hop before and after losing one test link; a live session alone does not prove traffic recovers.

BFD

Reach a private LAN or send all traffic home?

A subnet router advertises selected LAN prefixes. An exit node carries a client's default internet path. Approve the intended routes and access rules. Test a LAN-only service and a public endpoint separately; then disconnect the tunnel to check what still works. A router behind CGNAT cannot rely on inbound IPv4 port forwarding alone.

Tailscale subnet routers · WireGuard Quick Start

What crosses the tunnel?

An IP tunnel carries network-layer packets. GRETAP and VXLAN can carry Ethernet frames, including broadcast, so plan loop prevention and the layer-two boundary. Verify the outer endpoint route before adding inner routes. Test small and large payloads; encapsulation reduces the space left under the outer link MTU.

IPv6 Stateless Address Autoconfiguration

Which address exists when the rule runs?

A DNS name may resolve to several changing IPv4 and IPv6 addresses. Domain policies need those answers in a maintained set; shared CDN addresses can match other names too. A source MAC is local to a link. GeoIP lists need a dated source and update policy. Test the destination addresses a real client obtained and keep one control destination.

ip rule ; ip route show table all

Policy-Based Routing 1.2.4

IPv6 prefix translation or access to an IPv4-only service?

NPTv6 maps IPv6 prefixes between networks; it leaves the destination service on IPv6. NAT64 lets an IPv6 client reach an IPv4 service through a translator. DNS64 can synthesize an AAAA answer for a name with only A records. Check a native IPv6 service and an IPv4-only hostname separately, and record the address the client actually used.

IPv6-to-IPv6 Network Prefix Translation · Stateful NAT64 · DNS64

A quiet tunnel versus a failed connection

Connection tracking records a flow's original and reply tuples with protocol state and timeout. Compare both directions around one new connection. For a WireGuard health check, send traffic to a controlled service beyond the peer and look at fresh byte counters; a quiet tunnel may have an old handshake. Require repeated failures and confirm recovery with a new request before changing routes again.

conntrack tools · WireGuard Quick Start

References and media

Type Attachment Source Language Version or date
Document WireGuard Quick Start WireGuard en —
Diagram Two clients and a real WireGuard peer GeeksMeta en 2026-11-27
Document Policy-Based Routing 1.2.4 pbr maintainer en —
Document mwan3 OpenWrt en —
Document BFD FRRouting en —
Document Tailscale subnet routers Tailscale en —
Document IPv6 Stateless Address Autoconfiguration IETF en —
Document IPv6-to-IPv6 Network Prefix Translation IETF en —
Document Stateful NAT64 IETF en —
Document DNS64 IETF en —
Document conntrack tools Netfilter project en —
Reference

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

Explore hardware

Comments