On Wed, 17 Jan 2024 22:05:49 +0000, André via Openvpn-users <openvpn-users@lists.sourceforge.net> wrote:
>On Wednesday, January 17th, 2024 at 22:47, André ><pippin1st+us...@protonmail.com> wrote: > > Hi, > > If I understand correctly the video library is on the Pi? No, the RPi connects by OpenVPN to my home LAN using the OVPN server, which is an Ubuntu server. *This* Ubuntu server also hosts one Video library, but there is additionally a set of home videos on my NAS which is available to the connected RPi since it is now on the LAN via VPN. All of this type of connectivity is working and configured correctly. > If so, configure it for connecting to your server. > Make sure IP forwarding is enabled on the VPN server. That is a necessary condition for the server operations so it is ON. > Add a route on the server side gateway (probably router) pointing > towards the LAN IP of the machine running the VPN server with the > tunnel subnet as source. This looks like what I did when I connected my summer home and my main home LAN:s together using OpenVPN. The routers have this type of specific routing for both directions. The routing target of the home router is the VPN server in this case. > You can then connect to the Pi using it's tunnel IP from any device on the > LAN. > Make sure the firewall on the VPN server allows the traffic. > > Hope I phrased that right...:) > . What I am after is a way to maintain the remote RPi device from here via the command line). Two alternatives: 1) From my Windows PC using the RPi tunnel address (which I know since it is fixed in the server conf) or 2) If that does not work, from the VPN server's command line, which I connect to using PuTTY. So this would mean a two-step SSH connection: - First to the VPN server using its LAN address - Then from there to the RPi using its tunnel address So doing the routing on the main LAN Asus Router will probably be needed here in order to get access from my Windows PC. Do I need something also on the VPN server's routing in order to make it send packets destined for the remote RPi via the tunnel? I guess I have to revisit my notes from setting up the 2-way connection of my home and cottage LAN:s... Luckily I have a guest WiFi network *not* served by my main router so I can test it all here (once the RPi has been configured) by connecting it to that LAN. -- Bo Berglund Developer in Sweden _______________________________________________ Openvpn-users mailing list Openvpn-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-users