Skip to content

Port reference

Port 500 (UDP) – IKE/ISAKMP

Internet Key Exchange — negotiates security associations and keys for IPsec VPN tunnels.

udpWell-knownCommonly attacked

Default state

Open on VPN gateways, firewalls, and routers terminating IPsec tunnels. Frequently exposed to the internet by design.

Common attacks

  • Aggressive-mode PSK hash capture and offline cracking
  • VPN gateway fingerprinting and enumeration (ike-scan)
  • IKE DoS / resource exhaustion

Hardening

  • Disable IKE aggressive mode; use main mode or IKEv2
  • Prefer certificate auth over pre-shared keys, or use long random PSKs
  • Restrict which peer IPs may initiate IKE where possible
  • Patch VPN firmware promptly and enable DPD/rate limiting

nmap snippet

nmap -sU -p500 --script ike-version <target>

Replace <target> with the host or range you're authorized to scan.

What runs on port 500?

Port 500 carries IKE (Internet Key Exchange) running over ISAKMP, the control protocol that sets up IPsec VPN tunnels. It negotiates the cipher suite, authenticates the peers, and derives the keys for the security association before encrypted traffic flows. When NAT is in the path, IKE typically migrates to UDP 4500 for NAT traversal. Port 500 is found on VPN concentrators, firewalls, and routers.

Why it matters for security

Because IKE endpoints are usually internet-facing by design, port 500 is a standing target. The protocol leaks gateway details that help attackers fingerprint the vendor and software version. The biggest classic weakness is IKE aggressive mode with pre-shared keys: the gateway returns a PSK-derived hash that an attacker can capture and crack offline, recovering the VPN secret. IKE daemons have also suffered DoS and memory-handling bugs over the years.

How it's attacked

Attackers use tools like ike-scan to enumerate gateways, identify the vendor via fingerprints, and test for aggressive mode. If aggressive mode is enabled, they capture the PSK hash and run offline cracking against it. Floods of malformed or half-open IKE handshakes are used for DoS, and unpatched VPN appliances are probed for known firmware CVEs.

Hardening checklist

Disable aggressive mode and require main mode or, preferably, IKEv2. Use certificate-based authentication instead of PSKs; if PSKs are unavoidable, make them long and random. Restrict accepted peer IPs where the topology allows, enable dead-peer detection and rate limiting to blunt DoS, and patch VPN firmware promptly. Use the nmap snippet above to fingerprint IKE on gateways you are authorized to test.

Related ports

Frequently asked questions

What is port 500 used for?
Port 500 carries IKE/ISAKMP, the protocol that negotiates keys and security associations for IPsec VPNs. NAT traversal then often moves traffic to UDP 4500.
Why is IKE aggressive mode risky?
Aggressive mode sends a hash of the pre-shared key in a way an attacker can capture and crack offline, so it should be disabled in favor of main mode or IKEv2.