Free tech learning for everyone, from basics to pro

Port 123: NTP (Network Time Protocol)

What port 123 (UDP) does, the security risks of leaving it open, and how to secure and test it.

Port123
TransportUDP
ServiceNetwork Time Protocol (NTP)
EncryptedNo (NTS adds security)

What is port 123?

NTP keeps the clocks of computers and network devices in sync. Accurate time matters for logs, certificates and Kerberos sign-ins.

Common uses

  • Synchronising servers, switches, routers and firewalls
  • Making log timestamps match across systems for investigations

Security risks

  • Misconfigured NTP servers abused for DDoS amplification (the old monlist command)
  • Wrong time breaking certificate checks and Kerberos logons

How to secure port 123

  • Point devices at a few trusted internal or well-known time sources
  • Disable monlist and restrict queries on any NTP server you run
  • Use NTP authentication or Network Time Security where supported

How to check if port 123 is open

WhereCommand
Scan from another machinenmap -sU -p 123 <host>
Linux (what is listening)sudo ss -tulpn | grep :123
Windows (what is listening)netstat -ano | findstr :123

Only scan systems you own or have permission to test.

Related ports

Frequently asked questions

What is port 123 used for?

Port 123 (UDP) is used by Network Time Protocol (NTP). NTP keeps the clocks of computers and network devices in sync.

Is it safe to open port 123?

Only if the service needs to be reached and is configured securely. Point devices at a few trusted internal or well-known time sources.

How do I check if port 123 is open?

From another computer, run nmap -p 123 followed by the host address with -sU for UDP. On the server itself, ss -tulpn on Linux or netstat -ano on Windows shows whether anything is listening on 123.

Learn more: TCP, UDP and ports explained and firewall basics.

Get free updates by email

New notes, tools, CCNA and Security+ tips and important security news from FM TecHub, explained simply. Free, about twice a month. Unsubscribe anytime; see our privacy policy.

PortServiceStatus
SMTP/25Email updatesup

Free · no spam · past emails · powered by Buttondown