CyberHunter
Local dataset, no network
// Directory & authentication

Port 5868: Diameter over TLS/TCP

Port 5868 is assigned by IANA to diameters (Diameter over TLS/TCP).

5868

How diameters works

Directory & authentication
userdirectory#%&@!x9response? userdirectory#%&@!x9response?

The client proves who it is on port 5868 and gets an answer (or a ticket) it can use with other services. Everything is encrypted: someone on the path only sees unreadable bytes.

Transport
TCP · SCTP
Exposure risk
not rated depends on the program listening
Encryption
EncryptedTLS or built-in crypto
IANA status
Assigned1 registered service
Range
Registered (1024-49151)
01 Security

Is port 5868 dangerous?

We have no specific security note for port 5868. Its risk depends on the program actually listening on it. General advice for directory & authentication services:

  • Keep directory and authentication services on internal networks.
  • Require signing or TLS and disable anonymous queries.
  • Monitor authentication failures for spraying and brute force.
02 Registry

IANA registry entries for port 5868

ServicePortTransportDescriptionReferenceUpdated
diameters 5868 TCP, SCTP Diameter over TLS/TCP RFC 6733 -
-5868-Reserved--

// source: IANA service name and port number registry

03 Check it

Which program uses port 5868, and is it reachable?

Linux

sudo ss -ltnup 'sport = :5868'      # process listening on 5868
sudo lsof -nP -i :5868

macOS

sudo lsof -nP -i :5868

Windows (PowerShell)

Get-NetTCPConnection -LocalPort 5868 -State Listen | Select LocalAddress, OwningProcess
Get-NetUDPEndpoint -LocalPort 5868
netstat -ano | findstr :5868

From another machine

nmap -p 5868 -sV <host>
nc -zv <host> 5868

Block it in the firewall

sudo ufw deny 5868/tcp                                         # Linux (ufw)
New-NetFirewallRule -DisplayName "Block 5868" -Direction Inbound -LocalPort 5868 -Protocol TCP -Action Block  # Windows
04 FAQ
What is port 5868 used for?

Port 5868 is assigned by IANA to diameters (Diameter over TLS/TCP).

Is port 5868 TCP or UDP?

Port 5868 is registered for TCP and SCTP.

Is it safe to open port 5868?

It depends on the program that listens on it. Open it only for a service you know and only to the networks that need it. Keep directory and authentication services on internal networks.

How do I check if port 5868 is open?

On Linux run "ss -ltnup 'sport = :5868'", on macOS "lsof -nP -i :5868", and on Windows "netstat -ano | findstr :5868" to see the local process. From another machine, "nmap -p 5868 <host>" shows whether it is reachable.

05 Related

Latest vulnerability news

All news