Are you an LLM? You can read better optimized documentation at /en\wiki\Wireguard.md for this page in Markdown format
WireGuard
WireGuard is a modern VPN protocol designed around a small codebase, public-key authentication and efficient encrypted tunnels. Peers exchange public keys and route selected IP networks through the tunnel.
How it works
Each peer has a private key and shares its public key. AllowedIPs determines which addresses are routed to a peer; an endpoint identifies where to send encrypted packets. The tunnel normally uses UDP.
Use cases
WireGuard can connect devices to a private network or act as an outbound route. It differs from application-level proxies such as Shadowsocks. In Mihomo, check the current outbound configuration for WireGuard node options.
