WireGuard
Embed This Widget
Add the script tag and a data attribute to embed this widget.
Embed via iframe for maximum compatibility.
<iframe src="https://ipfyi.com/iframe/glossary/wireguard/" width="420" height="400" frameborder="0" style="border:0;border-radius:10px;max-width:100%" loading="lazy"></iframe>
Paste this URL in WordPress, Medium, or any oEmbed-compatible platform.
https://ipfyi.com/glossary/wireguard/
Add a dynamic SVG badge to your README or docs.
[](https://ipfyi.com/glossary/wireguard/)
Use the native HTML custom element.
定义
一种现代、轻量级的VPN协议,采用前沿密码学技术(ChaCha20、Curve25519)和极简代码库(约4000行)。相比OpenVPN和IPSec,其设计目标是简洁性、高性能和低延迟。
Design Philosophy
WireGuard is a modern VPNVirtual Private Network. A technology that creates an encrypted tunnel between a device and a remote server, protecting data in transit and masking the user's real IP address. Used for privacy, security, and accessing restricted networks. protocol engineered for simplicity, speed, and strong security. Its entire codebase is approximately 4,000 lines — compared to tens of thousands for OpenVPNAn open-source VPN protocol that uses SSL/TLS for key exchange and can operate over UDP or TCP. Known for its flexibility, strong security, and wide platform support, though slower than WireGuard. or IPSecInternet Protocol Security. A suite of protocols that authenticates and encrypts IP packets at the network layer. Used in site-to-site VPNs and as the transport layer for L2TP/IPSec and IKEv2 VPN connections. — making it far easier to audit and less likely to harbor hidden vulnerabilities. It is built into the Linux kernel as of version 5.6 and is available on all major platforms.
Cryptographic Foundations
WireGuard uses a fixed, modern cryptographic stack: ChaCha20 for EncryptionThe process of converting plaintext data into ciphertext using a cryptographic algorithm and key, making it unreadable without the corresponding decryption key. The foundation of secure communication on the internet., Poly1305 for message authentication, Curve25519 for key exchange, BLAKE2s for hashing, and SipHash for hashtable keys. This opinionated design eliminates cipher negotiation entirely, removing a class of downgrade attacks that plague more configurable protocols like IPSecInternet Protocol Security. A suite of protocols that authenticates and encrypts IP packets at the network layer. Used in site-to-site VPNs and as the transport layer for L2TP/IPSec and IKEv2 VPN connections.. Peers are identified solely by their Curve25519 public keys, which are exchanged out-of-band and stored in configuration files.
Performance and Stealth
Because WireGuard runs in the kernel (on Linux) rather than userspace, it achieves significantly lower latency and higher throughput than OpenVPNAn open-source VPN protocol that uses SSL/TLS for key exchange and can operate over UDP or TCP. Known for its flexibility, strong security, and wide platform support, though slower than WireGuard.. It uses UDPUser Datagram Protocol. A connectionless transport protocol that sends datagrams without establishing a connection or guaranteeing delivery. Faster than TCP, it is preferred for real-time applications like DNS queries, VoIP, gaming, and streaming. exclusively, which removes TCP-over-TCP performance problems. WireGuard is also "silent" by design — a server running WireGuard does not respond to unauthenticated packets at all, making it effectively invisible to port scanners that use Open Port Checker style probing. This property is called stealth mode and substantially reduces the attack surface of the VPN server.