Privacy

What Is L2TP? How the Tunneling Protocol Works in 2026

L2TP is a 1999 tunneling protocol that still appears in router and VPN menus. Here is what it does, why it needs IPsec, and why you should usually pick a newer protocol.

Cysoro Security TeamPublished · 7 min read
PPP A B LAC LNS UDP 1701 PRIVACY What isL2TP? A tunnel, not a lock.
Quick answer

L2TP, or Layer 2 Tunneling Protocol, is a tunneling protocol published in 1999 that carries a Point-to-Point Protocol session across an IP network between your device and a server. It creates the tunnel but encrypts nothing by itself, so it is almost always paired with IPsec as L2TP/IPsec. Today it is a legacy choice: use WireGuard or IKEv2 instead unless an old system requires it.

Key takeaways

  • L2TP builds a tunnel but provides no encryption on its own, so it must be paired with IPsec.
  • L2TP/IPsec uses UDP ports 1701, 500 and 4500, plus IP protocol 50 (ESP), which makes it hard to get through strict firewalls.
  • L2TP is a legacy protocol in 2026: Microsoft has deprecated it in Windows Server, and WireGuard or IKEv2 are better choices for new setups.

You open your router settings or an old work VPN guide and there it is: L2TP/IPsec, sitting in a dropdown next to WireGuard and IKEv2. It looks like just another VPN option, but it comes from a different era — 1999 — and it works in a way that surprises most people.

What is L2TP?

L2TP, or Layer 2 Tunneling Protocol, is a tunneling protocol that carries a Point-to-Point Protocol (PPP) session across an IP network. It was published in August 1999 as RFC 2661, combining ideas from Cisco's Layer 2 Forwarding protocol and Microsoft's PPTP.

The name tells you what it does. "Layer 2" means it works at the data link layer, carrying a whole PPP session — with its own login, address assignment and link negotiation — rather than just forwarding individual IP packets.

That matters because a tunnel is not the same as a lock. L2TP builds the pipe your data travels through, but it does nothing to keep the data private inside that pipe. On its own, L2TP provides no encryption and no confidentiality for your traffic.

Because of that gap, L2TP almost never travels alone. In practice it is paired with IPsec, the separate system that encrypts the traffic, and the combination is called L2TP/IPsec. When people say "L2TP" in a VPN menu, they almost always mean L2TP/IPsec.

How does L2TP work?

L2TP works by wrapping your PPP session inside UDP datagrams and sending them between two endpoints: the L2TP Access Concentrator (LAC) and the L2TP Network Server (LNS). The LAC accepts your connection and forwards it into the tunnel; the LNS terminates the tunnel.

The process has three stages. First, the LAC and LNS set up a tunnel and agree on its settings. Next, a PPP session is established inside that tunnel, including your username and password check and the assignment of an IP address. Finally, your data flows through the tunnel as PPP frames.

How an L2TP/IPsec connection worksYour devicestarts a PPPsessionL2TP tunnelUDP 1701, wrappedin IPsec (ESP)LNS serverunwraps the tunnel,joins private networkL2TP builds the tunnel. IPsec does the encrypting.Without IPsec, anyone on the path can read the traffic inside.LAC = L2TP Access Concentrator · LNS = L2TP Network Server
The L2TP tunnel runs between your device and the server, with IPsec providing the encryption. Illustration by Cysoro.

Think of it like a courier service. L2TP is the van that carries your parcel from one depot to another. IPsec is the locked, armored container inside the van. The van alone does not protect the parcel — the container does.

L2TP also has a second version. L2TPv3, defined in RFC 3931 in 2005, is not limited to PPP. It can carry other Layer 2 traffic, such as Ethernet and Frame Relay, over an IP network, which made it useful for ISPs linking sites together.

What is L2TP/IPsec?

L2TP/IPsec is L2TP traffic protected by IPsec, standardized in RFC 3193 in November 2001. IPsec supplies the encryption, authentication and integrity checks that L2TP lacks, so the combination can work as a real VPN protocol.

The setup follows a strict order. First, the two sides negotiate an IPsec security association, usually with IKE (Internet Key Exchange) over UDP port 500. Then they establish ESP, the Encapsulating Security Payload, in transport mode. Only then is the L2TP tunnel built inside that encrypted channel.

RFC 3193 is blunt about why this order matters. It states that L2TP and PPP authentication do not meet the security requirements for a VPN on their own, and it makes ESP mandatory for both control and data packets. If the two sides cannot agree on encryption, the packet is dropped rather than sent in the clear.

Microsoft's own documentation describes the same layering: L2TP uses IPsec in transport mode for encryption, and the resulting message is wrapped with an ESP header and trailer plus an authentication trailer that provides message integrity.

L2TP vs WireGuard, IKEv2 and OpenVPN: what's the difference?

The main difference is age and design. L2TP/IPsec is a 1999 protocol built from two older systems, while WireGuard, IKEv2 and OpenVPN were designed with modern encryption and simpler setups. L2TP/IPsec also wraps every packet twice, which costs speed.

ProtocolEncrypts by itself?Runs overSpeedVerdict in 2026
L2TP (bare)NoUDP 1701SlowNever use alone
L2TP/IPsecYes, via IPsecUDP 500, 4500, 1701; ESPSlow, double encapsulationLegacy, keep only for old clients
WireGuardYesUDP, one portFastBest choice for most people
IKEv2/IPsecYesUDP 500, 4500; ESPFastBest for mobile devices
OpenVPNYesUDP or TCP 1194GoodFlexible, widely supported
PPTPWeak, brokenTCP 1723FastDo not use

WireGuard wins on simplicity: one UDP port, a small codebase that is easier to audit, and very fast reconnections when you move between networks. IKEv2 wins on mobile because it handles network changes gracefully, which is why it is built into iOS and Android.

OpenVPN is the flexible veteran. It runs over TCP or UDP, works through most firewalls, and is supported by almost every VPN provider and router. It is slower to set up than WireGuard, but it remains a solid choice when WireGuard is not available.

PPTP, the protocol L2TP replaced, should not be used at all. Its encryption has well-documented weaknesses, and every modern guide treats it as broken. If you see PPTP in a menu, treat it as a warning sign, not an option.

Ports, NAT and firewalls: why L2TP often fails to connect

L2TP/IPsec needs UDP ports 500, 4500 and 1701 open, plus IP protocol 50 (ESP), all at the same time. That combination is the protocol's biggest practical weakness, because many networks block one or more of them.

UDP 500 carries the IKE negotiation that sets up the encryption keys. UDP 4500 handles NAT traversal, letting the connection work when your device sits behind a home router. UDP 1701 carries the L2TP tunnel itself, and ESP carries the encrypted payload.

On a home network you control, this usually works. On hotel Wi-Fi, office networks and public hotspots, it often does not. A firewall that blocks ESP, or a NAT device that mishandles IPsec, will leave the connection hanging or failing with a vague error.

That is one reason VPN providers moved on. Supporting three ports plus a special IP protocol is far harder than supporting WireGuard's single UDP port. If L2TP fails on one network and works on another, the network — not your password — is usually the cause. You can check whether your connection is leaking your real address with our free WebRTC leak test.

Is L2TP secure in 2026?

L2TP/IPsec can be secure when it is configured correctly, but it has real weaknesses that modern protocols do not. The biggest is that it relies on IKEv1, an older key-exchange protocol that the IETF deprecated in RFC 9395 in April 2023.

IKEv1 has known issues, including weaker negotiation and a history of implementation flaws. Cisco's own documentation notes that L2TP over IPsec supports only IKEv1, not the newer IKEv2. That alone is a reason to prefer IKEv2/IPsec for new deployments.

There is also the pre-shared key problem. Many L2TP/IPsec setups use a single shared secret for all users, and that secret is often weak, reused or published in setup guides. If an attacker learns it, they can impersonate the server. Strong, unique pre-shared keys — or better, certificate-based authentication — are essential.

Finally, Microsoft has deprecated L2TP and PPTP in Windows Server. New RRAS setups in Windows Server 2025 do not accept L2TP connections by default, although administrators can still enable them. When the platform vendor stops shipping a protocol by default, that is a clear signal about its future.

Never run bare L2TPIf a setup guide tells you to use L2TP without IPsec, stop. Bare L2TP sends your traffic with no encryption at all, and anyone on the network path can read it.

