zerotier在iptables开启转发后连接不上的解决方法
在配置zerotier时,发现在一定情况下,开启iptables的masquerade转发后,zerotier会报告出此错误:ZeroTier One service listening 9993 but not replying to anything,并在关闭masquerade后问题会得到解决。这是因为iptables对于loopback的masquerade规则问题造成的。欲解决此问题,只需要再次执行以下代码后保存并重新加载iptables规则即可:
iptables -t nat -I POSTROUTING -o lo -j ACCEPT
service iptables save
Ref: https://github.com/zerotier/ZeroTierOne/issues/1102
Enjoy~