Skip to content
Contents
GuidesOpenWrt

WireGuard drops the custom Endpoint when exporting a configuration behind double NAT

In a dual-NAT environment, the exported Endpoint must reflect an address and port reachable from external clients. Connectivity within the internal network alone is insufficient to validate the export result.

Applies to · ASUS RT-AX89X · OpenWrt 25.12.5 · WireGuard

What to check

From external network clients, verify the exported Endpoint shows the inner WAN address, upstream public IP, or DDNS name.

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

wg show endpoints
ip route show default

How to interpret the result

Compare the Endpoint of the downloaded file with the outer router's reachable address and UDP mapping. If exported to an internal network address, first correct it in a test client copy. If the address is correct but no handshake occurs, then verify that the two-layer mapping is receiving traffic on the same listening port.

Verify and recover

Connect from outside both NAT devices, send ordinary traffic and confirm replies. Keep the previous client profile and remove any temporary port mapping afterwards.

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

Explore hardware

Comments