Skip to main content

Ports to open for server

Posted by sababa on Thu, 04/17/2008

Hi

I am having a strange problem. I can get softphones (havent tried normal sip phones yet) to register on my server although I can not logon to the WebGUI from outside my LAN.
The softphones are on my LAN and outside the LAN.

Does anyone know what ports I should be opening on my firewall?


Submitted by sdennis on Thu, 04/17/2008 Permalink

The default webmin port is 10000, so I would try that first. If that doesn't work I would check and see what port webmin is running on.

Submitted by dozment on Thu, 04/24/2008 Permalink

Since PBX Mgr is a Webmin module it runs on 10000 if the default hasn't been changed. So, 10000 has to be open. But, that may not be enough. You may also have to forward port 10000 traffic from your firewall to your PBX Mgr server if it's not already forwarding everything there.

Submitted by sababa on Fri, 05/02/2008 Permalink

Do I open UDP or TCP what protocol should I be using so far everything is still default but its still not working.

Thanks

Submitted by mattdarnell on Fri, 05/02/2008 Permalink

Sababa,

Maybe we all misunderstood the problem...you wrote:

"I am having a strange problem. I can get softphones (havent tried normal sip phones yet) to register on my server although I can NOT logon to the WebGUI from outside my LAN."

Is the problem that phones can not register, or you can not access the WebGUI?

-Matt

Submitted by dozment on Tue, 05/06/2008 Permalink

Sounds like your firewall doesn't know where to send the port 10000 traffic once it allows it through. If that's the case you need to put a rule in your firewall telling it to send port 10000 traffic to the internal ip address of your asterisk server.

Submitted by sababa on Tue, 05/06/2008 Permalink

yes i did that I have a port forward right now for port 10000 both UDP and TCP going to the internal address of my server

Submitted by dozment on Tue, 05/06/2008 Permalink

Do you have the ability to ssh to the server? If so ssh in and do this:

tail -f /var/webmin/miniserv.log

Try connecting while that's running. You should see something scroll by in the log file while you're trying to connect. If you don't, do the same thing with the error log like this:

tail -f /var/webmin/miniserv.error

Of course, I'm assuming the logs are in the same place on my server as they are on yours.

Submitted by sababa on Thu, 05/08/2008 Permalink

I can SSH when i type the first string in i get this:

[root@thirdlane ~]# tail -f /var/webmin/miniserv.log

192.168.168.203 - root [17/Apr/2008:07:53:24 -0400] "GET /asterisk/tagline-left-bg.png HTTP/1.1" 200 584

192.168.168.203 - root [17/Apr/2008:07:53:24 -0400] "GET /asterisk/tagline-right-bg.png HTTP/1.1" 200 592

192.168.168.203 - root [17/Apr/2008:07:53:24 -0400] "GET /asterisk/footer-bg.png HTTP/1.1" 200 730

192.168.168.203 - root [17/Apr/2008:07:53:30 -0400] "GET /asterisk/index_usermanagement.cgi HTTP/1.1" 200 6295

192.168.168.203 - root [17/Apr/2008:07:53:31 -0400] "GET /asterisk/images/clear.gif HTTP/1.1" 200 68

192.168.168.203 - root [17/Apr/2008:07:53:36 -0400] "GET /asterisk/users.cgi HTTP/1.1" 200 8440

192.168.168.203 - root [17/Apr/2008:07:53:37 -0400] "GET /asterisk/table-th-bg.png HTTP/1.1" 200 425

192.168.168.203 - root [17/Apr/2008:07:53:37 -0400] "GET /asterisk/button-bg.png HTTP/1.1" 200 383

192.168.168.203 - - [17/Apr/2008:07:54:31 -0400] "GET /session_login.cgi?logout=1 HTTP/1.1" 401 2794

192.168.168.204 - - [17/Apr/2008:07:57:37 -0400] "GET / HTTP/1.1" 401 2688

for the second string i get this:

[root@thirdlane ~]# tail -f /var/webmin/miniserv.error

Prototype mismatch: sub main::encode_base64: none vs ($;$) at /usr/lib/perl5/5.8.5/Exporter.pm line 65.

at (eval 46) line 2

Prototype mismatch: sub main::decode_base64: none vs ($) at /usr/lib/perl5/5.8.5/Exporter.pm line 65.

at (eval 46) line 2

Error: Module file /tmp/.webmin/Authen-Libwrap-0.20.tar.gz no longer exists

Prototype mismatch: sub main::encode_base64: none vs ($;$) at /usr/lib/perl5/5.8.5/Exporter.pm line 65.

at (eval 46) line 2

Prototype mismatch: sub main::decode_base64: none vs ($) at /usr/lib/perl5/5.8.5/Exporter.pm line 65.

at (eval 46) line 2