I am trying to set up an IP camera in our home to be accessible remotely over internet. I have blocked all access directly to the camera over internet to start with. And I have created a home OpenVPN server on an Ubuntu laptop. So I can connect to the home OpenVPN server perfectly.
However, I am not sure how to connect to the camera after joining as a OpenVPN client from my phone or personal laptop when I am outside by home network.
The OpenVPN subnet is under 10.8.0.0 mask 255.255.255.0. And the router subnet is 10.0.1.0 mask 255.255.255.0. The camera has the IP address 10.0.1.15.
So I want to be able to connect from a 10.8.0.x IP to the 10.0.1.15.
I tried adding a route on the Ubuntu machine running OpenVPN server (10.0.1.2), though I don't think I am doing it right with this route add -net 10.8.0.0/24 gw 10.0.1.2
or this route add -net 10.0.1.0/24 gw 10.0.1.2
Can someone please advise on how to correctly get the route working from 10.8.0.x to 10.0.1.15?