Homelab

WireGuard Is Connected but You Can't Reach LAN Devices

Check for a fresh handshake, then test the peer's tunnel address and the LAN service. Those tests narrow the problem to the tunnel or the route beyond it.

You activate a WireGuard tunnel and the client says it's up. Your home NAS still times out. The switch can be on while the peer is unreachable, or the peer can be reachable while the LAN subnet has no working route. A fresh handshake and a targeted service test narrow that down quickly.

For the examples below, the router's WireGuard IP is 10.44.0.1, the client's is 10.44.0.2, and the NAS at 192.168.50.20 is on the 192.168.50.0/24 LAN. Substitute your own tunnel and LAN addresses.

1. Generate traffic and check the handshake

From the client, try to reach the router's tunnel address, then inspect the peer's latest handshake and transfer counters. On a Linux peer using interface wg0, run the following command.

sudo wg show wg0

WireGuard normally sends traffic on demand, so a quiet tunnel can have an old handshake. Check whether the traffic you just sent causes a fresh handshake or changes the counters. A failed Ping may reflect ICMP filtering, so test a known service on the router's tunnel address if one is available. WireGuard quick start.

If the handshake stays empty after sending traffic, check that the endpoint hostname resolves to the intended router and that the peer public keys match the configuration at each end. If the listener is behind NAT, verify the UDP forwarding rule for its actual listening port. Compare the router's firewall counters and the peer's handshake while you retry.

2. Check AllowedIPs and the client's route

WireGuard uses AllowedIPs to select the peer for an outbound destination and to check which source addresses it accepts from that peer. The operating system also needs a route into the tunnel. A client managed by wg-quick normally derives those routes from AllowedIPs. With a manual setup, inspect the routing table too. WireGuard cryptokey routing, wg-quick reference.

For this split tunnel, the client's entry for the router peer could use the following destinations.

AllowedIPs = 10.44.0.1/32, 192.168.50.0/24

On the router, the peer entry for this single client would normally allow 10.44.0.2/32. Add other source prefixes there only for networks actually behind that peer. Verify that the client sends traffic for the NAS into the tunnel. On Linux, inspect the selected route.

ip route get 192.168.50.20

If the network you're visiting uses the same address range as your home LAN, test from cellular or another network and compare the selected route. That reveals conflicts where the client reaches a device on the current LAN instead of the one at home.

3. Check forwarding and the return path

From the WireGuard router itself, confirm the service responds at the NAS LAN address. Then test the same address and port from the remote client. TCP/UDP Connect on port 445 is a useful check for a standard SMB share.

If the router can reach the service and the client can reach the router's tunnel IP, inspect IP forwarding and the firewall between the WireGuard and LAN interfaces. Choose an access rule scoped to the clients and services you intend to reach. The LAN host also needs a path back to the WireGuard client. That usually means a route for the tunnel subnet via the WireGuard router, or source NAT on that router if your design uses it.

Once the IP and port work, try the internal hostname. If the name fails, verify the client's DNS settings and reachability of the LAN resolver. If TCP opens but larger requests hang, check the tunnel's packet size with Path MTU Discovery.

Verify a service on the remote LAN

Test the LAN service by IP and port from a client on WireGuard. Compare it with the same check from inside the LAN.

Get NetDebug Toolkit

Frequently asked questions

Does a WireGuard handshake mean I can reach the LAN?

A fresh handshake confirms the two peers can exchange WireGuard traffic. LAN access also depends on AllowedIPs, the operating-system route, forwarding, firewall rules, and the return path.

Why can I ping the WireGuard IP but not the LAN host?

Check that the LAN prefix is included in the right peer's AllowedIPs and routed into the tunnel. Then verify forwarding and the path for replies.

Will PersistentKeepalive fix LAN access?

It helps a peer maintain a NAT mapping when the tunnel is idle. If handshakes already work and only LAN devices are unreachable, check routes, forwarding, and firewall rules first.