-2

I have local asterisk server on UBUNTU 16.04. It's address 192.168.0.101:5060 and I would like to be allowed to talk with other users when I am outside local network. I tried THIS but it doesn't work. I am not good at network engineering. IS there any way to do this well?

1 Answers1

1

You need an internal service port as well. I would caution you though about opening up an Asterisk server to the world. They are rich targets to folks who want to make phone calls without paying for them.

Nathan Powell
  • 579
  • 2
  • 6
  • what should port number be in internal port? it's default same as service port (5060) – Damian Sośnicki Sep 17 '17 at 12:14
  • The external port number is arbitrary, the internal port is the port the internal server is listening on. So in your case it should be 5060. – Nathan Powell Sep 17 '17 at 12:15
  • I had set 5060, are there more requirements to make this works? My iptables is off, but client can't connect to server. In local area it works fine. – Damian Sośnicki Sep 17 '17 at 12:19
  • or maybe is there any safer way to make it works? – Damian Sośnicki Sep 17 '17 at 12:22
  • If you're trying to do SIP, which it appears you are, you also need 10000 through 20000 forwarded. Your router probably allows a range to be forwarded. https://www.voip-info.org/wiki/view/port+forwarding The article is showing how to do it with iptables, but the ports are the same no matter what you're using to forward. – Nathan Powell Sep 17 '17 at 12:41
  • Securing an Asterisk deployment is a broad topic unfit for discussion here. To get started with understanding it, you could read https://www.voip-info.org/wiki/view/Asterisk+security Lots of good links at the end as well. – Nathan Powell Sep 17 '17 at 12:43