Resolving ZM Monitors Not Showing Up

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
rebornjumpman
Posts: 9
Joined: Sat Jul 04, 2020 5:03 pm

Resolving ZM Monitors Not Showing Up

Post by rebornjumpman »

Apologies if this should go somewhere else, but I wanted to share it with the community. I've been wrestling for a while now off and on with viewing monitors and events. It usually acts up after updates, but sometimes it happens just because. After reading a lot of posts on the forums and over at r/zoneminder on reddit, my co-worker and I narrowed the problem to the ports being used. They're using 30000+ and it's causing all sorts of issues for our instance. To get around it, we set a rule in iptables to redirect and that fixes the problem for us. Hopefully this helps someone else trying to work around it too. Below is the script we're using whenever the cameras go down.

Code: Select all

#!/bin/bash
#
# Set iptables rule
sudo iptables -t nat -A PREROUTING -p tcp --dport 30000:30200 -j REDIRECT --to-ports 80 && sudo iptables-save
#
# Restart apache
sudo systemctl restart apache2
Running that seems to fix it every time. We're running 1.34.25 on Debian 10.
Post Reply