不能从远程访问Asterisk sip

我已经使用这个教程来configuration我的iptables,所以我可以从我的服务器之外访问星号sip

我的iptables -L看起来像这样

 Chain INPUT (policy ACCEPT) target prot opt source destination ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED ACCEPT icmp -- anywhere anywhere ACCEPT all -- anywhere anywhere ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh REJECT all -- anywhere anywhere reject-with icmp-host-prohibited ACCEPT udp -- anywhere anywhere udp dpt:sip ACCEPT udp -- anywhere anywhere udp dpt:iax ACCEPT udp -- anywhere anywhere udp dpt:5036 ACCEPT udp -- anywhere anywhere udp dpts:ndmp:dnp ACCEPT udp -- anywhere anywhere udp dpt:mgcp-callagent Chain FORWARD (policy ACCEPT) target prot opt source destination REJECT all -- anywhere anywhere reject-with icmp-host-prohibited Chain OUTPUT (policy ACCEPT) target prot opt source destination 

现在,当iptables被closures时,我可以在sip客户端上注册,没有任何问题,但是当它打开时,防火墙会阻止它。 这个iptablesconfiguration有什么问题,我应该怎么做才能解决这个问题?

你有一个拒绝所有规则链:

REJECT all -- anywhere anywhere reject-with icmp-host-prohibited

移动到最后,你会一切设置。