run distributed Erlang through a firewall?
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
- How much slower will each instance of the Distributed Folding client in a dual-CPU computer run than a single instance of the Distributed Folding client on a single processor?
- Is it be distributed as a standalone executable or require an external VM (virtual machine) to run?
- run distributed Erlang through a firewall?