VPN Protocols: OpenVPN vs IPSec, WireGuard, L2TP, & IKEv2 (2024)

VPN Protocols: OpenVPN vs IPSec, WireGuard, L2TP, & IKEv2 (1)

What are VPN protocols? Why do people get so excited about the differences?

With most VPN providers offering a variety of VPN protocols to choose from, it is good to know the pros and cons of these different options so you can select the best fit for your unique needs.

In this guide, we will compare the most popular VPN protocols, including OpenVPN, IPSec, L2TP/IPSec, IKEv2/IPSec, WireGuard, PPTP, and SSTP. This is meant to give you a brief overview of the pros and cons of each VPN protocol.

So let’s dive in.

What are the different VPN protocols?

What is a VPN protocol?

In the context of this article, a protocol is a set of instructions for formatting and processing data. A VPN protocol is a set of instructions to establish a secure and encrypted connection between your device and a VPN server for the transmission of data.

Most commercial VPN services offer a variety of different VPN protocols that you can use within the VPN client. For example, the screenshot below comes from the ExpressVPN review and shows the different protocols available to ExpressVPN users.

VPN Protocols: OpenVPN vs IPSec, WireGuard, L2TP, & IKEv2 (2)

Note: You can see above that one of the VPN protocols listed is the Lightway VPN protocol. Developed by ExpressVPN, this open source protocol is used by ExpressVPN to increase data transmission speed and security when compared to ExpressVPN’s implementation of OpenVPN. Lightway is similar to WireGuard.

Now we will take a closer look at various VPN protocols.

OpenVPN – The current industry standard

OpenVPN is a versatile, open source VPN protocol developed by OpenVPN Technologies. It is a very secure protocol and has passed many third-party security audits. While WireGuard is growing in popularity, OpenVPN is still the most popular VPN protocol at this time.

OpenVPN is generally considered to be the industry standard when it is properly implemented and uses SSL/TLS for key exchange. It provides full confidentiality, authentication, and integrity and is also very flexible with various use cases.

VPN Protocols: OpenVPN vs IPSec, WireGuard, L2TP, & IKEv2 (3)

Setup: OpenVPN requires special client software to use, rather than being built into different operating systems. Most VPN services provide custom OpenVPN apps, which can be used on different operating systems and devices. Installation is usually fast and simple.OpenVPN can be used on all major platforms through third-party clients: Windows, macOS, Linux, Apple iOS, Android, and various routers (check the firmware for compatibility).

Encryption: OpenVPN uses the OpenSSL library and TLS protocols to provide encryption. OpenSSL supports a number of different algorithms and ciphers, including AES, Blowfish, Camellia, and ChaCha20.

Security: So long as OpenVPN is properly implemented, it is considered to be a very secure protocol. It does not have any known major vulnerabilities.

Performance: OpenVPN offers good performance, especially if run over UDP (User Datagram Protocol), rather than TCP (Transmission Control Protocol). OpenVPN is also stable and reliable whether used over wireless or cellular networks. If you are having connection problems you can use OpenVPN with TCP, which will confirm all packets sent, but it will be slower.

Ports: OpenVPN can be used on any port using UDP or TCP.

Verdict: Recommended

WireGuard – A newer VPN protocol with great performance

WireGuard is a newer VPN protocol. It seeks to provide better performance and more security than existing protocols. It was officially released from beta in 2020 and continues to gain popularity due to better performance and security than even the best VPN protocols that came before it.

VPN Protocols: OpenVPN vs IPSec, WireGuard, L2TP, & IKEv2 (4)

As we covered in the main WireGuard VPNguide, the protocol has some great benefits, mainly with better performance, a smaller code base, and upgraded security.

There are also a few drawbacks to WireGuard. By default, WireGuard stores user IP addresses on the server and does not assign IP addresses dynamically. However, many VPNs have found good solutions to these problems that ensure WireGuard does not undermine privacy.

