Port 500: IKE (IPsec)

Port 500 (UDP) is used by IKE (IPsec). Internet Key Exchange sets up IPsec VPN tunnels.

500Port
UDPProtocol
isakmpIANA service name
VPN & proxyCategory

Port range

500 is a well-known (system) port (range 0–1023). On Linux and macOS, binding to it traditionally needs root or the CAP_NET_BIND_SERVICE capability.

Security

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

Open port 500 in a firewall

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

Check if port 500 is open

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

Other vpn & proxy ports

Frequently asked questions

What is port 500 used for?
IKE (IPsec). Internet Key Exchange sets up IPsec VPN tunnels.
Is port 500 TCP or UDP?
UDP.