Skip to content
statance
MenuClose
← All ports

Port 15672: RabbitMQ management UI

High risk

Port 15672 is the RabbitMQ management plugin, which provides the web interface and HTTP API for managing queues, users and policies. It should not be reachable from the public internet.

Port
15672
Protocol
TCP
Service
RabbitMQ management UI
Expose to internet?
No

Is port 15672 safe to open?

The management API can create users, read messages and reconfigure the broker. If the guest account has been opened up to remote logins or weak admin passwords are used, an attacker gains full control of your message queues.

How to secure RabbitMQ management UI

  • Allow 15672 only from admin networks or behind a VPN.
  • Remove guest or keep it limited to localhost, and use strong admin passwords.
  • Serve the management UI over TLS (management.ssl.port = 15671).

Check if port 15672 is open

Linux: what is listening on this port

sudo ss -tlpn | grep ':15672 '

Windows (PowerShell): what is listening

Get-NetTCPConnection -LocalPort 15672 -State Listen | Select-Object LocalAddress, OwningProcess, @{n='Process';e={(Get-Process -Id $_.OwningProcess).Name}}

From another machine: is it reachable

nc -zv HOST 15672 # or nmap -p 15672 HOST # Windows Test-NetConnection HOST -Port 15672

Test the RabbitMQ management UI service itself

curl -sI http://HOST:15672/

Restrict port 15672 in the firewall

Replace 10.0.0.0/8 with the network or address that needs access. Docker publishes container ports through its own iptables rules, which bypass ufw; bind published ports to 127.0.0.1 (-p 127.0.0.1:15672:15672) instead of relying on the host firewall.

ufw: allow only your private network, deny everyone else

sudo ufw allow from 10.0.0.0/8 to any port 15672 proto tcp sudo ufw deny 15672/tcp

firewalld: allow one source network only

sudo firewall-cmd --permanent --remove-port=15672/tcp sudo firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address="10.0.0.0/8" port port="15672" protocol="tcp" accept' sudo firewall-cmd --reload

iptables

sudo iptables -A INPUT -p tcp --dport 15672 -s 10.0.0.0/8 -j ACCEPT sudo iptables -A INPUT -p tcp --dport 15672 -j DROP

Windows Firewall (PowerShell, as Administrator)

New-NetFirewallRule -DisplayName "Block 15672 from internet" -Direction Inbound -Protocol TCP -LocalPort 15672 -RemoteAddress Internet -Action Block

Monitor port 15672

Run a TCP port monitor against your public IP on port 15672: here, a failed connection is the healthy result, so you know the firewall is still doing its job. On Linux, the Statance agent also reports every listening port on the server. TCP port monitoring.

Related ports

Port 5672AMQP (RabbitMQ)High risk
Port 4369Erlang Port Mapper Daemon (epmd)High risk

FAQ

What is port 15672 used for?

Port 15672 is the RabbitMQ management plugin, which provides the web interface and HTTP API for managing queues, users and policies.

Is it safe to open port 15672?

Not to the public internet. The management API can create users, read messages and reconfigure the broker. If the guest account has been opened up to remote logins or weak admin passwords are used, an attacker gains full control of your message queues.

Is port 15672 TCP or UDP?

RabbitMQ management UI uses TCP on port 15672.

How do I check if port 15672 is open?

On the server, run sudo ss -tulpn | grep ':15672 ' (Linux) or Get-NetTCPConnection -LocalPort 15672 (Windows) to see what is listening. From another machine, run nc -zv HOST 15672 or Test-NetConnection HOST -Port 15672.

All ports →

Know the moment a port stops answering.

TCP, HTTP, DNS and SSL checks from six regions, plus server metrics from a one-line agent.