For example, NordVPN implements a double-NAT system to ensure user IP addresses are never stored on the VPN server. This effectively solves the inherent privacy issues with WireGuard. And as we covered in the NordVPN review, NordLynx is the name of their implementation of the WireGuard VPN protocol.

VPN Protocols: OpenVPN vs IPSec, WireGuard, L2TP, & IKEv2 (5)

Setup: WireGuard is included in the kernel of Linux. , Mac OS, and perhaps with some mobile operating systems. A limited number of VPNs support WireGuard – check with the provider for setup instructions.

Encryption:WireGuard utilizes Curve25519 for key exchange, ChaCha20, and Poly1305 for data authentication, and BLAKE2s for hashing.

Security: WireGuard has officially been released from beta and has passed security audits. It offers updated encryption standards and can be considered very secure.

Performance: Generally speaking, WireGuard offers excellent performance in terms of speed, reliability, and also battery consumption. It is ideal for mobile users because it allows you to seamlesslyswitch between network interfaces without losing the connection. Re-connecting is also supposed to happen much faster than with OpenVPN and IPSec.

The biggest performance advantage of WireGuard is fast download speeds. In our OpenVPN vs WireGuard comparison, we found that WireGuard outperformed OpenVPN with all server locations by about 58%. Some of the top VPNs that support WireGuard can get speeds from 300 Mbps to 445 Mbps on a 500 Mbps internet connection, as you can see in the Surfshark vs NordVPN report.

Ports: WireGuard uses UDP and can be configured on any port. Unfortunately, there is no support for TCP, which makes it easier to block.

Verdict: Recommended with select VPN services

IPSec – Internet Protocol Security

What is IPSec? IPSec is a secure network protocol suite that authenticates and encrypts data packets sent over an IP network.

IPSec stands for Internet Protocol Security. IPSec was developed by the Internet Engineering Task Force. Unlike SSL, which works on the application level, IPSec operates on the network level and can be used natively with many operating systems. Because most operating systems support IPSec natively, it can be used without third-party apps (unlike OpenVPN).

IPSec has become a very popular protocol to use with VPNs when paired with L2TP or IKEv2, which we will discuss more below.

IPSec encrypts the entire IP packet using:

  • Authentication Header (AH), which places a digital signature on each packet; and
  • Encapsulating Security Protocol (ESP), which provides confidentiality, integrity, and authentication of the packet in transmission.

Leaked NSA presentation – A discussion of IPSec would not be complete without referencing a leaked NSA presentation that discusses the NSA compromising IPSec protocols (L2TP and IKE). It’s difficult to come to any concrete conclusions based on vague references in this dated presentation.

Nonetheless, if your threat model includes targeted surveillance from sophisticated state-level actors, you may want to consider a more secure protocol, such as OpenVPN. On a positive note, IPSec protocols are still widely considered to be secure if they are implemented properly.

Now we will examine how IPSec is used with VPNs when paired with L2TP and IKEv2.

IKEv2/IPSec

What is IKEv2/IPSec?

IKEv2 is a tunneling protocol that is standardized in RFC 7296 and it stands for Internet Key Exchange version 2. It was developed as a joint project between Cisco and Microsoft. To be used with VPNs for maximum security, IKEv2 is paired with IPSec.

The first version of IKE (Internet Key Exchange) came out in 1998, with version 2 being released seven years later in December 2005. In comparison to other VPN protocols, IKEv2 offers advantages in terms of speed, security, stability, CPU usage, and the ability to re-establish a connection. This makes it a decent choice for mobile users if WireGuard and OpenVPN are not suitable.

Setup: Setup is generally quick and easy, requiring you to import the configuration files for the servers you want to use from your VPN provider. (See this setup example with Perfect Privacy.) IKEv2 is natively supported on Windows 7+, macOS 10.11+, Blackberry, and iOS (iPhone and iPad), and some Android devices. Some operating systems also support an “always on” function (a.k.a. a kill switch), which forces all internet traffic through the VPN tunnel, therefore ensuring no data leaks.

