Check if port 5672 is open
On the server, see what is listening:
sudo ss -tulpn | grep ':5672 '
From another machine, test reachability:
nc -zv your-server.example.com 5672
Block port 5672 from the internet
With UFW (Ubuntu/Debian):
sudo ufw deny 5672
With firewalld (RHEL/AlmaLinux/Rocky):
sudo firewall-cmd --permanent --remove-port=5672/tcp && sudo firewall-cmd --reload