In referencing the RabbitMQ Networking documentation, it references that the following ports are used by default:
4369: epmd, a peer discovery service used by RabbitMQ nodes and CLI tools * 5672, 5671: used by AMQP 0-9-1 and 1.0 clients without and with TLS
25672: used for inter-node and CLI tools communication (Erlang distribution server port) and is allocated from a dynamic range (limited to a single port by default, computed as AMQP port + 20000). 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.
35672-35682: used by CLI tools (Erlang distribution client ports) for communication with nodes and is allocated from a dynamic range (computed as server distribution port + 10000 through server distribution port + 10010). See networking guide for details.
15672: HTTP API clients, management UI and rabbitmqadmin (only if the management plugin is enabled)
However, with the use of Netstat and Wireshark, I am seeing some odd behavior. Netstat shows my RabbitMQ pid 5892 utilizing a few random ports, such as 60369, 65055 and 60358. See below:
Proto Local Address Foreign Address State PID
TCP [::]:5672 [::]:0 LISTENING 5892
TCP [::1]:5672 [::1]:60442 ESTABLISHED 5892
TCP [::1]:5672 [::1]:60446 ESTABLISHED 5892
In addition, Wireshark shows my Basic deliver leaving the source server on port 5672 and reaching my destination server on port 60369. See below:
Source Port Destination Port Protocol Info
10.100.61.66 5672 10.100.61.60 60369 AMQP Basic.Deliver x=license.transaction rk=any.license_server.config Content-Header Content-Body
I am hoping to gain some understanding on what is defining these seemingly random ports.
Thanks.