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!

Can you be more specific? Are you trying to connect to the FreePBX interface or to Asterisk? How are you trying to connect? Have you forwarded the relevant ports (i.e. Port 5060 for SIP connections to Asterisk and/or Port 80 for outside connections to FreePBX)?

BTW- Unless you really know what you’ve doing, opening FreePBX and/or Asterisk up to outside connection is a VERY BAD idea, and I recommend that you NOT do it. If you need remote access, set-up a LogMeIn account on one of your local computers, or set-up a VPN.

The easiest way to remote support is to use putty’s proxy option and tunnel to http via ssh