Hi,
I want to access from my Samsung Smart TV running Tizen, a plex server through a vpn.
My network is currently like that :
The plex server and a raspberry pi is connected to a router. The router is connected to the internet. The only way to access the plex server is to be on the network, or through the raspberry pi via vpn (wireguard installed on it).
In another place, I have a tv and a raspberry pi connected to a router, which is connected to the internet. The raspberry pi is connected via vpn to the first raspberry pi.
In a picture, it looks like that : https://ibb.co/DY0kwGJ
How can I access the plex server from the tv, if it’s even possible ?
You don’t need the VPN to be able to connect to your Plex server just log into your Plex account from the other TV. Alternatively if you really want it to be on a VPN use the raspberry pi as a DHCP server to give a VPN IP to the TV.
I’m assuming the two RPi’s talk to each other already today, the networks on both sides are different and non-overlapping IP space, and the bridge you created with VPN has been configured to do routing on each end. That last statement means that if you configured the default gateway on the plex server to be the RPi on the left then that RPi would route all traffic over the VPN tunnel. This is a firm requirement for this to work. Next is you need to do the same on the right.
On the left you tell the RPi to route for the left-side network over the VPN and push every other network up to the normal router (or not, if you want to isolate plex entirely). Update the route table on the plex server to say the network on the right side is routed through the RPi on the left as the gateway IP. On the right you manually set the IP address on the TV and specify the gateway IP to be the RPi on the right. Now all of the TV traffic will go through the RPi, but regular devices configured with DHCP will use the router they should be using. On the right-side RPi you’ll configure it to route all left-side IP traffic over the VPN, and all other traffic to the router to get to the internet.
Then in the plex client on the TV manually add the private IP of the plex server. Now all Plex traffic will go over the VPN (plus any traffic to the left-side network, which you can limit down to a single server by using the plex server’s IP/32 on the right-side RPi’s routing table), and all netflix etc will go over the internet.
There is no way in the plex server network other than through the vpn. I won’t open it to the internet.
Thats not how a plex server works. You don’t open your server to the internet. Thats why plex has an authentication front end on it.