Dahua cam and reverse proxy

marson

n3wb
May 21, 2024
1
0
Poland
Hello

I have dahua IP camera and I want to have an access to the GUI on some domain through SSL

I tried to configure access using nginx proxy manager as follows:

IP of nginx proxy manager: 192.168.1.4
IP of my camera: 192.168.1.108
camera HTTP Web UI port 8008
camera HTTPS web UI port: 18443
domain which I want to have access: cam.mydomain.com

when I configured the reverse proxy as usual I am able to login to the camera webUI but the preview tab shows only white square, I assume that the problem could be RTSP not being proxied properly, just for testing I opened the 8008 to the outside world and I was able to properly display the video entering but not entering the domain name with nginx proxy manager. Any ideas?
 
I had to forward both HTTP and RTSP ports through the proxy, then tweak the headers so the camera didn’t get confused with host mismatches.
 
I ran into similar issues, and what helped was double-checking how the headers were passed through Nginx. Some Dahua cams don’t play nice with certain forwarded headers. Also, I tried routing traffic through Shared Datacenter Proxies for testing access from different IPs—they worked fine until authentication kicked in, then the cam threw errors, so I had to tweak the proxy config and cookies handling to get it stable.
 
Last edited: