L2TP vs PPTP vs SSTP: how the old VPN protocols differ

PPTP, L2TP/IPsec and SSTP are three VPN protocols built into Windows, and all of them carry PPP: PPTP over TCP 1723 and GRE, L2TP over UDP inside IPsec, SSTP inside HTTPS on TCP 443. PPTP's usual MS-CHAPv2 login can be cracked whatever the password, L2TP/IPsec is sound but old and easy to spot, and SSTP looks like HTTPS but has a built-in client only in Windows. Microsoft deprecated PPTP and L2TP in Windows Server in 2024 and points to IKEv2 or SSTP instead.

Updated

On this page

Facts

What it is

Three VPN tunnels that carry PPP, built into Windows

Since, by

PPTP and L2TP 1999; SSTP 2008, Microsoft

Transport

PPTP: TCP 1723 and GRE; L2TP/IPsec: UDP 500, 4500; SSTP: TCP 443

Encryption

PPTP: MPPE (RC4); L2TP: IPsec ESP; SSTP: TLS

To the network it looks like

PPTP and L2TP: a plain VPN; SSTP: a TLS session

Usual port

TCP 1723; UDP 1701, 500, 4500; TCP 443

Comes as

System VPN settings: server, user name, password, shared key

License

Microsoft specs (PPTP, SSTP), IETF standard (L2TP)

In Veli

Not supported

Versions and history

  1. 1998

    PPTP is taken apart

    Bruce Schneier and Mudge break the login and RC4 encryption of Microsoft's PPTP; their 1999 follow-up finds MS-CHAPv2 still only as strong as the password.

  2. 1999

    PPTP and L2TP published

    RFC 2637 (July, Informational) describes PPTP. RFC 2661 (August) makes L2TP an IETF standard that carries PPP over UDP 1701.

  3. 2001

    L2TP inside IPsec

    RFC 3193 puts L2TP inside IPsec ESP, because L2TP defines no protection of its own.

  4. 2008

    SSTP

    Windows Server 2008 and Windows Vista SP1 add SSTP: PPP inside HTTPS on TCP 443, made to pass firewalls and web proxies.

  5. 2012

    MS-CHAPv2 cracked

    At DEF CON 20 in July, Moxie Marlinspike and David Hulton release tools to decrypt PPTP sessions; Microsoft publishes advisory 2743314 on 20 August.

  6. 2016

    Apple drops PPTP

    iOS 10 and macOS Sierra remove PPTP from VPN profiles on upgrade.

  7. 2024

    Microsoft deprecates PPTP and L2TP

    Announced on 8 October 2024. New Windows Server 2025 setups refuse them unless enabled, and on 30 October 2026 Microsoft announced their removal from the next Windows Server.

How PPTP, L2TP and SSTP work

All three are carriers for PPP, the protocol of dial-up modems. PPP does the login (usually MS-CHAPv2), hands out the inner IP address and frames the packets; the VPN protocol only decides how those PPP frames cross the internet. That is why the three look alike in the Windows settings: a server, a user name and a password, sometimes a shared key.

PPTP (RFC 2637) opens a control connection to TCP port 1723 and sends the PPP frames in an enhanced GRE, IP protocol 47. The RFC changes nothing in PPP itself. Encryption comes from MPPE (RFC 3078): the RC4 stream cipher with 40-, 56- or 128-bit keys derived from the login.

L2TP (RFC 2661) carries PPP over UDP port 1701 and protects nothing: RFC 3193 says L2TP defines no tunnel protection and wraps it in IPsec ESP, with keys agreed by IKEv1. A packet therefore travels as IP inside PPP, inside L2TP, inside UDP, inside ESP, and behind NAT inside UDP 4500 once more.

SSTP connects to TCP port 443 and runs an ordinary TLS handshake. Inside it the client sends one HTTP request: method SSTP_DUPLEX_POST, path /sra_{BA195980-CD49-458b-9E23-C84EE0ADCD75}/, and a Content-Length of 18446744073709551615, the largest 64-bit number. The server answers 200, and from then on the connection carries SSTP control packets and PPP frames. So that a man in the middle cannot relay the PPP login, SSTP ties the keys from PPP authentication to the TLS session; the specification calls this crypto binding.

