Port 1723 (PPTP)

Port 1723 is the control port of PPTP (Point-to-Point Tunneling Protocol), one of the older VPN protocols.

Key facts

Port
1723
Protocols
TCP
Range
Registered port, 1024-49151
IANA service name
pptp

IANA assigns ports in this range to services on request, under RFC 6335.

About port 1723

Port 1723 is the control port of PPTP (Point-to-Point Tunneling Protocol), one of the older VPN protocols. According to RFC 2637, the client opens a TCP connection to port 1723 to set up and manage the tunnel, and the data itself travels over an enhanced version of GRE, a separate protocol that has no ports.

In the IANA port registry, port 1723 is registered for the pptp service, with a reference to RFC 2637. PPTP is considered an outdated protocol today, and this page is mainly for those who maintain an existing connection or are planning a move to a newer protocol.

What port 1723 is used for

  • Older VPN connections: some offices still run an old PPTP server, on a router or a Windows server.
  • Network equipment: older routers support PPTP as a basic VPN option.
  • Moving to a newer protocol: during the transition, PPTP sometimes runs alongside a modern protocol until all users have moved.

Port 1723 in the firewall

A PPTP connection needs two firewall permissions: TCP port 1723 and the GRE protocol. While the connection is still needed, allow it only from the addresses that need it:

  • UFW: ufw allow from 203.0.113.10 to any port 1723 proto tcp and ufw allow from 203.0.113.10 to any proto gre
  • firewalld: firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address="203.0.113.10" port port="1723" protocol="tcp" accept' and firewall-cmd --permanent --add-protocol=gre

When nobody uses PPTP anymore, close port 1723 and remove the GRE permission.

Risks and security

The authentication and encryption methods PPTP uses are old, and are no longer considered strong enough to protect sensitive traffic. The recommendation is simple:

  • Don't set up a new PPTP server.
  • Microsoft has announced that future versions of Windows Server will no longer include remote access over PPTP and L2TP, and recommends moving to IKEv2 or SSTP.
  • When an existing connection is still in use, restrict port 1723 to known addresses and set strong passwords for all users.
  • Plan a move to WireGuard, OpenVPN or IKEv2, and close port 1723 when the move is complete.

Commands to check and configure

  • ss -tlnp | grep ':1723 '

    Checks whether a PPTP service is listening on port 1723 on the server, and which process it is (requires root privileges).

  • tcpdump -ni any 'tcp port 1723 or ip proto gre'

    Shows the control traffic on port 1723 and the GRE traffic, to check whether users are still connecting (requires root privileges).

  • nc -zv vpn.example.com 1723

    Checks whether port 1723 on the VPN server is open and reachable.

  • Test-NetConnection vpn.example.com -Port 1723

    Checks from a Windows computer whether port 1723 on the server is open and reachable.

  • Get-VpnConnection

    Shows the VPN connections set up on a Windows computer in PowerShell, including the tunnel type (TunnelType).

  • firewall-cmd --permanent --add-protocol=gre

    Allows the GRE protocol, which carries the PPTP data, in firewalld. Then run firewall-cmd --reload.

  • ufw delete allow 1723/tcp

    Deletes an earlier UFW rule that opened port 1723 to everyone, for example when the move to a new protocol is complete.

Port 1723 in the IANA registry

Port Protocol Service IANA registry description
1723 TCP pptp pptp
1723 UDP pptp pptp

Data source: IANA Service Name and Transport Protocol Port Number Registry (opens in a new tab)

Port 1723 FAQ

Why does my PPTP connection get stuck at the authentication stage?

In most cases port 1723 is open, but the GRE protocol is blocked by the firewall or by a router along the way. The connection to port 1723 succeeds, but no data gets through. Allow GRE in the firewall, and check that the router has PPTP Passthrough enabled, the option that passes PPTP connections through the router.

Can I keep using PPTP?

Yes, but PPTP is not recommended for sensitive traffic. When an existing connection is still needed, restrict it to known addresses and plan a move to a modern protocol. For a new setup, choose WireGuard, OpenVPN or IKEv2 from the start.

What should I replace PPTP with?

WireGuard is fast and simple to configure, OpenVPN is flexible and works on almost any network, and IKEv2 is built into most operating systems. The WireGuard commands page has commands for setting up and testing a new connection.

Does PPTP use only port 1723?

No. Port 1723 is used to control the connection, and the data itself travels over the GRE protocol, which has no port number. That's why you need to allow both in the firewall.

Shopping cart

Your cart is emptyYou can start with one of our popular plans.

Site search

Accessibility

Text size
100%
Accessibility statement