- Require authentication and TLS on brokers and coordination services.
- Restrict clients by network and per-topic or per-queue permissions.
- Remove default accounts.
Port 5671: amqp protocol over TLS/SSL
Port 5671 is assigned by IANA to amqps (amqp protocol over TLS/SSL).
How amqps works
Messaging & queuesProducers publish messages into a queue on port 5671; consumers pick them up in order, at their own pace. Everything is encrypted: someone on the path only sees unreadable bytes.
- Transport
- TCP · UDP
- Exposure risk
- not rated depends on the program listening
- Encryption
- EncryptedTLS or built-in crypto
- IANA status
- Assigned1 registered service
- Range
- Registered (1024-49151)
- Category
- Messaging & queues
Is port 5671 dangerous?
We have no specific security note for port 5671. Its risk depends on the program actually listening on it. General advice for messaging & queues services:
IANA registry entries for port 5671
| Service | Port | Transport | Description | Reference | Updated |
|---|---|---|---|---|---|
| amqps | 5671 | TCP, UDP | amqp protocol over TLS/SSL | - | 2008-03-26 |
// source: IANA service name and port number registry
Which program uses port 5671, and is it reachable?
Linux
sudo ss -ltnup 'sport = :5671' # process listening on 5671
sudo lsof -nP -i :5671macOS
sudo lsof -nP -i :5671
Windows (PowerShell)
Get-NetTCPConnection -LocalPort 5671 -State Listen | Select LocalAddress, OwningProcess Get-NetUDPEndpoint -LocalPort 5671 netstat -ano | findstr :5671
From another machine
nmap -p 5671 -sV <host> sudo nmap -sU -p 5671 <host> nc -zv <host> 5671
Block it in the firewall
sudo ufw deny 5671/tcp # Linux (ufw) New-NetFirewallRule -DisplayName "Block 5671" -Direction Inbound -LocalPort 5671 -Protocol TCP -Action Block # Windows
What is port 5671 used for?
Port 5671 is assigned by IANA to amqps (amqp protocol over TLS/SSL).
Is port 5671 TCP or UDP?
Port 5671 is registered for TCP and UDP.
Is it safe to open port 5671?
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. Require authentication and TLS on brokers and coordination services.
How do I check if port 5671 is open?
On Linux run "ss -ltnup 'sport = :5671'", on macOS "lsof -nP -i :5671", and on Windows "netstat -ano | findstr :5671" to see the local process. From another machine, "nmap -p 5671 <host>" shows whether it is reachable.