Encryption: IKEv2 uses a large selection of cryptographic algorithms, including AES, Blowfish, Camellia, and 3DES.

Security: One drawback with IKEv2/IPSec is that it is closed source and was developed by Cisco and Microsoft (but open source versions do exist). On a positive note, IKEv2 is widely considered to be among the fastest and most secure protocols available, making it a popular choice with VPN users.

Performance: In many cases, IKEv2 is faster than OpenVPN since it is less CPU-intensive. There are, however, numerous variables that affect speed, so this may not apply in all use cases. From a performance standpoint with mobile users, IKEv2 may be the best option because it does well establishing a reconnection.

Ports:IKEv2 uses the following ports: UDP 500 for the initial key exchange and UDP 4500 for NAT traversal.

Verdict: Recommended

L2TP/IPSec

Layer 2 Tunneling Protocol (L2TP) paired with IPSec is also a popular VPN protocol that is natively supported by many operating systems. L2TP/IPSec is standardized in RFC 3193 and provides confidentiality, authentication, and integrity.

Setup: Setting up L2TP/IPSec is generally fast and easy. It is natively supported on many operating systems, including Windows 2000/XP+, macOS 10.3+, as well as most Android operating systems. Just like with IKEv2/IPSec, you simply need to import the configuration files from your VPN provider.

Encryption: L2TP/IPSec encapsulates data twice with encryption coming via the standard IPSec protocol.

Security: L2TP/IPSec is generally considered secure and does not have any major known issues. Just like with IKEv2/IPSec, however, L2TP/IPSec was also developed by Cisco and Microsoft, which raises questions about trust.

Performance: In terms of performance L2TP/IPSec can really vary. On the one hand, encryption/decryption occurs in the kernel and the protocol also supports multi-threading, which should improve speeds. But on the other hand, the fact that this VPN protocol double-encapsulates data can slow it down significantly.

Ports:L2TP/IPSEC uses UDP 500 for the initial key exchange as well as UDP 1701 for the initial L2TP configuration and UDP 4500 for NAT traversal. Because of this reliance on fixed protocols and ports, L2TP/IPSEC is easier to block than OpenVPN.

Verdict: L2TP/IPSec is not a bad choice, but you may want to opt for IKEv2/IPSec, OpenVPN, or WireGuard if available.

PPTP – An outdated and insecure protocol

PPTP stands for Point-to-Point Tunneling Protocol and is one of the oldest VPN protocols still in use today. It runs on TCP port 1723 and was initially developed by Microsoft.

PPTP is now essentially obsolete due toserious security vulnerabilities. We won’t spend too much time discussing PPTP because most people are not even using it anymore.

PPTP is supported natively on all versions of Windows and most operating systems. While it is relatively fast, PPTP is not as reliable and does not recover as quickly from dropped connections as OpenVPN.

Overall, PPTP should not be used in any situation where security and privacy are important. If you are just using a VPN to unblock content, PPTP may not be a bad choice, but there are more secure options worth considering.

Verdict: Not recommended

Lightway – A new VPN protocol from ExpressVPN

While many VPN providers have been working to integrate WireGuard, ExpressVPN has taken a different route. This VPN provider instead developed its own protocol with Lightway.

In many respects, the Lightway VPN protocol is similar to WireGuard. It is based on the latest cryptography and also offers reliability improvements. And while Lightway is faster than OpenVPN, it is not quite as fast as WireGuard in real-world tests. See for example thespeed tests section of this ExpressVPN vs NordVPN comparison.

Using the Lightway protocol with the ExpressVPN app is simple. All you need to do is open up the Settings area, select Protocol, and then click on the version of the Lightway protocol you want to use.

VPN Protocols: OpenVPN vs IPSec, WireGuard, L2TP, & IKEv2 (6)

