Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

WireGuard

From Wikipedia, the free encyclopedia
Free and open-source VPN protocol

WireGuard
The WireGuard logo
Original author(s)Jason A. Donenfeld
Developer(s)Jason A. Donenfeld
Initial release2015; 10 years ago (2015)[1]
Stable release
1.0.20220627[2] Edit this on Wikidata / 27 June 2022; 2 years ago (27 June 2022)
Repository
Written inC (Linux,FreeBSD kernel modules,NetBSD,OpenBSD kernel drivers,Windows kernel drivers),Go (userspace implementation)
Operating system
TypeVirtual private network
Licensevariousfree and open-source
Websitewww.wireguard.comEdit this at Wikidata

WireGuard is acommunication protocol andfree and open-source software that implements encryptedvirtual private networks (VPNs).[5] It aims to be lighter and better performing thanIPsec andOpenVPN, two commontunneling protocols.[6] The WireGuard protocol passes traffic overUDP.[7]

In March 2020, the Linux version of the software reached a stable production release and was incorporated into the Linux 5.6 kernel, andbackported to earlier Linux kernels in someLinux distributions.[4] The Linux kernel components are licensed under theGNU General Public License (GPL) version 2; other implementations are under GPLv2 or other free/open-source licenses.[5]

Protocol

[edit]

The WireGuard protocol is a variant of theNoise Protocol FrameworkIK handshake pattern, as illustrated by the choice ofNoise_IKpsk2_25519_ChaChaPoly_BLAKE2s for the value of theConstruction string listed onp10 of the Whitepaper.

WireGuard uses the following:[8]

In May 2019, researchers fromINRIA published a machine-checked proof of the WireGuard protocol, produced using theCryptoVerifproof assistant.[9]

Optional pre-shared symmetric key mode

[edit]

WireGuard supportspre-shared symmetric key mode, which provides an additional layer ofsymmetric encryption to mitigate future advances in quantum computing. This addresses the risk that traffic may be stored until quantum computers are capable of breakingCurve25519, at which point traffic could be decrypted. Pre-shared keys are "usually troublesome from a key management perspective and might be more likely stolen", but in the shorter term, if the symmetric key is compromised, the Curve25519 keys still provide more than sufficient protection.[10]

Networking

[edit]

WireGuard uses only[7]UDP,[5] due to the potential disadvantages of TCP-over-TCP.[7][11][12] TunnelingTCP over a TCP-based connection is known as "TCP-over-TCP", and doing so can induce a dramatic loss in transmission performance due to theTCP meltdown problem.

Its default server port is UDP 51820.

WireGuard fully supports IPv6, both inside and outside of tunnel. It supports onlylayer 3 for bothIPv4 andIPv6 and canencapsulate v4-in-v6 and vice versa.[13]

MTU overhead

[edit]

The overhead of WireGuard breaks down as follows:[14]

  • 20-byte IPv4 header or 40 bytes IPv6 header
  • 8-byte UDP header
  • 4-byte type
  • 4-byte key index
  • 8-byte nonce
  • N-byte encrypted data
  • 16-byte authentication tag

MTU operational considerations

[edit]

Assuming the underlay network transporting the WireGuard packets maintains a 1500 bytes MTU, configuring the WireGuard interface to 1420 bytes MTU for all involved peers is ideal for being transported over IPv6 + IPv4. However, when exclusively utilizing legacy IPv4 transport, a higher MTU of 1440 bytes for the WireGuard interface suffices.[14]

From an operational perspective and for network configuration uniformity, leaving the default 1420 MTU network-wide for the WireGuard interfaces would be advantageous. This approach ensures consistency and facilitates a smoother transition to enabling IPv6 for the WireGuard peers and interfaces in the future.

However, for mobile clients with varying forms of network connectivity and varying MTU across numerous network connections, an MTU of 1280 can be beneficial allowing for IPv6 transport inside the tunnel as that is it's minimum allowed MTU, and allow the wireguard tunnel to function over most forms of connectivity.

