← All guides

VPN Protocols Explained: WireGuard vs OpenVPN vs IKEv2 vs Trojan

By the BuyVPN editorial team · · updated

A VPN protocol is the rulebook for how your tunnel is built and encrypted. You don’t need to be an engineer to choose well — you need to know which one to switch to when. Here’s the honest comparison, then the detail.

ProtocolSpeedReconnectsBeats firewallsBest for
WireGuardFastestGoodNo (on its own)Everyday use, streaming
IKEv2/IPsecFastExcellentLimitedMobile / switching networks
OpenVPNModerateGoodSometimes (TCP/443)Compatibility, older setups
Trojan / obfuscationModerateGoodYesRestrictive / censored networks

WireGuard — the modern default

WireGuard is fast and efficient, with a famously small codebase (a few thousand lines versus the tens of thousands in older stacks), which makes it easier to audit and harder to get wrong. It uses modern cryptography (ChaCha20) and sips battery on mobile. The one catch: its traffic has a recognisable signature, so on a network actively blocking VPNs it can be detected.

Reach for it: the best all-round choice on any open network.

IKEv2/IPsec — the mobile specialist

IKEv2’s standout trait is how gracefully it survives network changes — walk out of Wi‑Fi range onto cellular and it re-establishes the tunnel almost instantly, so the drop is invisible. Fast and stable, but less able than OpenVPN to disguise itself through awkward firewalls.

Reach for it: when you’re mostly on a phone and want seamless reconnects.

OpenVPN — the old reliable

The veteran. OpenVPN has had years of public scrutiny and runs almost everywhere. Its key trick is flexibility: it can run over TCP on port 443, the same port as normal HTTPS, which helps it slip through restrictive networks that block other protocols. The cost is weight — it’s heavier and usually slower than WireGuard.

Reach for it: when you want a long, audited track record, or WireGuard is blocked.

Trojan and obfuscation — the part most guides skip

This is the protocol that matters when nothing else connects. Ordinary VPN traffic carries detectable fingerprints, so deep packet inspection (DPI) systems and national firewalls can spot and drop it. Obfuscation hides that fingerprint. A Trojan proxy is a strong example — it wraps your traffic to look like ordinary HTTPS over port 443, which is extremely hard to block without also breaking the normal web.

There’s a modest speed cost, so it’s not your everyday choice — but when WireGuard and OpenVPN simply won’t connect (a censored country, a locked-down school or office network), an obfuscated option is the difference between working and not.

Reach for it: behind any firewall that blocks regular VPNs.

You shouldn’t have to pick just one

The best setup isn’t a single “winning” protocol — it’s a provider that ships several and lets you switch freely: WireGuard or IKEv2 for daily speed, OpenVPN for compatibility, and an obfuscated/Trojan mode in reserve for hostile networks. Be wary of providers that lock their best protocol behind a pricier plan; the strongest ones include the full suite on every tier.

See which of today’s providers include obfuscation as standard — not as an add-on — in our VPN rankings.

Ready to pick one?

See our current ranking of the best VPNs, compared on the real monthly price.

View the VPN rankings →