Page 1 of 1

Which ports to open for remote access

Posted: Sat Apr 21, 2012 4:09 pm
by galps
I have been accessing ZM over the web with no problems. However I have now enabled "Authenticate user logins". I can still get the console externally but I cannot login.

I am assuming I need to open another port on my router. I already have 80,443 and 22 open. Any idea which one I need to open to allow my logon to be processed.

Thanks

Re: Which ports to open for remote access

Posted: Sun Apr 22, 2012 9:36 am
by PacoLM
Standard port is 80, check the values you have:

/etc/apache2/ports.conf -> "NameVirtualHost *:80" and "Listen 80"
/etc/apache2/sites-enabled/000-default -> "<VirtualHost *:80>"

Re: Which ports to open for remote access

Posted: Tue Apr 24, 2012 11:11 am
by galps
Hi, thanks for the advice. I have checked these files and all seems to be as you stated.

Just to explain a little further my issue.

If I enable "LogOn" to ZM in options I am challenged by a logon and password prompt to view the console. This is fine if I am on my local LAN, I can log in fine.

However when I access this page from outside my local LAN it will not let me pass through the logon page. It simply returns me to logon again.

I had assumed this might be to do with a blocked port on my router and not an issue with my Linux Server or ZM

Any ideas?

Re: Which ports to open for remote access

Posted: Tue Apr 24, 2012 10:31 pm
by BobS0327
I had a similar problem. I determined that my router uses port 80 for configuration purposes. Thus, I had to use port 8080 for apache. Once I reassigned the port, everything worked fine.

Re: Which ports to open for remote access

Posted: Thu Apr 26, 2012 5:22 pm
by galps
Bob, thanks for the advice. Before I swap over the ports, I just wanted to check, had you enable your router for external administration ? My Netgear router uses 8080 for remote admin, but since I have not enabled remote admin I assume the two will not conflict.

I assume to change the port allocation for apache, I need to edit the files that Paco referred to?

Again thanks for you help

Re: Which ports to open for remote access

Posted: Fri Apr 27, 2012 12:54 am
by BobS0327
I'm using a Linksys E2500 router. My remote management Access option is disabled. I also had to uncheck Filter Anonymous Internet Requests in the Security tab of my router to get remote access to ZM.

Yep, I had to do what Paco recommended. It's been a while since I did this but if memory serves me correctly I had to add an entry for port 8080 to /etc/apache2/ports.conf and I had to create a virtual host for 8080 in /etc/apache2/sites-enabled/000-default.

Finally I had to sudo ufw allow 8080

Doing all this allowed me to use port 8080 to remotely access ZM.

Re: Which ports to open for remote access

Posted: Fri Apr 27, 2012 1:09 am
by bb99
I'm doing it much different: External port - 8080, Internal port - 80, Protocol - both (TCP, UDP), To IP Address - internal address of ZM box, Enabled - checked.

Re: Which ports to open for remote access

Posted: Fri Apr 27, 2012 10:11 am
by galps
SUCCESS, using port 8080 has done the trick, many thanks to all :-)