It should also be noted and reinforced that the MTU of the Wireguard interface does not change based on the IP family used inside the wireguard tunnel, the IP family being used on the outside of the tunnel is what determines the overhead and maximum MTU for the wireguard tunnel, it should also be noted that just because a Wireguard peer is only accessible via IPv4 does not mean that other wireguard peer/s connecting to it are not connecting over IPv6 and using translation mechanisms, which means you must account for the IPv6 overhead and assume 80 Bytes.

Extensibility

[edit]

WireGuard is designed to be extended by third-party programs and scripts. This has been used to augment WireGuard with various features including more user-friendly management interfaces (including easier setting up of keys), logging, dynamic firewall updates, dynamic IP assignment,[15] andLDAP integration.[citation needed]

Excluding such complex features from the minimal core codebase improves its stability and security. For ensuring security, WireGuard restricts the options for implementing cryptographic controls, limits the choices forkey exchange processes, and maps algorithms[8] to a small subset of moderncryptographic primitives. If a flaw is found in any of the primitives, a new version can be released that resolves the issue.

Reception

[edit]

A review byArs Technica found that WireGuard was easy to set up and use, used strong ciphers, and had a minimal codebase that provided for a small attack surface.[16]

WireGuard has received funding from theOpen Technology Fund[17] and donations fromJump Trading,Mullvad,Tailscale,Fly.io, and theNLnet Foundation.[18]

Oregon senatorRon Wyden has recommended to theNational Institute of Standards and Technology (NIST) that they evaluate WireGuard as a replacement for existing technologies.[19]

Availability

[edit]

Implementations

[edit]

Implementations of the WireGuard protocol include:

  • Donenfeld's initial implementation, written in C and Go.[20]
  • Cloudflare's BoringTun, auser space implementation written inRust.[21][22]
  • Matt Dunwoodie's implementation for OpenBSD, written in C.[23]
  • Ryota Ozaki's wg(4) implementation for NetBSD, written in C.[24]
  • The FreeBSD implementation is written in C and shares most of the data path with the OpenBSD implementation.[25]
  • NativeWindows kernel implementation named "wireguard-nt", since August 2021.[26]
  • AVMFritz!Box modem-routers that support Fritz!OS version 7.39 and later. Permits site-to-site WireGuard connections from version 7.50 onwards.[27]
  • Vector Packet Processing user space implementation written in C.

History

[edit]

Early snapshots of the code base exist from 30 June 2016.[28] The logo is inspired by a stone engraving of themythological Python that Jason Donenfeld saw while visiting a museum inDelphi.[29]

On 9 December 2019, David Miller – primary maintainer of the Linux networking stack – accepted the WireGuard patches into the "net-next" maintainer tree, for inclusion in an upcoming kernel.[30][31][32]

On 28 January 2020,Linus Torvalds merged David Miller's net-next tree, and WireGuard entered the mainline Linux kernel tree.[33]

On 20 March 2020,Debian developers enabled the module build options for WireGuard in their kernel config for the Debian 11 version (testing).[34]

On 29 March 2020 WireGuard was incorporated into the Linux 5.6 release tree. The Windows version of the software remains at beta.[4]

On 30 March 2020,Android developers added native kernel support for WireGuard in their Generic Kernel Image.[35]

On 22 April 2020,NetworkManager developer Beniamino Galvani mergedGUI support for WireGuard inGNOME.[36]

On 12 May 2020, Matt Dunwoodie proposed patches for native kernel support of WireGuard inOpenBSD.[37]

On 22 June 2020, after the work of Matt Dunwoodie and Jason A. Donenfeld, WireGuard support was imported into OpenBSD.[38]

On 23 November 2020, Jason A. Donenfeld released an update of theWindows package improving installation, stability,ARM support, andenterprise features.[39]

On 29 November 2020, WireGuard support was imported into theFreeBSD 13 kernel.[25]

On 19 January 2021, WireGuard support was added for preview inpfSense Community Edition (CE) 2.5.0 development snapshots.[40]

In March 2021, kernel-mode WireGuard support was removed from FreeBSD 13.0, still in testing, after an urgent code cleanup in FreeBSD WireGuard could not be completed quickly.[41] FreeBSD-based pfSense Community Edition (CE) 2.5.0 and pfSense Plus 21.02 removed kernel-based WireGuard as well.[42]

