Erlang - ALIVE2_REQ from non local address

て烟熏妆下的殇ゞ 提交于 2019-12-25 04:05:09

问题


I am testing my Erlang environment and it is not working. I am using debian 64 bit. Erlang R15B01 (erts-5.9.1) [source] [64-bit] [async-threads:0] [kernel-poll:false]

In one terminal I type the following command to start elang in debug mode

pkill epmd
epmd -d

In another terminal I type

erl -sname test

I get the following error

epmd: Wed Feb 25 13:00:28 2015: ** got ALIVE2_REQ
epmd: Wed Feb 25 13:00:28 2015: ALIVE2_REQ from non local address

This has prevented me from running rabbitmq server


回答1:


The problem was with my iptables. The POSTROUTING chain specifically. Checking iptables list

iptables -t nat --list

showed

Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination         
MASQUERADE  all  --  anywhere             anywhere             policy match dir out pol none 

so I removed the MASQUERADE rule

iptables -t nat -D POSTROUTING 1

after that checking the iptables list showed

Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination

and this made erlang to work.



来源:https://stackoverflow.com/questions/28720832/erlang-alive2-req-from-non-local-address

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!