At this time, only ExpressVPN is using Lightway. While Lightway is open source and has passed security audits, it still remains less popular than WireGuard.

SSTP – A VPN protocol for Windows, but not very commonly used

Like PPTP, SSTP is not widely used in the VPN industry, but unlike PPTP, it does not have major known security issues.

SSTP stands for Secure Socket Tunneling Protocol and is a Microsoft product that is available for Windows only. The fact that it is a closed source product from Microsoft is an obvious drawback, especially with massive security vulnerabilities discovered in other Microsoft products recently.

SSTP transports traffic through the SSL (Secure Socket Layer) protocol over TCP port 443. This makes it a useful protocol to use in restricted network situations, such as if you need a VPN for China. There is also support for other operating systems, aside from Windows, but it is not widely used.

Because SSTP is closed source and remains entirely under the ownership and maintenance of Microsoft, you may want to consider other options. Of course, SSTP may still be the best option if all other protocols are getting blocked on your network.

In terms of performance, SSTP does well and is fast, stable, and secure. Unfortunately, very few VPN providers support SSTP. For many years ExpressVPN supported SSTP in the Windows client, but it is no longer supported today.

Verdict: SSTP may be useful if other VPN protocols are getting blocked, but OpenVPN or WireGuard would be a better choice (if available). Most VPNs do not offer any support for SSTP.

Which version of OpenVPN should you use: OpenVPN UDP vs OpenVPN TCP

With OpenVPN being the most popular VPN protocol, you can usually select between two varieties: OpenVPN UDP or OpenVPN TCP. So which to choose?

The screenshot below is from the NordVPN review, where I am choosing between OpenVPN TCP and UDP protocols.

VPN Protocols: OpenVPN vs IPSec, WireGuard, L2TP, & IKEv2 (7)

Here’s a brief overview of both protocols:

  • TCP (Transmission Control Protocol): TCP is the more reliable option of the two, but it comes with some performance drawbacks. With TCP, packets are sent only after the last packet is confirmed to have arrived, therefore slowing things down. If confirmation is not received, a packet will simply be resent – what is known as error correction.
  • UDP (User Datagram Protocol): UDP is the fastest of the two options. Packets are sent without any confirmation, which improves speed but also may not be as reliable.

By default, OpenVPN UDP would be the better choice because it offers superior performance over OpenVPN TCP. If you are having connection problems, however, switch to TCP for more reliability.

TCP is often used for obfuscating VPN traffic to look like regular HTTPS traffic. This can be done by using OpenVPN TCP on port 443, with the traffic routed in TLS encryption. Many VPN providers offer various forms of obfuscation to defeat VPN blocks, and most utilize OpenVPN TCP.

Note: to see how WireGuard outperforms OpenVPN in real-world tests, just check out our IPVanish vs NordVPN report. Here we have speed tests with NordVPN using WireGuard against IPVanish using OpenVPN. And the difference was huge.

What is the best VPN protocol for your use case?

As noted in my overview of the best VPN services, there is no one-size-fits-all solution for every person. This applies to choosing a VPN service and also selecting a VPN protocol. The best protocol for your situation will depend on a few different factors:

  • The device you are using – different devices support different protocols.
  • Your network – if you are in a restricted network situation, such as in China or with school and work networks, some protocols may not get through. Some VPN providers offer designated VPN protocols for these situations – see the VPN for China guide for more of a discussion on this topic.
  • Performance– Some protocols offer big advantages in terms of performance, especially on mobile devices that go in and out of connectivity.
  • Threat model – Some protocols are weaker and less secure than others. Choose the best VPN protocol for your security and privacy needs, given your threat model.

As a general rule of thumb, however, OpenVPNand WireGuard are my top recommendations for VPN protocols. They are secure, fast, trustworthy, open source, and audited.

In terms of performance, all of the fastest VPNs we have tested were using the WireGuard VPN protocol. While you can still get better than average speeds with OpenVPN, the WireGuard VPN protocol remains the top performer by a long shot.

