L2TP over IPsec: Why the Tunnel Needs a Second Protocol and Where It Still Fits

Of 543 consumer VPNs in our data, 46 say they do not offer it. Below: the services that rank highest for it.

67consumer VPNs offer it
430do not say

L2TP/IPsec is a VPN built from two protocols stacked on top of each other. L2TP (Layer 2 Tunneling Protocol) digs the tunnel and carries your PPP session through it, but encrypts nothing on its own. IPsec ESP protects each of those packets, and the pair still ships in Windows, Apple settings and countless routers, yet it starts slowly, misbehaves behind NAT and dies to a single firewall rule.

One name, two protocols

L2TP emerged as a merger of Microsoft's PPTP and Cisco's L2F, published as RFC 2661 in August 1999. Its job is pure plumbing: move PPP frames between client and server. Confidentiality was outsourced, and RFC 3193 defined how: IPsec ESP in transport mode, mandatory for both control and data packets. IPsec's own tunnel mode normally stays unused, because L2TP itself already provides the tunnel.

What happens when you press Connect

Troubleshooting starts with the sequence. IKEv1 negotiates the IPsec security association first, over UDP 500 (main mode alone takes 6 messages, plus 3 more for quick mode). Then ESP switches on in transport mode: the channel is private, but nothing flows through it yet. Only after that does L2TP use UDP 1701, wrapped inside ESP, to set up the tunnel. Last comes PPP, which logs you in with PAP, CHAP or MS-CHAPv2 and carries the actual traffic.

This means two separate credentials. The machine proves itself with a pre-shared key or certificate at the IPsec stage; your username and password open the PPP session. A wrong key kills the connection immediately, a wrong password lets IPsec succeed and fails at the PPP step instead.

Ports and the NAT problem

Port Carries When
UDP 500 IKE key exchange every connection
IP protocol 50 raw ESP no NAT on the path
UDP 4500 ESP wrapped in UDP a NAT box sits between you and the server
UDP 1701 L2TP control messages always, but inside ESP, so it never needs its own firewall rule

Raw ESP has no port numbers, and a home router doing address translation has nothing to map return packets by. NAT traversal (per RFC 3947 and RFC 3948) fixes this by moving ESP into UDP 4500. Router menus hide related switches under labels like IPsec passthrough.

Windows adds its own trap: by default the client refuses NAT-T security associations when the VPN server itself sits behind NAT. The fix is the AssumeUDPEncapsulationContextOnSendRule value under HKLM\SYSTEM\CurrentControlSet\Services\PolicyAgent (1 when the server is behind NAT, 2 when both ends are), followed by a reboot.

Double encapsulation also eats into packet size: PPP, L2TP, ESP and often a UDP 4500 header push the usable MTU below 1500. When small pages load but large transfers hang, apply MSS clamping on the router.

The shared key everyone knows

RFC 3193 itself describes the weakness in section 5.1.4. In IKEv1 main mode the server cannot identify a roaming user before picking a key, so one group pre-shared key ends up shared by every subscriber. During the IKE phase neither side then proves its identity: anyone holding the group key can pose as the server, and a fake server can harvest CHAP logins for a dictionary attack. Aggressive mode avoids that impersonation problem but exposes the user identity, and its key hash can be cracked offline. The RFC says implementations SHOULD NOT use a group key. Many consumer providers publish one shared key for all subscribers anyway; a server certificate removes the weakness entirely.

Why L2TP/IPsec counts as legacy

The criticism is fair. IKEv1 talks far more than IKEv2, cipher setups lean on AES-CBC with a separate HMAC instead of modern AEAD modes, and every packet pays for two protocol layers. Switching from Wi-Fi to mobile data forces a full reconnect because there is no roaming. Fixed ports and readable IKE headers mean one firewall rule blocks the whole protocol, with no obfuscation to hide behind. Platform support keeps shrinking. The setup most devices actually use today is described in our IKEv2 glossary entry.

Where L2TP/IPsec still makes sense

It fits devices whose only option is the built-in client: the Windows or Apple built-in VPN settings, Android 11 and older, many home and small-office routers, NAS boxes, legacy office gateways. Internet providers also run plain L2TP as broadband aggregation transport, but there it is plumbing, not privacy. Avoid the pair on networks that filter VPN traffic and for anything facing a serious adversary.

L2TP/IPsec support among VPN services

Of 543 consumer VPNs in the VPNRadarLab database, 67 say they offer L2TP/IPsec, 46 explicitly do not, and 430 do not publish whether they support it. The L2TP ranking lists the 67 services that say they offer L2TP/IPsec.

L2TP/IPsec FAQ

Is L2TP the same as IPsec?

No. L2TP builds the tunnel, IPsec protects what travels through it.

Can L2TP run without IPsec?

Technically yes, but then nothing is encrypted.

Which ports must be open?

UDP 500 and UDP 4500, plus IP protocol 50 where no NAT sits on the path.

Does L2TP/IPsec work behind NAT?

Yes, via NAT traversal on UDP 4500; on Windows, apply the registry fix when the server is behind NAT.

L2TP/IPsec in short

An L2TP tunnel protected by IPsec ESP, keyed by IKEv1, logged in through PPP, reachable on UDP 500 and 4500. Keep it for devices whose only client is the built-in one, use certificates instead of a shared PSK, and move to IKEv2 or WireGuard wherever the hardware allows.