Back to blog

What Is IKEv2/IPsec? The VPN Protocol Built Into Your Phone

September 19, 2026 2 min read

If you've ever added a VPN through your phone's built-in settings without installing an app, you were probably using IKEv2/IPsec. It's less talked about than WireGuard or OpenVPN, but it's everywhere.

Two pieces working together

The name combines two standards:

  • IKEv2 (Internet Key Exchange, version 2) handles the negotiation: the two sides authenticate each other and agree on encryption keys.
  • IPsec handles the tunnel: it encrypts and authenticates the actual IP packets once keys are agreed.

IKEv2 sets up the security association; IPsec carries the traffic.

Why it's built into everything

IKEv2/IPsec is supported natively by Windows, macOS, iOS, Android, and most routers and enterprise gateways. That means no third-party app to install — you configure it in system settings. For organizations managing lots of devices, native support is a big practical advantage.

Where it's strong

  • Mobility. With the MOBIKE extension, an IKEv2 connection survives switching networks — Wi-Fi to cellular — without dropping and reconnecting. That's why it became a favorite on phones.
  • Speed and stability. Well-implemented IPsec runs efficiently, often in the kernel or on dedicated hardware.
  • Strong, configurable cryptography. Modern setups use AES-GCM or ChaCha20 with strong key exchange.

Where it falls behind

  • Complexity. IPsec is a large family of standards with many options. Misconfiguration is common, and interoperability between vendors can be fiddly.
  • Easy to identify and block. It uses UDP ports 500 and 4500 with well-known packet structures, so networks that filter VPNs can block it trivially.
  • Harder to self-host than it looks. Certificates, firewall rules for IPsec protocols, and NAT traversal make a working server more work than a WireGuard peer list.

How it compares

IKEv2/IPsec OpenVPN WireGuard
Native OS support Yes No Partial
Network switching Excellent Fair Excellent
Setup complexity High Medium Low
Resists blocking Poor Poor Poor

When it makes sense

IKEv2/IPsec is a good fit when you need zero-install client support across managed devices, or you're connecting to an existing enterprise gateway. For a self-hosted personal or small-team VPN, WireGuard is simpler to run and just as good on mobile networks, with AmneziaWG or VLESS available when you need to get past filtering.

Nullsify skips the legacy stack and sets up the modern protocols on your own VPS directly.

Ready to run your own VPN?

Bring your own VPS and have VLESS, AmneziaWG, or WireGuard running in minutes — no manual setup required.