Conclusion on VPN protocols in 2022

This best VPN protocol guide is meant to serve as a basic overview of the main VPN protocols in use today: OpenVPN, WireGuard, L2TP/IPSec, IKEv2/IPSec, PPTP, and SSTP.

For more in-depth information on each protocol, you can examine references from the respective developers.

We will continue to update this guide as development continues with these different VPN protocols.

This guide was last updated on January 27, 2023.

VPN Protocols: OpenVPN vs IPSec, WireGuard, L2TP, & IKEv2 (2024)

FAQs

VPN Protocols: OpenVPN vs IPSec, WireGuard, L2TP, & IKEv2? ›

IKEv2 is easier to block than OpenVPN due to its reliance on fixed protocols and ports. OpenVPN can be easily configured to run on any port using either UDP or TCP thereby easily bypassing restrictive firewalls. WireGuard® uses the UDP protocol and can be configured to use any port.

What is the difference between OpenVPN WireGuard and IKEv2 IPsec protocols? ›

IKEv2 is easier to block than OpenVPN due to its reliance on fixed protocols and ports. OpenVPN can be easily configured to run on any port using either UDP or TCP thereby easily bypassing restrictive firewalls. WireGuard® uses the UDP protocol and can be configured to use any port.

Which VPN is better IKEv2 or IPsec or L2TP? ›

IKEv2 is not as common as L2TP/IPSec as it is supported on many fewer platforms (although this situation is changing fast). It is, however, considered at least as good as, if not superior to, L2TP/IPsec in terms of security, performance (speed), stability and the ability to establish (and re-establish) a connection.

Which VPN server is better WireGuard or OpenVPN? ›

The main difference between WireGuard and OpenVPN is that WireGuard is much faster, while OpenVPN allows for higher privacy. Another important difference is that OpenVPN gives you a choice of encryption algorithm, whereas WireGuard forces you to use ChaCha20 for encryption and Poly1305 for authentication.

What is the strongest VPN security protocol? ›

OpenVPN and WireGuard are protocols that can offer the most robust encryption and the highest level of security. OpenVPN uses an AES 256-bit encryption key, widely used by top-tier entities, such as NASA and the military. Meanwhile, WireGuard® uses a comparatively new and sturdy encryption protocol called XChaCha20.

Should I use IKEv2 or OpenVPN? ›

Summing up, if you need a secure and versatile protocol, OpenVPN is a good choice. However, if you care about speed or want to use a mobile VPN client, go for IKEv2.

Which is better IPSec or OpenVPN? ›

IPSec and OpenVPN are both viable VPN solutions. But OpenVPN is generally regarded as a more secure, more flexible option. As an “always on” site-to-site VPN solution, IPSec is ideal for securing your on-premises resources, but it can be more difficult to implement with devices in the field, particularly in IoT.

What VPN is the strongest VPN? ›

What is the best VPN in 2023?
  • ExpressVPN retained CNET Editors' Choice Award for best overall VPN after its 2023 review. ...
  • Surfshark is a close second among our picks. ...
  • NordVPN, our third choice, is a die-hard heavy hitter.
Sep 16, 2023

Which VPN protocol is hardest to block? ›

IKEv2. Internet Key Exchange version 2 (IKEv2) is a VPN protocol designed to work with IPsec. IKEv2 makes the encryption keys. This makes your VPN connection harder to block because the data cannot be deciphered without the secret key.

What is the best encryption type for VPN? ›

What are the Best VPN Encryption Standards?
  • Key exchange protocols like RSA-2048 or ECDH.
  • Encryption key length of 256-bit.
  • Military-grade ciphers like AES (GCM/CBC), Blowfish, or Camellia.
  • High-performance VPN encryption protocols like OpenVPN, WireGuard, IKEv2/IPSec, and SoftEther.
  • SHA-2 cipher for HMAC authentication.

Is WireGuard the best protocol? ›

WireGuard is generally considered one of the safest protocols today with its simple design, less code, and fewer possible bugs. This, coupled with its faster, state-of-the-art cryptography running within the Linux kernel, delivers a very easy-to-use VPN protocol that's tough to beat for speed, volume, and safety.

Why is WireGuard better than IPSec? ›

IPSec is also a fast, fairly recent protocol. However, WireGuard has two advantages: its cryptographic primitives may be faster, and it's built into the Linux kernel. One test found that IPSec beat WireGuard in one particular situation, while WireGuard was more consistently fast.

What is the difference between VPN and OpenVPN? ›

Modern VPNs use Wireguard, which is the faster protocol, whereas OpenVPN doesn't. Both offer a similar level of security, but OpenVPN's encryption can be set to a lower level – from 256-bit to 128-bit.

Which is the most safest VPN in the world? ›

NordVPN – the safest VPN in 2023 overall

NordVPN is the most secure VPN on the market because of the most robust encryption technology, high-level security measures, and privacy-friendly jurisdiction in Panama.

Is IKEv2 better than WireGuard? ›

Speed Comparison

In terms of speed, WireGuard and PPTP are the fastest, but OpenVPN, IKEv2, and L2TP offer decent speeds as well. WireGuard is fast because it's lightweight. The protocol can be implemented in very few lines of code, so there's much less going on in the background.

What is the strongest and fastest VPN in the world? ›

The best fast VPNs in 2023– our detailed list:
  • NordVPN – fastest VPN service in 2023. Based in: ...
  • Surfshark – fast VPN with the most diverse server fleet. ...
  • IPVanish – high-speed VPN with unlimited connections. ...
  • ExpressVPN – speedy VPN with a proprietary protocol. ...
  • CyberGhost VPN – very fast VPN with exceptional server fleet.
Sep 20, 2023

What makes WireGuard different than IPsec? ›

In stark contrast with IPsec, WireGuard does not have a concept of an open connection or tunnel. WireGuard sends the packets (encapsulated in UDP) to the target IP address and does not perform any active connection management.

What is the difference between IKEv2 and IPsec? ›

Working together, they deal with different tasks to ensure a stable, secure, and fast VPN connection. IKEv2 handles the protection of your traffic, while IPsec is responsible for moving it through the tunnel quickly and without interruption. For more details, read this article.

What is the difference between WireGuard and IKEv2 for mobile? ›

The best Surfshark VPN protocol largely depends on the device you're using or the reason you need a VPN: WireGuard® is good all around, especially when speed is the issue. IKEv2 is on par with WireGuard® and is really good with mobile. OpenVPN usually works best for routers.

What are the two most commonly used VPN protocols? ›

6 Most Common VPN Protocols
  • 1) Open VPN. OpenVPN is a highly secure and very popular protocol commonly used by many VPN providers. ...
  • 2) Secure Socket Tunneling Protocol (SSTP) ...
  • 3) Internet Key Exchange Version 2 (IKEv2) ...
  • 4) Wire Guard. ...
  • 5) Point-to-Point Tunneling Protocol (PPTP) ...
  • 6) Layer 2 Tunneling Protocol (L2TP)

Top Articles
Latest Posts
Article information

Author: Gregorio Kreiger

Last Updated:

Views: 5937

Rating: 4.7 / 5 (77 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Gregorio Kreiger

Birthday: 1994-12-18

Address: 89212 Tracey Ramp, Sunside, MT 08453-0951

Phone: +9014805370218

Job: Customer Designer

Hobby: Mountain biking, Orienteering, Hiking, Sewing, Backpacking, Mushroom hunting, Backpacking

Introduction: My name is Gregorio Kreiger, I am a tender, brainy, enthusiastic, combative, agreeable, gentle, gentle person who loves writing and wants to share my knowledge and understanding with you.