Hello,
So I have Hikvision DVR and using WIFI, the problem only appears if the router is openwrt (R4S) if I changed it to other brands let's say Tenda / Huawei it works perfectly without any issues.
Hik-connect app is not working properly and shows error / doesn't load the cameras streams at all. Changing DNS inside DVR solve the issue for 2-3 seconds then it comes back, I tired everything I know like disabling IPv6 entirely on openwrt interfaces (LAN and removing WAN6) doesn't solve anything.
I'm willing to try anything, portforward doesn't work either I tried to open all ports for the DVR.
What should I try next? It's something related to the DNS with openwrt and Hikvision, because when I change it inside the DVR as I said everything loads instantly but the issue comes back immediately after a few seconds.
I'm using Luci btw, Suggest anything, but keep it inside openwrt system because the issue is definitely there.
First I would undo the “open all ports” test and keep the DVR closed from the internet while you debug it. If changing DNS helps only for a few seconds, check whether the OpenWrt box is running adblock/banIP, DNS hijacking, or a custom dnsmasq rule that could be blocking one of Hikvision’s cloud hostnames after the first lookup. A useful test is to set the DVR DNS to a plain external resolver and also watch System log / DNS logs at the exact moment the app fails. If the DVR has a static IP, also confirm its gateway points to the OpenWrt LAN address, not an old router address.
I just install a fresh openwrt system on my r4s, should I check for the things you mentioned? Didn't install anything it's the official image. About the DVR gateway I already set it to manual and everything is correct, it's the same gateway for the old router, I prefer to use 192.168.1.1 always. I'll try to search and look for the things you mentioned because I'm not expert in openwrt and it would be much appreciated if it's straight forward steps to apply lol, thank you for your help.
On a fresh image I’d make it very basic: install tcpdump, then watch the DVR while you open the app: tcpdump -ni br-lan host 192.168.1.x and tcpdump -ni wan host 192.168.1.x. Replace that with the DVR IP. That tells you if the DVR is still doing DNS only, or if the stream connection is leaving and failing later. Also temporarily turn off Software/Hardware flow offloading in Firewall settings if it is enabled. If DNS change helps for a moment, compare the DNS replies with nslookup from the router and from a LAN PC; it may be the DVR switching between Hikvision cloud names rather than OpenWrt blocking it.