L2TP vs PPTP vs SSTP side by side

  • Carries PPP in

    PPTPGRE

    L2TP/IPsecL2TP inside IPsec ESP

    SSTPHTTPS

  • Ports

    PPTPTCP 1723 and IP protocol 47

    L2TP/IPsecUDP 500 and 4500; UDP 1701 inside IPsec

    SSTPTCP 443

  • Encryption

    PPTPMPPE: RC4, up to 128 bits

    L2TP/IPsecIPsec ESP: 3DES or AES

    SSTPTLS

  • User login

    PPTPMS-CHAPv2, before encryption starts

    L2TP/IPsecMS-CHAPv2 or EAP, after IPsec is up

    SSTPMS-CHAPv2 or EAP, after TLS is up

  • Certificates

    PPTPNone

    L2TP/IPsecShared key or machine certificates

    SSTPServer certificate, its root trusted on the client

  • NAT and web proxies

    PPTPNAT must pass GRE; no web proxy

    L2TP/IPsecThrough NAT over UDP 4500; no web proxy

    SSTPThrough NAT and most web proxies

  • Built in

    PPTPWindows; removed in iOS 10, macOS Sierra and new Android VPNs

    L2TP/IPsecWindows, macOS, iOS; not for new Android VPNs

    SSTPWindows only

  • Microsoft's status

    PPTPDeprecated in Windows Server, removal announced

    L2TP/IPsecDeprecated in Windows Server, removal announced

    SSTPRecommended, with IKEv2

Why PPTP is broken

The trouble is the login. In MS-CHAPv2 (RFC 2759) the client answers the server's challenge with three DES encryptions of the same 8 bytes, each keyed with 7 bytes of the password's hash. The hash is 16 bytes, padded with five zeros to 21, so the third key has only two unknown bytes and falls at once; the first two are plain 56-bit DES keys. The length of the password does not matter. In July 2012 at DEF CON 20, Moxie Marlinspike and David Hulton released tools that turn a captured handshake into a single DES key search and promised to decrypt any PPTP session with a 100% success rate.

MPPE keys come from the same password hash, so whoever recovers it can also decrypt the recorded traffic. Schneier and Mudge had noted back in 1999 that these keys carry no more entropy than the password.

Microsoft answered with Security Advisory 2743314 on 20 August 2012: not a bug to patch but a weakness of the protocol. Its advice is to wrap MS-CHAPv2 in PEAP or to move to L2TP, IKEv2 or SSTP. The advisory limits the problem to PPTP with bare MS-CHAPv2: inside IPsec or TLS the same login travels encrypted. Apple removed PPTP in iOS 10 and macOS Sierra, and Android's current settings no longer offer it for a new VPN.

Where they still work

Windows: PowerShell, add an SSTP connection
Add-VpnConnection -Name "Office" -ServerAddress "vpn.example.com" -TunnelType Sstp -AuthenticationMethod MSChapv2 -EncryptionLevel Required

The address must match the name in the server's certificate, and the certificate's root must be trusted on this computer.

Windows: PowerShell, which type your connections use
Get-VpnConnection | Format-Table Name, ServerAddress, TunnelType

Pptp in the TunnelType column is the one to replace first.

  • Windows: the client speaks all three, plus IKEv2, in Settings or through Add-VpnConnection -TunnelType with Pptp, L2tp or Sstp. Microsoft states that its server-side changes do not affect Windows client systems.
  • Windows Server: RRAS accepts PPTP, L2TP, SSTP and IKEv2. Since Windows Server 2025, new setups refuse PPTP and L2TP until an admin enables them; Windows Server 2025 is the last long-term release with them, and the Windows Server 2028 preview drops them.
  • macOS, iPhone, iPad: L2TP/IPsec with an MS-CHAPv2 password and a shared secret; PPTP is gone since iOS 10 and macOS Sierra; SSTP is not among the system's VPN types.
  • Android: the system settings let a new VPN be only IKEv2/IPsec; PPTP and L2TP are not offered.
  • Linux: SSTP through sstp-client, which runs on pppd, and the NetworkManager-sstp plugin. Outside Windows, SoftEther VPN can act as an SSTP and L2TP/IPsec server; its SSTP is a clone of Microsoft's.

