VPN camera via local ip

Hello, hopefully I can explain this in a simple and concise manner.

I have a "streamer" server running on a linode which runs custom made video streaming software.

It takes the RTSP url from cameras and restreams it to HLS

I installed OpenVPN on that streamer server.

Then I connected my PC via VPN client to the OpenVPN server.

I have a good vpn connection between my pc and the streamer server.

Normally on the streaming server I enter the RTSP URL of cameras using a public ip.

The whole point of this is to try to enter the RTSP URL of the camera using a local IP.

SO that we dont have to forward ports on the LAN where the camera is.

This part is not working so far… any tips?

From my pc i can ping the VPN tunnel interface.
But I cant ping my local PC VPN client ip from the server.

Any tips on this whole process?

The local interface ip of the VPN tunnel is
10.8.0.1

The local ip of my PC is 192.168.0.15

The camera on my local LAN I am trying to connect to is set to 10.8.0.50

Maybe the problem is that my local router / gateway is no on the 10.8 subnet…

1 Reply

Hey @cview,

Your thinking is right. The 10.0.0.0/8 subnet will not work with 192.168.0.0/24 subnet if they're on the same router. When you go from private to public networks, you will need to set up port forwarding on your local router. You will also need to make sure all the IPs behind the router are on the same subnet or implement multiple routers that have the routing tables for each network, so it knows how to access the different subnets.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct