How WireGuard works
WireGuard is a small, fast VPN: a one-round-trip handshake using public keys, then every packet to the private network is encrypted and wrapped in UDP to the VPN gateway.
Layer: Network (OSI layer 3) · Port: 51820 · Transport: UDP · Format: Encrypted packets · Standard: WireGuard whitepaper
WireGuard packet flow
- WireGuard Client → VPN Gateway: Handshake Initiation
- WireGuard VPN Gateway → Client: Handshake Response
- WireGuard Client → App Server: Transport data (inner: 10.0.0.20:443)
- WireGuard App Server → Client: Encrypted reply
Other protocols: HTTPS · SSH · TLS/SSL · DNSSEC · DNS over HTTPS · Wi-Fi · WPA3 · RADIUS · Captive Portal · HTTP Proxy · SOCKS5 · Reverse Proxy · IPsec