Build and troubleshoot a WireGuard site-to-site link
8 steps · about 2 h 52 min · Intermediate
- 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.
- Understand WireGuard routing namespaces (reference, WireGuard, 24 min)
Develop a precise model of where encrypted and clear packets travel before adding forwarding rules.
- 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.
- 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.
- Enable forwarding deliberately (reference, Linux man-pages, 24 min)
Understand the IP-layer behavior and verify forwarding on gateways without changing unrelated network controls.
- 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.
- 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.
- 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.