WireGuard vs OpenVPN
On this page
Open the settings of almost any VPN app and you will find a menu called Protocol, usually set to something like Automatic. Behind it are names such as WireGuard, OpenVPN, IKEv2, NordLynx or Lightway. This page explains what a VPN protocol is, how WireGuard and OpenVPN differ by design, which protocols the main VPNs list, what their own protocols are built on, and when it is worth changing the setting. It describes the two designs as their makers do; it does not rank them or compare their speed.
What is a VPN protocol?
A VPN protocol is the set of rules that decides how your device and the VPN server set up a connection, agree on encryption keys, check that each side is who it says it is, and wrap your traffic so that nobody in between can read it. The VPN app is the part you see; the protocol is the method it uses underneath. Most apps can use more than one protocol, and switching from one to another changes how the tunnel is built, not which server you connect to.
WireGuard and OpenVPN are both published openly, and many VPN providers build on them. Many apps also list IKEv2, a third standard protocol, and some providers have written protocols of their own.
What is WireGuard?
WireGuard describes itself as an “extremely simple” VPN “that utilizes state-of-the-art cryptography.” Its makers say it “aims to be as easy to configure and deploy as SSH”: two devices exchange short public keys, much as people exchange SSH keys, “and all the rest is transparently handled by WireGuard.” It was first released for the Linux kernel and, in its own words, “is now cross-platform (Windows, macOS, BSD, iOS, Android).”
As described by WireGuard (www.wireguard.com/), read on .
What is OpenVPN?
OpenVPN’s manual calls it “a robust and highly flexible VPN daemon.” Its how-to guide describes it as “a full-featured SSL VPN” that uses “the industry standard SSL/TLS protocol” and “supports flexible client authentication methods based on certificates, smart cards, and/or username/password credentials.”
As described by OpenVPN (openvpn.net/community-docs/community-articles/openvpn-2-6-manual/), read on .
As described by OpenVPN (openvpn.net/community-docs/how-to/), read on .
What are the main differences between WireGuard and OpenVPN?
The differences below are design choices that each project describes on its own website. They say how each protocol is built, not how well a given VPN app performs with it; that depends on the provider’s app and servers as much as on the protocol.
How do they handle encryption?
WireGuard uses one fixed set of cryptography and does not let you choose. Its protocol page lists “ChaCha20 for symmetric encryption, authenticated with Poly1305,” “Curve25519 for ECDH” and “BLAKE2s for hashing and keyed hashing,” with a handshake taken from the Noise protocol framework. WireGuard’s site says it “makes conservative and reasonable choices and has been reviewed by cryptographers.” It also supports an optional pre-shared key as an extra layer, which its page mentions “for, say, post-quantum resistance.”
OpenVPN takes the opposite approach. Its manual says it “is tightly integrated with the OpenSSL library and derives many of its cryptographic capabilities from it,” and that it works either with a pre-shared secret key or with “public key security (SSL/TLS mode) using client and server certificates.” Which ciphers it uses depends on how it is set up, so two OpenVPN connections can be configured quite differently.
As described by WireGuard (www.wireguard.com/protocol/), read on .
As described by OpenVPN (openvpn.net/community-docs/community-articles/openvpn-2-6-manual/), read on .
Which connections do they use?
WireGuard sends traffic over UDP only. In its own words, “WireGuard securely encapsulates IP packets over UDP,” and its protocol page adds that “all packets are sent over UDP.”
OpenVPN can use either. Its manual lists “TCP or UDP tunnel transport through proxies or Network Address Translation (NAT),” and its how-to guide says many clients can connect to one server “over a single TCP or UDP port.” This is why VPN apps often show OpenVPN twice, as OpenVPN (UDP) and OpenVPN (TCP). The FAQ below covers which one to pick.
As described by OpenVPN (openvpn.net/community-docs/how-to/), read on .
How simple are they to check and set up?
Simplicity is WireGuard’s main design goal. Its site says it “is meant to be easily implemented in very few lines of code, and easily auditable for security vulnerabilities.” It contrasts this with larger projects, naming “*Swan/IPsec or OpenVPN/OpenSSL,” and says WireGuard “is meant to be comprehensively reviewable by single individuals.” It also leaves some jobs out on purpose: “All issues of key distribution and pushed configurations are out of scope of WireGuard.”
OpenVPN’s strength, as its own pages put it, is flexibility. It can sign users in with certificates, smart cards or usernames and passwords, and it “allows user or group-specific access control policies using firewall rules applied to the VPN virtual interface.”
For someone using a VPN app, most of this is hidden: the app sets up the keys, certificates and settings for you either way.
As described by WireGuard (www.wireguard.com/), read on .
What happens when your network changes?
WireGuard is built to keep going when your device changes networks, for example when a phone moves from Wi-Fi to mobile data. Its site says it “is even capable of roaming between IP addresses, just like Mosh,” and its protocol page says that once the tunnel is up, “you don’t need to worry about asking it to reconnect or disconnect or reinitialize, or anything of that nature.”
OpenVPN’s manual and how-to guide, as read for this page, do not describe how it handles a device moving between networks, so this page makes no claim either way.
As described by WireGuard (www.wireguard.com/protocol/), read on .
Which protocols do the main VPNs use?
The table shows, for each of the main VPNs we review, the protocols the provider lists and the apps it offers, each with its source and the day it was checked. Some providers list protocols for one app only, such as the Windows app; where they do, the cell says so. Listed A–Z by name.
| VPN | Protocols, as the provider describes them | Apps listed by the provider |
|---|---|---|
| CyberGhost | WireGuard and IKEv2 in the Windows app; OpenVPN through a manual setup on Windowscyberghostvpn.com/download/windows-vpn · checked Nov 12, 2026 | Windows, macOS, Linux, iOS, Android, Android TV, Amazon Fire TV, Apple TV, Chrome, Firefox, consoles, smart TVs and routerscyberghostvpn.com/download · checked Nov 12, 2026 |
| ExpressVPN | Lightway (UDP and TCP), WireGuard (ExpressVPN's own version, in the Windows app among others), OpenVPN (UDP and TCP) and IKEv2; PPTP is in none of the appsexpressvpn.com/what-is-vpn/protocols · checked Nov 12, 2026 | Apps for Windows, macOS, Linux, iPhone and iPad, Android, Apple TV, Fire Stick and Android TV; extensions for Chrome, Firefox and Edge; routersexpressvpn.com/vpn-download · checked Nov 12, 2026 |
| IPVanish | IKEv2, OpenVPN and WireGuard (Windows app)ipvanish.com/vpn-setup/windows · checked Nov 12, 2026 | Windows, Mac, Linux, Chrome OS, Android, iOS, Apple Vision Pro, Apple TV, Fire TV, NVIDIA SHIELD, onn 4K and routersipvanish.com · checked Nov 12, 2026 |
| NordVPN | NordLynx (WireGuard-based, default), NordWhisper, OpenVPN UDP/TCP, IKEv2/IPSec (manual setup only)nordvpn.com/servers · checked Nov 8, 2026 | Windows, macOS, Linux, Android, iOS, Chrome, Firefox, Edge, Android TV, tvOSnordvpn.com/download · checked Nov 8, 2026 |
| Private Internet Access | WireGuard and OpenVPN (Windows app)privateinternetaccess.com/download/windows… · checked Nov 12, 2026 | Apps for Windows, macOS, Linux, Android and iOS; extensions for Chrome and Firefox; Android TV, Apple TV, consoles, routers and smart TVsprivateinternetaccess.com/download · checked Nov 12, 2026 |
| Proton VPN | Smart Protocol, Stealth and WireGuard (UDP and TCP) on Windows, macOS, Android and iOS/iPadOS; OpenVPN only in the Linux app with a window; IKEv2 only on macOSprotonvpn.com/support/how-to-change-vpn-pr… · checked Nov 12, 2026 | Apps for Windows, macOS, Linux, Chromebook, Android, iPhone and iPad, Apple TV, Android TV and Fire TV; extensions for Chrome and Firefoxprotonvpn.com/download · checked Nov 12, 2026 |
| PureVPN | WireGuard, OpenVPN, IKEv2 in the app (L2TP, SSTP, PPTP not in the app)purevpn.com/what-is-vpn/protocols · checked Nov 8, 2026 | Windows, Mac, Linux, iPhone, Android, Huawei, Chrome, Firefox and Edge extensions, Android TV, Fire TV Stick, Apple TV, routerspurevpn.com/no-log-assessment · checked Nov 8, 2026 |
| Surfshark | Automatic (default, usually picks WireGuard), WireGuard, OpenVPN, IKEv2 (removed from the Windows app; manual setup through the system settings), Dausos (Surfshark's own protocol, macOS app only for now)surfshark.com/features/surfshark-vpn-proto… · checked Nov 9, 2026 | Apps for Windows, macOS, Linux, Android, iOS, Fire TV (separate apps for Fire OS and Vega OS, both in the Amazon Appstore), Apple TV and Android TV; extensions for Chrome, Firefox and Edge; other devices through manual router setupsurfshark.com/download · surfshark.com/download/vega-os · checked Nov 9, 2026 |
The sources in the table name only standard protocols (WireGuard, OpenVPN and IKEv2) for CyberGhost, IPVanish, Private Internet Access (PIA) and PureVPN. ExpressVPN, NordVPN, Proton VPN and Surfshark also list protocols or settings of their own, covered below.
What are NordLynx, Lightway and the other own protocols?
- ExpressVPN: Lightway. Lightway is ExpressVPN’s own protocol. ExpressVPN says “Lightway uses wolfSSL,” a cryptography library, that it rewrote Lightway in the Rust programming language, and that “the core codebase of Lightway has been open-sourced and is available on GitHub.” ExpressVPN says Cure53 has assessed Lightway’s security. Its apps also offer what ExpressVPN describes as its own rebuilt version of WireGuard, with “post-quantum encryption, ephemeral key exchange, dynamic IPs” among the changes.
- NordVPN: NordLynx and NordWhisper. NordVPN lists NordLynx as WireGuard-based and as the default in its apps (see the table). It also lists NordWhisper; what NordWhisper is built on is not listed in the source in the table.
- Proton VPN: Smart Protocol and Stealth. Smart Protocol is a setting more than a protocol: Proton says it picks a protocol for your connection automatically and that it is on by default in the apps that support it. Proton describes Stealth as its own protocol, “designed to bypass internet blocks by hiding your VPN connection.” What Stealth is built on is not listed on that page.
- Surfshark: Dausos. Surfshark calls Dausos its “proprietary protocol specifically engineered for consumer use,” with “post-quantum cryptography and AEGIS-256X2 encryption.” For now it is in the macOS app only. Surfshark’s page does not say whether Dausos is based on WireGuard, OpenVPN or neither, so that is not listed.
As described by ExpressVPN (www.expressvpn.com/lightway), read on .
As described by ExpressVPN (www.expressvpn.com/what-is-vpn/protocols), read on .
As described by Proton VPN Support (protonvpn.com/support/how-to-change-vpn-protocols), read on .
As described by Surfshark (surfshark.com/features/surfshark-vpn-protocols), read on .
When should you switch protocols?
For most people, never. The providers themselves suggest leaving the choice to the app. ExpressVPN says that “if you’re looking for ease of use, leave your VPN protocol set to ‘Automatic’,” and Proton says of Smart Protocol: “It’s enabled by default on all apps that support it, and we recommend keeping it on.” Surfshark’s apps have an Automatic option too.
As described by ExpressVPN (www.expressvpn.com/what-is-vpn/protocols), read on .
There are a few cases where changing the protocol by hand can help:
- The VPN will not connect, or keeps dropping. Trying another protocol is a standard step when a connection fails. If you use OpenVPN, switching between UDP and TCP is worth a try: ExpressVPN says TCP “connects better on certain networks.”
- A network blocks VPN connections. Some workplace, school or hotel networks, and some countries, block VPN traffic. This is what protocols such as Proton’s Stealth are for, which Proton says is “designed to bypass internet blocks by hiding your VPN connection.”
- You set up a router or another device by hand. Routers and other devices without the provider’s app need a standard protocol. Surfshark says OpenVPN works with a wide range of router models by default, and several providers publish manual WireGuard or OpenVPN setups.
- You only want a standard protocol. If you prefer the published WireGuard or OpenVPN design to a provider’s own protocol, the table above shows which apps let you choose one.
As described by Proton VPN Support (protonvpn.com/support/how-to-change-vpn-protocols), read on .
As described by Surfshark (surfshark.com/features/surfshark-vpn-protocols), read on .
After any change, check that the VPN still protects you: our guide on how to check if your VPN is working covers the IP, DNS and WebRTC checks.
How do you change the protocol in a VPN app?
In most apps the steps are similar:
- Open the VPN app and go to Settings (or Preferences).
- Look for Protocol or VPN protocol, often under a heading such as Connection or VPN settings.
- Pick a protocol from the list, or Automatic to let the app choose.
- Disconnect and connect again, if the app does not reconnect by itself.
Menu names change between app versions, so if the setting is not where you expect it, search the app’s settings or help pages for “protocol.” Below are the steps three providers publish on their own pages.
ExpressVPN
ExpressVPN says protocols “don’t need to be set up within a VPN app” and suggests keeping the protocol on Automatic, which it says usually picks Lightway. For OpenVPN, “users can toggle between UDP (User Datagram Protocol) or TCP (Transmission Control Protocol) within the app settings if they wish.” Its page does not give step-by-step menus.
Steps as described by ExpressVPN (www.expressvpn.com/what-is-vpn/protocols), read on .
Proton VPN
- Windows: open Proton VPN, go to Settings, select Protocol (under Connections) and pick a protocol from the list.
- Mac: install the network extension first, which Proton says the Mac app needs before you can change the protocol. Then, in the macOS menu bar, select the Proton VPN menu, then Settings, open the Connection tab and scroll to Protocol.
- Android: go to Settings, scroll to Connection, tap Protocol and pick one from the list.
- Android TV: go to Settings, then Protocol, and pick one from the list.
- iPhone and iPad: go to Settings, tap Protocol (under Security Options) and pick one from the menu.
- Linux app with a window: go to Settings, scroll to Connection, go to Protocol and pick one from the list. Proton says Smart Protocol and Stealth are only there if you have turned on its Proton Protocols beta.
Steps as described by Proton VPN Support (protonvpn.com/support/how-to-change-vpn-protocols), read on .
Surfshark
Open Settings from the sidebar menu, go to VPN Settings, then Protocol, and select a protocol, or choose Automatic to let Surfshark pick one for you.
Steps as described by Surfshark (surfshark.com/features/surfshark-vpn-protocols), read on .
FAQ
Is WireGuard more secure than OpenVPN?
This page does not pick one. Both protocols encrypt your traffic with established cryptography. WireGuard’s case rests on a small code base that is “easily auditable for security vulnerabilities” and a fixed set of modern cryptography; OpenVPN’s rests on what it calls “the industry standard SSL/TLS protocol” and the OpenSSL library, with many ways to configure it. For a VPN service, how the provider runs its apps and servers matters as much as the protocol; see VPN audits compared for which providers have published independent audits.
Is NordLynx the same as WireGuard?
Not quite. NordVPN lists NordLynx as its own WireGuard-based protocol and the default in its apps, so it is built on WireGuard rather than being plain WireGuard. ExpressVPN does something similar with its own rebuilt version of WireGuard. If you need a plain WireGuard connection, for example on a router, look for the provider’s manual setup guide.
Should you use UDP or TCP with OpenVPN?
Start with what the app picks. OpenVPN can run over either: its manual lists “TCP or UDP tunnel transport.” ExpressVPN explains the difference this way: “TCP is a connection-oriented protocol, requiring a connection to be established before data is exchanged, whereas UDP is a connectionless protocol.” It also says TCP “connects better on certain networks,” so if an OpenVPN connection over UDP will not connect or keeps dropping on a particular network, try TCP.
Can you set up WireGuard or OpenVPN by hand?
Yes, with providers that publish manual setups, using the WireGuard or OpenVPN software and the provider’s configuration files. Some providers offer a protocol only this way: CyberGhost, for example, lists OpenVPN on Windows only through a manual setup. A manual connection does not come with the features built into the provider’s app, such as its kill switch, and Surfshark says its post-quantum protection “does not apply to manual WireGuard configurations.” For everyday use, the app is the simpler choice.
Why does a VPN app not offer OpenVPN on every device?
Each provider decides which protocols to build into each app, and the lists change over time. Proton VPN, for example, lists OpenVPN only in its Linux app with a window, and Surfshark has removed IKEv2 from its Windows app. The providers’ pages read for this page do not give their reasons. The table above shows what each provider lists; if you need OpenVPN on a device whose app does not have it, check whether the provider offers a manual setup.