Redirect errors when viewing ZM remotely with Ngrok

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
doubledown00
Posts: 6
Joined: Tue Oct 26, 2021 12:20 pm

Redirect errors when viewing ZM remotely with Ngrok

Post by doubledown00 »

I have a remote location running RHEL 8 and ZM 1.36.10. Cameras are setup and the site works fine. I confirmed that ZM is available locally via both hostname and IP address. And if I move the server to a different location that allows port forwarding, it works fine there too.

Then recently the internet connection changed and I have come to find out that it runs "carrier grade NAT" which doesn't allow port forwarding. No problem. I already had Ngrok for other projects so I setup a static port 80 and 443 forward, configured it on the server, and ran it. I tested and the http and https splash screens came up. So that's working fine.

When I went to ZM via the Ngrok link I get an error: "Redirected you too many times."
The Apache logs shows this 30+ times:
::1 - - [19/Nov/2021:08:29:24 -0600] "GET /zm HTTP/1.1" 302 218 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36"

It looks to be a 302 error.

I'm wondering if the "::1" hostname for the request isn't confusing Zoneminder or httpd? Are there any access lists or host restrictions I should be looking at?
Post Reply