by 8organicbits · 4y ago · 0 comments
> 25672: used for inter-node and CLI tools communication [...] Unless external connections on these ports are really necessary (e.g. the cluster uses federation or CLI tools are used on machines outside the subnet), these ports should not be publicly exposed. See networking guide for details.
Individually binding each service to localhost to prevent remote access seems tedious and error prone. What happens if an update exposes a new port? I like to bind to localhost too, but only as a defense in depth measure.
I also have not seen RabbitMQ opening anything on my firewalls on installation or during the operation. There are some annoying applications that add firewall rules but RabbitMQ was not one.
If someone is solving issues by disabling whole firewall, his access should be revoked immediately from anything related to infra.
Firewall is a proper solution, learn how to use it properly instead of coming up with excuses.
In Debian by default all connections are allowed. And it makes sense: if you open a port, you probably want to be able to connect to it, otherwise why would you open it?
It doesn't make sense if you open a port (to accept connections) and then block this port with a firewall.
Of course this applies to cases when you have a single node, I understand that you might need firewall if you have several nodes.
/s
The firewall solution to a new/unexpected open port is a default deny rule. That's a commonly used best practice. There's nothing to forget.
In case with a single node, it doesn't make sense. If you open a port, you probably want to be able to connect to it, otherwise why would you open it? And if you don't want anyone to connect, then don't open a port. There is no need for a firewall in case with a single node, unless you want custom rules like "only host A can connect to host B".
There should not be "unexpected" open ports. Software should not open ports on external interfaces unless permitted by administrator.
RabbitMQ should just have a switch to disable all unnecessary clustering features, but for some reason they don't want to implement it.