Build and troubleshoot a WireGuard site-to-site link

8 steps · about 2 h 52 min · Intermediate

  1. Build a minimal encrypted link (guide, WireGuard, 24 min)

    Create keys and a first interface while learning how peers, endpoints and allowed addresses fit together.

  2. Understand WireGuard routing namespaces (reference, WireGuard, 24 min)

    Develop a precise model of where encrypted and clear packets travel before adding forwarding rules.

  3. Inspect peers and handshakes (reference, Linux man-pages, 18 min)

    Read live peer configuration, latest handshake, transfer counters and endpoint state with the canonical tool.

  4. Review routes created by wg-quick (reference, Linux man-pages, 18 min)

    Understand automatic route and policy-rule behavior so generated state does not hide a routing conflict.

  5. Enable forwarding deliberately (reference, Linux man-pages, 24 min)

    Understand the IP-layer behavior and verify forwarding on gateways without changing unrelated network controls.

  6. Permit and observe forwarded traffic (guide, nftables, 28 min)

    Add narrow forward-chain policy and counters, using NAT only when the actual address plan requires it.

  7. Validate policy routes in both directions (reference, Linux man-pages, 18 min)

    Use policy rules with source addresses to prove each gateway and LAN host has a return path.

  8. Diagnose IPv6 MTU black holes (reference, RFC Editor, 18 min)

    Recognize when the tunnel handshakes but larger IPv6 flows stall, then test and set an evidence-based MTU.