Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

run distributed Erlang through a firewall?

distributed Erlang firewall run
0
10 Posted

run distributed Erlang through a firewall?

0

The simplest approach is to make an a-priori restriction to the TCP ports distributed Erlang uses to communicate through by setting the (undocumented) kernel variables ‘inet_dist_listen_min’ and ‘inet_dist_listen_max’. Example: application:set_env(kernel, inet_dist_listen_min, 9100). application:set_env(kernel, inet_dist_listen_max, 9105). This forces Erlang to use only ports 9100–9105 for distributed Erlang traffic. In the above example, you would then need to configure your firewall to pass ports 9100–9105 as well as port 4369 (for the erlang port mapper). There are other approaches, such as tunnelling the information through SSH or writing your own distribution handler.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.