Remote HA server and a local camera, how to?

Hi

I have a remote VM with Home Assist running with MQTT Mosquito and some Tasmota switches connected locally. I’ve opened the MQTT port in the remote firewall, configure the devices to access the remote MQTT server and all works fine.

Now I’ve bought a Reolink E1 Pro but I’m not able to connect it to Home Assistant. I’ve opened the RTSP and ONVIF ports in the local router and redirected to the camera but when I try to add an Onvif device in the Home Assistant it does not connect with the camera (connection timeout).

For me the best configuration should be a camera connected remotely to the server (like the Tasmota and MQTT) but don’t know if that would be possible.

Any advice about how to connect the camera or choose any other model to connect it remotely without opening ports in the local router?

Thanks in advance

I’ve been able to setup the RSTP stream using the standard camera integration but impossible to configure the Onvif side, I always get this error:

Device sent empty error with type <class ‘httpx.ConnectTimeout’>

I can connect to the camera remotely using for example Postman, but no way to configure it in Home Assist.

Any idea about how can I setup it as a Onvif device?

can you make a logical network diagram (reads like you would have the know-how)? It would help to understand how your setup works.