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
- 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.
- 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.
- 2001
L2TP inside IPsec
RFC 3193 puts L2TP inside IPsec ESP, because L2TP defines no protection of its own.
- 2008
SSTP
Windows Server 2008 and Windows Vista SP1 add SSTP: PPP inside HTTPS on TCP 443, made to pass firewalls and web proxies.
- 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.
- 2016
Apple drops PPTP
iOS 10 and macOS Sierra remove PPTP from VPN profiles on upgrade.
- 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
Add-VpnConnection -Name "Office" -ServerAddress "vpn.example.com" -TunnelType Sstp -AuthenticationMethod MSChapv2 -EncryptionLevel RequiredThe address must match the name in the server's certificate, and the certificate's root must be trusted on this computer.
Get-VpnConnection | Format-Table Name, ServerAddress, TunnelTypePptp in the TunnelType column is the one to replace first.
- Windows: the client speaks all three, plus IKEv2, in Settings or through
Add-VpnConnection -TunnelTypewithPptp,L2tporSstp. 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
- RFC 2637: Point-to-Point Tunneling Protocol (PPTP)
- RFC 3193: Securing L2TP using IPsec
- Microsoft Open Specifications: MS-SSTP overview
- Microsoft Security Advisory 2743314: unencapsulated MS-CHAP v2
- Schneier and Mudge: Cryptanalysis of Microsoft's PPTP Authentication Extensions
- Microsoft Learn: configure VPN protocols in Routing and Remote Access
- Microsoft: L2TP and PPTP removal from Windows Server
- Roskomsvoboda: VPN in Russia, from blocking services to blocking protocols