In May 2021, WireGuard support was re-introduced back into pfSense CE and pfSense Plus development snapshots as an experimental package written by a member of the pfSense community, Christian McDonald. The WireGuard package for pfSense incorporates the ongoing kernel-mode WireGuard development work by Jason A. Donenfeld that was originally sponsored by Netgate.[43][40][44]

In June 2021, the official package repositories for both pfSense CE 2.5.2 and pfSense Plus 21.05 included the WireGuard package.[45]

In 2023, WireGuard received over 200,000 Euros support from Germany'sSovereign Tech Fund.[46]

See also

[edit]

Notes

[edit]
  1. ^Not all platforms may have a currently released version and some may be at beta.[needs update?]

References

[edit]
  1. ^Grauer, Yael (16 January 2021)."How one hacker's push to secure the internet became a crucial part of Mac, Linux, and Windows operating systems".Business Insider. Retrieved25 November 2022.
  2. ^"wireguard-linux-compat". Retrieved4 November 2022.
  3. ^"Installation". WireGuard. Retrieved23 April 2020.
  4. ^abcSalter, Jim (30 March 2020)."WireGuard VPN makes it to 1.0.0—and into the next Linux kernel".Archived from the original on 31 March 2020. Retrieved23 April 2020.
  5. ^abc"WireGuard: fast, modern, secure VPN tunnel". WireGuard.Archived from the original on 28 April 2018. Retrieved31 March 2021.
  6. ^Preneel, Bart; Vercauteren, Frederik, eds. (11 June 2018).Applied Cryptography and Network Security. Springer.ISBN 978-3-319-93387-0.Archived from the original on 18 February 2019. Retrieved25 June 2018.
  7. ^abcdDonenfeld, Jason A."Known Limitations - WireGuard".www.wireguard.com. Retrieved1 June 2020.
  8. ^abDonenfeld, Jason A."Protocol & Cryptography - WireGuard".www.wireguard.com. Retrieved14 May 2023.
  9. ^Lipp, Benjamin; Blanchet, Bruno; Bhargavan, Karthikeyan (2019),A Mechanised Cryptographic Proof of the WireGuard Virtual Private Network Protocol (report), Research Report RR-9269, Paris: Inria, p. 49, hal-02100345
  10. ^Donenfeld, Jason (2 May 2021)."WireGuard: Next Generation Kernel Network Tunnel"(PDF).Wireguard.com.
  11. ^Titz, Olaf (23 April 2001)."Why TCP Over TCP Is A Bad Idea". Retrieved17 October 2015.
  12. ^Honda, Osamu; Ohsaki, Hiroyuki; Imase, Makoto; Ishizuka, Mika; Murayama, Junichi (October 2005). "Understanding TCP over TCP: effects of TCP tunneling on end-to-end throughput and latency". In Atiquzzaman, Mohammed; Balandin, Sergey I (eds.).Performance, Quality of Service, and Control of Next-Generation Communication and Sensor Networks III. Vol. 6011.Bibcode:2005SPIE.6011..138H.CiteSeerX 10.1.1.78.5815.doi:10.1117/12.630496.S2CID 8945952.
  13. ^Donenfeld, Jason A."Introduction & Motivation"(PDF).WireGuard: Next Generation Kernel Network Tunnel(PDF).Archived(PDF) from the original on 4 March 2018.
  14. ^abDonenfeld, Jason A. (11 December 2017)."[WireGuard] Header / MTU sizes for Wireguard". Retrieved13 January 2024.
  15. ^Wireguard Dynamic IP Configuration Tool, WireGuard, 14 May 2023, retrieved14 May 2023
  16. ^Salter, Jim (26 August 2018)."WireGuard VPN review: A new type of VPN offers serious advantages".Ars Technica.Archived from the original on 20 September 2018.
  17. ^"Building a more secure, accessible and resilient WireGuard VPN protocol".www.opentech.fund. Retrieved20 June 2022.
  18. ^"Donations". WireGuard.Archived from the original on 28 April 2018. Retrieved28 April 2018.
  19. ^"US Senator Recommends Open-Source WireGuard To NIST For Government VPN".Phoronix. 30 June 2018.Archived from the original on 5 August 2018. Retrieved5 August 2018.
  20. ^Donenfeld, Jason (7 June 2019)."WireGuard: fast, modern, secure VPN tunnel". Retrieved16 June 2019.
  21. ^Krasnov, Vlad (18 December 2018)."BoringTun, a userspace WireGuard implementation in Rust".Cloudflare Blog.Archived from the original on 4 April 2019. Retrieved29 March 2019.
  22. ^"CloudFlare Launches "BoringTun" As Rust-Written WireGuard User-Space Implementation".phoronix.com. Retrieved29 March 2019.
  23. ^Johansson, Janne (21 June 2020)."WireGuard imported into OpenBSD".
  24. ^"wg(4) - NetBSD Manual Pages". 20 August 2020.
  25. ^ab"Import kernel WireGuard support".
  26. ^"WireGuardNT, a high-performance WireGuard implementation for the Windows kernel". 2 August 2021.
  27. ^"WireGuard: VPN has never been so easy".
  28. ^"Index of /Monolithic-historical/".
  29. ^"How one hacker's push to secure the internet became a crucial part of Mac, Linux, and Windows operating systems".Business Insider. 16 January 2021. Archived fromthe original on 16 January 2021.
  30. ^"e7096c131e5161fa3b8e52a650d7719d2857adfd - pub/scm/linux/kernel/git/davem/net-next - Git at Google".kernel.googlesource.com.
  31. ^"LKML: David Miller: Re: [PATCH net-next v2] net: WireGuard secure network tunnel".lkml.org.
  32. ^"[ANNOUNCE] WireGuard merged to net-next, on its way to Linux 5.6". 9 January 2020. Archived fromthe original on 9 January 2020.
  33. ^Torvalds, Linus."index : kernel/git/torvalds/linux.git".Linux kernel source tree. Kernel.org. Retrieved2 February 2020.
  34. ^"drivers/net: Enable WIREGUARD as module". 21 March 2020.
  35. ^"ANDROID: GKI: enable CONFIG_WIREGUARD".
  36. ^"merge branch 'bg/wireguard' (d321d0df) · Commits · GNOME / network-manager-applet".gitlab.gnome.org. 22 April 2020. Retrieved30 May 2020.
  37. ^"WireGuard for OpenBSD Kernel Patches Posted". 12 May 2020.
  38. ^"add wg(4), an in kernel driver for WireGuard vpn communication".
  39. ^"[ANNOUNCE] WireGuard for Windows 0.3: ARM support, enterprise features, & more". 23 November 2020.
  40. ^abPaxson, Audian (19 January 2021)."WireGuard for pfSense Software".Netgate. Retrieved9 June 2021.
  41. ^Anderson, Tim (23 March 2021)."FreeBSD 13.0 to ship without WireGuard support as dev steps in to fix 'grave issues' with initial implementation".The Register.Situation Publishing. Retrieved31 March 2021.
  42. ^Thompson, Jim (18 March 2021)."WireGuard Removed from pfSense® CE and pfSense® Plus Software".Netgate blog. Rubicon Communications. Retrieved20 March 2021.
  43. ^Long, Scott (5 May 2021)."pfSense: WireGuard returns as an Experimental Package".Netgate - Secure networks start here. Retrieved9 June 2021.
  44. ^"wireguard-freebsd - WireGuard implementation for the FreeBSD kernel".git.zx2c4.com. Retrieved9 June 2021.
  45. ^Pingle, Jim (2 June 2021)."pfSense Plus 21.05-RELEASE Now Available".Netgate - Secure networks start here. Retrieved9 June 2021.
  46. ^"WireGuard".Sovereign Tech Fund. Retrieved26 May 2024.
Communication protocols
Connection applications
Enterprise software
Risk vectors
VPN Services
Avast
Kape Technologies
McAfee
Tesonet
Ziff Davis
Portals:
Retrieved from "https://en.wikipedia.org/w/index.php?title=WireGuard&oldid=1278546029"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp