Guides

VPN protocols: WireGuard, OpenVPN, IKEv2, Xray/VLESS

A VPN protocol defines how your device and the server build an encrypted tunnel. WireGuard is the fastest and simplest, OpenVPN the most mature and flexible, IKEv2/IPsec the best at surviving network switches on mobile, and Xray/VLESS over TLS makes tunnel traffic look like ordinary HTTPS. Each trades something for its strength.

🛡️

Encryption strength is not the difference

All four protocols use modern, unbroken cryptography. They differ in speed, code size, behavior on unstable networks, and how recognizable their traffic looks from outside — not in whether the encryption holds.

🌍

Newer usually means faster

WireGuard outperforms OpenVPN on the same hardware because it runs in the kernel with a lean handshake. Age buys OpenVPN configurability and platform reach instead of raw throughput.

🔑

Visibility is its own axis

WireGuard, OpenVPN, and IKEv2 each produce traffic a network can classify as a VPN tunnel. Xray/VLESS inside real TLS is designed to be indistinguishable from a regular HTTPS session.

What a VPN protocol is and why the choice matters

A protocol is the agreement between your app and the server: how keys are exchanged, how packets are encrypted and wrapped, how a dropped connection is resumed. Your subscription usually includes several; the app picks one per connection, and switching is a menu option, not a commitment.

The choice shows up in three places. Throughput and battery drain differ because protocols cost different amounts of CPU per packet. Stability differs when you move between networks or sit behind strict firewalls. And visibility differs: some tunnels are trivial for network equipment to classify as VPN traffic, others are built to avoid classification. No protocol wins all three, which is why the menu exists.

WireGuard: speed and a small codebase

WireGuard is the default answer in 2026. Around four thousand lines of kernel code against the hundreds of thousands in older stacks, one modern cipher suite (ChaCha20-Poly1305) instead of a negotiation matrix, and a handshake that completes in a single round trip. In practice that means near-line-rate throughput on ordinary hardware, quick reconnects, and modest battery cost on phones.

It pays with two design traits. First, a standard WireGuard server assigns each peer a fixed address inside the tunnel, so the provider must add its own layer — rotating internal addresses, discarding peer state after disconnect — to avoid a stable per-user identifier; whether that is done is a provider property, not a protocol one. Second, WireGuard runs over UDP with a recognizable handshake pattern, so network equipment that wants to identify VPN traffic finds it easy to spot, and networks that drop unknown UDP break it entirely.

OpenVPN: maturity and flexibility

OpenVPN has been in production since the early 2000s, and that age is its asset: two decades of scrutiny, support on virtually every platform and router, and configuration options for almost any network layout. It runs over UDP for speed or TCP for reachability, and on TCP port 443 it at least uses the port firewalls rarely close — though its TLS handshake still differs from a browser's, so classification remains possible.

The cost is weight. OpenVPN processes packets in user space, crossing the kernel boundary on every packet, and its throughput on the same hardware is typically a fraction of WireGuard's, with reconnects measured in seconds rather than instantly. The codebase and its OpenSSL dependency are orders of magnitude larger, which means a bigger audit surface. It remains the right tool on legacy routers, in corporate setups that require certificates, and on networks where UDP is unusable.

IKEv2/IPsec: built for phones

IKEv2's distinguishing feature is MOBIKE, a standard extension that lets an established tunnel survive a change of network address. Walk out of Wi-Fi coverage onto LTE and the session migrates without a new handshake — the exact event that interrupts other protocols mid-call. Native support in iOS and Android, with encryption handled in the operating system's IPsec stack, keeps battery cost low and makes it a common default in mobile apps.

Its weaknesses are environmental. IKEv2 needs UDP ports 500 and 4500, which restrictive networks — hotel Wi-Fi, office firewalls — often block, and it has no TCP fallback of its own. Configuration is also less transparent than WireGuard's: IPsec parameters are negotiated, and a poorly configured server can settle on weaker settings than intended. Strong choice on mobile, brittle on hostile networks.

Xray/VLESS: a tunnel that looks like HTTPS

VLESS is a lightweight transport protocol from the Xray project: minimal framing, no built-in encryption of its own, designed to run inside a real TLS session. Because the encryption layer is standard TLS — the same protocol every website uses — a VLESS connection on port 443 presents an ordinary certificate handshake followed by an opaque encrypted stream, which is exactly what any HTTPS session looks like from outside.

This matters on networks that classify and throttle or drop recognizable VPN protocols. Where WireGuard's handshake or OpenVPN's TLS quirks give the tunnel away, a well-configured Xray endpoint gives a classifier no distinguishing pattern beyond statistics. The costs: more moving parts on the server, throughput bounded by TLS processing rather than kernel networking, and a small ecosystem of clients compared with mainstream protocols. Aurora runs WireGuard for everyday speed and Xray/VLESS on its own nodes for networks where standard tunnels are unreliable.

Which protocol should you choose

Start with WireGuard and change only when something specific breaks. The practical mapping:

  • Default, speed, gaming, large downloads — WireGuard
  • Phone that hops between Wi-Fi and mobile data all day — IKEv2, or WireGuard if reconnects feel fast enough
  • Strict firewall that allows only web traffic — OpenVPN over TCP 443, or better, Xray/VLESS
  • Network where recognizable VPN protocols stall or drop — Xray/VLESS over TLS
  • Old router or a corporate certificate requirement — OpenVPN
  • Not sure — leave the app on automatic and let it fall back in this order

Frequently asked questions

Which VPN protocol is the fastest?
WireGuard, in almost every benchmark and network condition. Kernel-space packet processing, a one-round-trip handshake, and a single modern cipher keep per-packet overhead minimal, so throughput approaches the line rate of the connection. OpenVPN on the same hardware is typically several times slower; IKEv2 lands between them.
Is OpenVPN obsolete now that WireGuard exists?
No. It is slower, but it runs on hardware and in environments WireGuard does not reach: legacy routers, certificate-based corporate setups, and networks where only TCP on port 443 gets through. Two decades of audits also count for something. It has moved from default to fallback, not to retirement.
Which protocol is best for mobile phones?
IKEv2/IPsec handles network switching most gracefully: MOBIKE migrates the tunnel when you move from Wi-Fi to mobile data without renegotiating. WireGuard is a close second — its reconnects are so fast that the difference is often invisible — and it usually wins on battery and raw speed.
Are all these protocols equally secure?
For practical purposes, yes, when configured correctly. WireGuard, OpenVPN, IKEv2, and TLS-based VLESS all rest on modern cryptography with no known practical breaks. Real-world risk lives in configuration and operation — weak negotiated parameters, outdated servers, logging — not in the mathematics of any of the four.
Why does my VPN app switch protocols by itself?
Automatic mode tries the fastest protocol first and falls back when the network interferes — for example, when unknown UDP traffic is dropped and WireGuard cannot connect, the app retries with a TCP-based or TLS-camouflaged protocol. The switch trades some speed for a connection that works on that network.
What is the difference between VLESS and VMess?
Both come from the same project family. VMess is the older protocol with built-in encryption and timestamp checks; VLESS strips that out and delegates encryption to the TLS layer, making it lighter and simpler to analyze. Over a properly configured TLS transport, VLESS is the current recommendation of the two.

Keep reading

Try Aurora

14-day money-back guarantee. Up to 7 devices on one subscription.

Protect my devices