What a filter sees

PPTP is the easiest to spot: TCP to port 1723 with readable control messages, then GRE, a protocol a firewall can drop by its number. Microsoft's own SSTP specification names GRE blocking by internet providers as a common problem for PPTP.

L2TP/IPsec shows IKEv1 on UDP 500, then ESP or UDP 4500: a filter sees an IPsec VPN, though not what is inside. Bare L2TP without IPsec, which some servers still accept, sends its control messages and PPP in the clear on UDP 1701.

SSTP is TLS on port 443, and a passive observer sees a TLS session to some server. The request inside is fixed by the specification and the same on every Windows server, so anyone who connects to the server can send SSTP_DUPLEX_POST to that path and see whether it answers like an SSTP server.

The published evidence is from Russia. Roskomsvoboda's report of October 2023 quotes tests by the author of GoodbyeDPI from August 2023: on Tele2 mobile in Saint Petersburg, L2TP control messages to UDP 1701 never reached the server, PPTP connections were cut right after the server's Start-Control-Connection-Reply, and IPsec was dropped after a few handshake packets; on an MTS landline in Kuzbass L2TP was blocked, while PPTP and IPsec passed. These are one person's tests, not a controlled measurement. We know of no published measurement of SSTP blocking.

Strengths and weaknesses

Strengths

  • Built into Windows: no app to install, set up in Settings or with one PowerShell command.
  • L2TP/IPsec is also built into macOS, iPhone and iPad.
  • SSTP runs over TCP 443 and passes NAT and most web proxies, which is what Microsoft designed it for.
  • SoftEther VPN can serve L2TP/IPsec and SSTP from Linux for devices that know nothing newer.

Weaknesses

  • PPTP's MS-CHAPv2 login can be cracked and its traffic decrypted; Apple and Android have removed it.
  • L2TP/IPsec wraps every packet twice and relies on IKEv1, which RFC 9395 deprecated in 2023.
  • SSTP has a built-in client only in Windows, and all traffic rides one TCP connection, so a lost packet stalls everything behind it.
  • Microsoft is removing PPTP and L2TP from the next Windows Server.
  • PPTP and L2TP are easy for filters to recognise and block.

Sources

How we write and check

In Veli

Veli doesn't connect PPTP, L2TP or SSTP

None of the three is in Veli; they stay with the built-in VPN settings of Windows and other systems. Veli opens VLESS, VMess, Trojan, Shadowsocks, Hysteria2, TUIC, WireGuard, AmneziaWG and OpenVPN, the last one on Windows and Linux.

If you run the server yourself, the app's “Own server” can install WireGuard, AmneziaWG, OpenVPN, Shadowsocks or VLESS Reality on a VPS.

Questions

Which is better: L2TP, PPTP or SSTP?

For anything new, none of them; Microsoft itself recommends IKEv2 or SSTP. Between the three, SSTP and L2TP/IPsec are acceptable and PPTP is not, because its login can be cracked.

Is PPTP still safe to use?

No. Its usual MS-CHAPv2 login comes down to one DES key search, and Microsoft's advisory 2743314 (2012) says to wrap it in PEAP or move to L2TP, IKEv2 or SSTP.

What ports do L2TP, PPTP and SSTP use?

PPTP: TCP 1723 plus GRE (IP protocol 47). L2TP/IPsec: UDP 500 and 4500, with L2TP's UDP 1701 inside IPsec. SSTP: TCP 443.

Is SSTP better than L2TP/IPsec?

SSTP passes networks that allow only HTTPS and needs no shared key, but it is built only into Windows and suffers more from packet loss, since everything rides one TCP connection. L2TP/IPsec also works on Apple devices.

Is there an SSTP client for Linux, Mac or Android?

Linux has sstp-client with a NetworkManager plugin. macOS, iOS and Android have no SSTP in the system; their built-in types are IKEv2 and, on Apple devices, L2TP/IPsec.

Is Windows 11 removing PPTP and L2TP?

Not announced for Windows 11. The deprecation (October 2024) and the removal (announced October 2026) concern the RRAS server in Windows Server, and Microsoft says the change does not affect Windows client systems.