Port Forwarding (NAT) and https help please

Forum for questions and support relating to the 1.25.x releases only.
Locked
ramasule
Posts: 7
Joined: Sat Dec 01, 2012 4:22 pm

Port Forwarding (NAT) and https help please

Post by ramasule »

Hello, connection is as follows

(Internet) -> eth0 (sme server (centos server)) eth1 -> (LAN) -> eth0 (Zoneminder 1.25)

I set up port forwarding on my server to go

Incoming (any ip:8080) to 192.168.2.3:80(Zoneminder)

I have my zoneminder configured with the apache2 ssl config via the ubuntu tutorial. http://www.zoneminder.com/wiki/index.ph ... e_easy_way

When I go http://mydomain.com:8080 it goes to the zoneminder page as planned.

When I go https://mydomain.com:8080 I cannot connect

Can anyone help me, I would rather not expose my zoneminder box to the outside.

Thank you,

Ram
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: Port Forwarding (NAT) and https help please

Post by PacoLM »

Hi,

You need to know your external IP and have the apache2 port open in your router, then try with a computer that is NOT in your local LAN to test the connection, because you could not access your external IP from your intranet.
In order to avoid knoing the external IP address, the easier way is to have a dynamic dns service (if you don't have static ip, of course), enable the service in your router and assign an alias, like myzm.getmyip.com, so you could access your ZM system from anywhere in the world.
I personally use DynDns and works perfect.

Hope it helps,

PacoLM

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
sipi
Posts: 132
Joined: Wed Feb 14, 2007 5:18 pm

Re: Port Forwarding (NAT) and https help please

Post by sipi »

I think something is wrong. Did you configure apache ssl on zm server?

You redirected 8080 port from WAN to LAN on sme server. If you configured here the ssl it is ineffective, because sme server will to redirect all traffic on 8080 port to LAN and doesn't control ssl on this port. You need to configure apache and ssl on zm server.
ramasule
Posts: 7
Joined: Sat Dec 01, 2012 4:22 pm

Re: Port Forwarding (NAT) and https help please

Post by ramasule »

Er just looked it up and ssl (https) is port 443, that's the one I need to use for forwarding, thank you.

Ram
sipi
Posts: 132
Joined: Wed Feb 14, 2007 5:18 pm

Re: Port Forwarding (NAT) and https help please

Post by sipi »

Yes, standard ssl port is 443 but you can use 8080 or other port for ssl... I thought you'ld like to use 8080 port for ssl...
Otherwise you can redirect http traffic automatically to https... I think you best friend is apache manual because apache is very flexible and useful.

I'm sorry if my advice doesn't useful for you.
Locked