
Code: Select all
iptables -t nat -A PREROUTING -p tcp --dport 15301 -j DNAT --to-destination 34.199.92.115:15301
iptables -t nat -A POSTROUTING -j MASQUERADE
Note that this command is rerouting any outbound TCP traffic on port 15301 so it doesn't care what the currently configured AD110 outbound DMS IP is, good or bad.
Now, ideally I would have liked to have specified the dms.zencamcloud.com hostname instead of the one of the IP's it now resolves to, but apparently that is not a good practice. Good enough for now. Looks to me that Amcrest will have to release a new firmware to fix this ridiculous issue.