Binding epmd to a specific interface/IP

243 views
Skip to first unread message

Roy

unread,
May 4, 2023, 9:40:28 PM5/4/23
to rabbitmq-users
Hi Support, Is it possible to configure RabbitMQ to use a specific interface/ip for epmd (port 4369)?. Right now it is bound to all interfaces (0.0.0.0) even after setting ERL_EPMD_ADDRESS to a specific IP within the rabbitmq_advanced.conf. I also tried "export ERL_EPMD_ADDRESS=<specific-ip>" and restarting the service from the shell to see that the port 4369 is still bound to 0.0.0.0 (see below). I am using erlang v25.0.4 and rabbitmq-server v3.11.13. 

Thanks for your help in advance. 

$ netstat -anlp | grep 4369 tcp 0 0 0.0.0.0:4369 0.0.0.0:* LISTEN 14292/epmd tcp 0 0 127.0.0.1:43290 127.0.0.1:4369 TIME_WAIT - tcp 0 0 10.10.120.12:4369 10.10.120.12:53500 TIME_WAIT - tcp 0 0 127.0.0.1:41386 127.0.0.1:4369 ESTABLISHED 19674/beam.smp tcp 0 0 127.0.0.1:4369 127.0.0.1:41386 ESTABLISHED 14292/epmd
Thanks

Luke Bakken

unread,
May 5, 2023, 11:46:54 AM5/5/23
to rabbitmq-users
Hello,

Restarting the service won't restart epmd, plus epmd won't pick up the ERL_EPMD_ADDRESS environment variable since I'm assuming you are using systemd.

You should create the /etc/rabbitmq/rabbitmq-env.conf file with the following contents:

export ERL_EPMD_ADDRESS=<specific-ip>

Then, stop the RabbitMQ service, and kill any running epmd processes. Then, restart the RabbitMQ service. epmd should pick up the value of ERL_EPMD_ADDRESS from the environment.

If not, let me know.
Thanks,
Luke
Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
0 new messages