WireGuard

WireGuard Encrypted VPN TunnelInternet layer · OSI 3

Lightweight UDP VPN with single-RTT public-key handshakes

Step 1 of 6: Set static keys and AllowedIPs. Configuration uses static key pairs instead of passwords: your client holds its local secret, the peer's public key on 192.0.2.51 (conventionally port 51820), and AllowedIPs = 0.0.0.0/0 routing via 10.8.0.2.
0.0 s / 15.4 s
Your laptop192.168.1.10VPN server192.0.2.51
EncryptedResponseHandshakeControl

Overview

A wraps all internet packets inside an encrypted tunnel to a gateway, shielding cafe Wi-Fi traffic and hiding your home IP. runs over UDP using one compact cryptographic suite and two handshake messages.

Built on Noise_IKpsk2 (Curve25519, ChaCha20-Poly1305, BLAKE2s), WireGuard authenticates peers solely via static public keys, uses UDP port 51820 by convention (wg(8) chooses random if omitted), and supports roaming.

Key facts

Layer
Internet tunnel over UDP
UDP port
51820 by convention (configurable)
Handshake
2 messages, 1 round trip
Cipher suite
Curve25519 + ChaCha20-Poly1305
Defined in
WireGuard Whitepaper

All IP packets tunneled via UDP

Two handshake messages created session keys, wrapping every packet inside UDP to the VPN gateway. Beyond the VPN server traffic runs normally onto the internet, so HTTPS still protects end-to-end.

Noise_IKpsk2 key exchange, Type 4 ChaCha20-Poly1305 IP encapsulation, MSS clamping, 25 s NAT keepalives, and automatic endpoint roaming.

Local sniffers see
Encrypted UDP -> 192.0.2.51
Websites see
The VPN server address
Beyond VPN exit
Relies on TLS / HTTPS
Overhead
60 B + 16 B block padding

Try it yourself

Inspect WireGuard tunnel status

View active peer endpoints, latest handshake timestamps, and AllowedIPs on a WireGuard host.

wg show