Skip to content
Contents
GuidesOpenWrt

Why a WireGuard endpoint still routes to lo after automatic routes are disabled

After disabling automatic addition of AllowedIPs routes, the outer endpoint address may still be affected by local routing rules. Manually verify the routing selection for both the destination endpoint and the destination within the tunnel.

Applies to · x86/64 · OpenWrt 25.12.6 · route_allowed_ips=0

What to check

Perform route queries against the actual remote public IP, note the device and table.

Connect over Ethernet and run the following commands in an SSH session on the router.

ip rule show
ip route show table all

How to interpret the result

Use the IP address resolved by the endpoint to inspect the actual routing table and output interface. If the outer-layer address is routed through lo, trace the rule selecting that table and any static routes. If the outer-layer traffic uses WAN but private network destinations are unreachable, check the prefix within the tunnel and the return routing.

Verify and recover

Confirm that the outer UDP traffic leaves over WAN and that a private destination uses WireGuard. Keep a routing snapshot and avoid deleting the default route over a remote management session.

Related guide · How to route your home through WireGuard on OpenWrt and verify the egress IP

Explore hardware

Comments