5060 Port not open

Hi,

I’m working on the asterisk. I want to open the 5060 port so that asterisk start to work WAN.

iptables -A INPUT -p udp -m udp --dport 5060 -j ACCEPT

I did this but not working…still port is closed.

Hope to hear from you soon!!

As i said before on this thread viewtopic.php?f=1&t=88571

Please check my last comment there… I did all these but still not working.

Hope to hear from you soon!!

Sorry for my mistake…

You need to ensure that you are putting this rule before any iptable reject rules. If you simply add a rule it will be added to bottom of the list within that iptables chain (INPUT). So, I would first list the rules in iptables and then insert the rule before a reject rule. I wrote an article on this at dopensource.com/?p=311

Thanks,

Mack Hendricks
dOpenSource - Enterprise Grade Open Source Support
dOpenSource.com