When should you still use L2TP?

You should still use L2TP only when an old system gives you no better option. That usually means a legacy corporate VPN, an older router, or a device whose firmware only supports L2TP/IPsec and PPTP.

In that situation, use L2TP/IPsec — never bare L2TP — with a strong, unique pre-shared key, AES encryption, and a firewall rule that drops UDP 1701 traffic arriving outside an IPsec security association. Treat it as a temporary bridge, not a long-term plan.

For everything else, choose WireGuard or IKEv2. Both are built into modern operating systems, both are faster, and both are actively maintained. Most VPN providers now offer them by default, and switching usually takes only a few minutes in the app settings.

If you are buying a VPN mainly to watch UK television while traveling, our guide to the best VPN for BBC iPlayer compares providers that work with modern protocols and reliable UK servers.

If you want to check the basics of your own setup, our guide to securing your Wi-Fi covers the router settings that matter most.

Which protocol should you choose?New setupWireGuardfast, simple, auditedMobile, switching networksIKEv2/IPsecreconnects cleanlyOld system onlyL2TP/IPsectemporary, with IPsec onlyNever use bare L2TP or PPTPBare L2TP has no encryption. PPTP encryption is broken.
Choose WireGuard or IKEv2 for new setups and keep L2TP only for legacy systems. Illustration by Cysoro.

The bottom line

L2TP is a tunneling protocol from 1999 that builds a path for your data but does not protect it. Paired with IPsec it can still work, but it is slow, hard to get through firewalls, and built on the deprecated IKEv1.

Unless an old system forces your hand, pick WireGuard or IKEv2 instead. You will get faster speeds, simpler setup and a protocol that is still actively maintained. Check your current connection first with our free what-is-my-IP tool to see what address and location your VPN is actually showing.

Frequently asked questions

What does L2TP stand for?

L2TP stands for Layer 2 Tunneling Protocol. The official name in RFC 2661 is spelled Layer Two Tunneling Protocol. It tunnels a Point-to-Point Protocol session across an IP network.

Is L2TP secure on its own?

No. L2TP on its own provides no encryption or confidentiality for your data. It only builds the tunnel. You must pair it with IPsec, which supplies the encryption, authentication and integrity checks.

What is the difference between L2TP and L2TP/IPsec?

L2TP is the tunneling part, and IPsec is the encryption part. L2TP/IPsec combines the two: IPsec encrypts the traffic first, and L2TP carries the PPP session inside that encrypted channel.

What ports does L2TP use?

L2TP itself uses UDP port 1701. L2TP/IPsec also needs UDP port 500 for IKE key exchange, UDP port 4500 for NAT traversal, and IP protocol 50 for ESP, the encrypted payload.

Is L2TP still used in 2026?

Yes, but mainly in older corporate VPN setups, ISP infrastructure and routers that have not been updated. New VPN services rarely offer it, and Microsoft has deprecated L2TP and PPTP in Windows Server.

What should I use instead of L2TP?

For most people, WireGuard is the best modern choice because it is fast, simple and audited. IKEv2 is a good alternative, especially on mobile devices that switch between Wi-Fi and cellular data.

Can L2TP work through NAT?

Yes, with NAT traversal over UDP port 4500, but it is fragile. L2TP/IPsec needs several ports and protocols open at once, so some hotel, office and public Wi-Fi networks block it.

What is L2TPv3?

L2TPv3 is the 2005 revision defined in RFC 3931. Unlike the original L2TP, which only carries PPP sessions, L2TPv3 can carry other Layer 2 traffic such as Ethernet and Frame Relay over an IP network.

Sources

  1. Wikipedia — Layer 2 Tunneling Protocol
  2. Microsoft Learn — VPN Tunneling Protocols
  3. NordLayer — L2TP Protocol: What It Is, Ports, and Security Explained
  4. Check Point — Layer 2 Tunnel Protocol (L2TP)
  5. Windscribe — What Is L2TP? How It Works and Why It's Being Retired
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against RFC 2661, RFC 3193 and RFC 3931, Microsoft's VPN tunneling documentation and current vendor guidance on L2TP/IPsec.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free