Reputation: 37
Description: I have built a Centos 6.5 on VM on Microsoft Azure, I need to open 5060 for using Asterisk. I first enabled endpoint 5060 on VM, and then I added rule for accepting port 5060 in iptables in Centos 6.5 I saved it and restarted it.
When I telnet 5060 from external, connection refused.
Then I disabled the iptables and tried again, very wired connection refused neither.
That is to say, My iptables on Centos 6.5 dose not work at all. even if I closed it, I still can not reach other port except port 22.
Can someone help me out ? Very appreciate !
Michael
Upvotes: 3
Views: 1293
Reputation: 16199
There are 4 places the port may be closed
Step 1
Allow EVERYTHING through IPTables. Basically take down your firewall. Try telnet now. If it works it is an IPtable misconfiguration.
Step 2
Telnet on your own VM to see if the application has the port open. If yes, then it is a firewall blocking. If no, your application isn't opening the port.
Step 3
Use http://www.canyouseeme.org/ to check ports are open outside of your ISP.
If this works, its your ISP. If it doesn't it is your endpoint configuration on Azure.
Upvotes: 2