Port 4500: IPsec NAT traversal

Port 4500 (UDP) is used by IPsec NAT traversal. IPsec encapsulated in UDP when a NAT sits between peers.

4500Port
UDPProtocol
ipsec-nat-tIANA service name
VPN & proxyCategory

Port range

4500 is a registered port (range 1024–49151). Any user can bind to it; IANA records which service registered the number.

Security

Only open port 4500 to the hosts that need it. Prefer the encrypted variant of the protocol where one exists.

Open port 4500 in a firewall

ufw         sudo ufw allow 4500/udp
iptables    sudo iptables -A INPUT -p udp --dport 4500 -j ACCEPT
firewalld   sudo firewall-cmd --permanent --add-port=4500/udp
Windows     New-NetFirewallRule -DisplayName "IPsec NAT traversal 4500" -Direction Inbound -Protocol UDP -LocalPort 4500 -Action Allow

Check if port 4500 is open

nc -vzu example.com 4500   # UDP checks are unreliable: no reply ≠ closed
sudo ss -tulpn | grep ':4500 '   # what is listening locally (Linux)

Other vpn & proxy ports

Frequently asked questions

What is port 4500 used for?
IPsec NAT traversal. IPsec encapsulated in UDP when a NAT sits between peers.
Is port 4500 TCP or UDP?
UDP.