Cannot access Asterisk from outside of local network

OS: Ubuntu 10.04 LTS Server

Thank you in advance for your advice. I am completely new to networking an ip-telephony, and have been struggling with this issue for many days now, so you are my last hope.

Installed Asterisk and all works fine on one computer, but when trying to access FreePBX dashboard and connect sip softphones from outside I get “server not accessible” error.

Asterisk is installed on Ubuntu which works on a Mac computer through Parallels 7 virtual machine.

Modem/router D-Link2450U. Set port forwarding to local ip (which is displayed in freepbx web interface). Ports forwarded are UDP 5060-5082, 10000-20000, TCP 8088,5038.

Dynamic ip - using, DNS port A forwarding. Client works fine, when trying to access opens D-Link modem admin page. When connecting computer to the internet not through router, the shows “page not found”

Sophtfone: x-lite

When running command
netstat -an | grep 5060
udp 0*

Asterisk SIP settings. Nat yes; IP configuration: dynamic IP; dynamic host: xxxx.serveftpcom, refresh rate 10; local network" Bind port: 5060.


webenabled = yes
port= 5038

enabled = yes
secret = YourPass
read = all,system,call,log,verbose,command,agent,user,config,dtmf,reporting,cdr,dialplan,originate
write = all,system,call,log,verbose,command,agent,user,config,dtmf,reporting,cdr,dialplan,originate
; deny=

Any ideas what can be the problem here? Thank you!

iptables or other firewall running on the box?

If you don’t know your external host name, you need to use STUN.

I hope you don’t have one of these ISPs that try to discourage servers by changing the IP address whilst the connection is up!

cmendes0101: there is iptables, which I switched off but nothing changed. Not sure how to check if there any other firewalls on the server itself.

Thank you for your ideas on where to look for the issue.

Also, this might help those who reads the post in the future and trying to set up a connection on a machine with parallels desktop. In parallels, you’d need to set a Bridged connection in Network settings so the virtual machine is recognized as a separate computer with own ip in the local network.