1701Port
UDPProtocol
l2tpIANA service nameVPN & proxyCategory
Port range
1701 is a registered port (range 1024–49151). Any user can bind to it; IANA records which service registered the number.
Security
Only open port 1701 to the hosts that need it. Prefer the encrypted variant of the protocol where one exists.
Open port 1701 in a firewall
ufw sudo ufw allow 1701/udp iptables sudo iptables -A INPUT -p udp --dport 1701 -j ACCEPT firewalld sudo firewall-cmd --permanent --add-port=1701/udp Windows New-NetFirewallRule -DisplayName "L2TP 1701" -Direction Inbound -Protocol UDP -LocalPort 1701 -Action Allow
Check if port 1701 is open
nc -vzu example.com 1701 # UDP checks are unreliable: no reply ≠ closed sudo ss -tulpn | grep ':1701 ' # what is listening locally (Linux)