Page 1 of 1

Port Forwarding (NAT) and https help please

Posted: Wed Dec 12, 2012 6:26 am
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

Re: Port Forwarding (NAT) and https help please

Posted: Wed Dec 12, 2012 12:04 pm
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

Re: Port Forwarding (NAT) and https help please

Posted: Wed Dec 12, 2012 8:57 pm
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.

Re: Port Forwarding (NAT) and https help please

Posted: Thu Dec 13, 2012 1:54 am
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

Re: Port Forwarding (NAT) and https help please

Posted: Thu Dec 13, 2012 8:43 am
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.