Which ports to open for remote access

Forum for questions and support relating to the 1.24.x releases only.
Locked
galps
Posts: 7
Joined: Sat Apr 21, 2012 11:12 am

Which ports to open for remote access

Post 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
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: Which ports to open for remote access

Post 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>"

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
galps
Posts: 7
Joined: Sat Apr 21, 2012 11:12 am

Re: Which ports to open for remote access

Post 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?
BobS0327
Posts: 86
Joined: Mon Oct 16, 2006 6:22 pm

Re: Which ports to open for remote access

Post 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.
galps
Posts: 7
Joined: Sat Apr 21, 2012 11:12 am

Re: Which ports to open for remote access

Post 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
BobS0327
Posts: 86
Joined: Mon Oct 16, 2006 6:22 pm

Re: Which ports to open for remote access

Post 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.
bb99
Posts: 943
Joined: Wed Apr 02, 2008 12:04 am

Re: Which ports to open for remote access

Post 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.
galps
Posts: 7
Joined: Sat Apr 21, 2012 11:12 am

Re: Which ports to open for remote access

Post by galps »

SUCCESS, using port 8080 has done the trick, many thanks to all :-)
Locked