← Quick references

Check where your VPN sends traffic

Inspect routes, tunnel activity and DNS on a Linux lab machine before investigating a VPN connection problem.

Write down the intended path

Choose one destination in your lab and write down how you expect to reach it. Include the destination address, VPN interface and whether the VPN should carry only a lab subnet or broader traffic. Keep the existing VPN profile available so you can compare the intended configuration with what the machine is using.

This walkthrough uses a Linux host. The tunnel-status example is specific to WireGuard, and the DNS example requires systemd-resolved. Use the corresponding status view in your own client when those tools are unavailable.

Inspect the selected route

Replace the documentation address below with the destination you are investigating. The route lookup reports the path the kernel selects, including the interface and source address. It performs a lookup without sending a packet to that destination.

Compare the result with your expectation. If the selected interface differs, inspect the active routes and VPN profile before testing the application. A destination-specific lookup is especially helpful when your machine has several routes, multiple interfaces or a policy that sends only some traffic through the tunnel.

ip route get 192.0.2.20
ip route show

Check tunnel activity

For WireGuard, view the active interface and peer status. Look at the most recent handshake and received/sent byte counters. You may need local administrator permission to inspect this information.

Record the counters, make one ordinary request to your own lab service, then read them again. A recent handshake and changing counters show activity at the tunnel layer. Pair that observation with the application result to narrow the problem. Treat endpoint addresses and peer identifiers as details to review before sharing your notes.

wg show

Inspect DNS separately

When a hostname fails but the route appears correct, inspect the resolver configuration. On a system using systemd-resolved, status shows global and per-link DNS information. Compare the listed servers and routing domains with the lab profile.

Record whether the intended lab name is supposed to resolve through the VPN. This gives the next investigation a concrete question, such as whether the correct DNS server is selected for that domain. Keep the original profile intact while gathering evidence.

resolvectl status

Keep a short comparison record

Repeat the same observations after any approved change. Use the same destination and application request so the comparison stays meaningful. A compact record lets you say which layer changed and whether the original symptom improved.

  • Destination, expected interface and observed source address
  • Handshake age and counter readings around one request
  • DNS servers and routing domains associated with the VPN
  • Exact application response or error and the time of the check