Page 1 of 1

Reach nfs shares on OpenVPN host using local ip address

Posted: Mon Nov 23, 2015 3:53 pm
by afortunado
Hi,

First of all, sorry if this is asked before but I'm kind of overwhelmed with all the different terms.
I would like to use OpenVPN to reach the NFS shares that are on the OpenVPN server host by connecting to the server and then using the local ip address. This way, I would be able to connect to the shares with the same ip address, wether I am at home or connecting remotely through OpenVPN. Is this possible?

Thanks in advance!

Re: Reach nfs shares on OpenVPN host using local ip address

Posted: Wed Nov 25, 2015 5:32 pm
by Traffic
Presuming you simply want access to the Servers LAN IP see this HOWTO:
HOWTO: Expanding the scope of the VPN to include additional machines

Re: Reach nfs shares on OpenVPN host using local ip address

Posted: Mon Nov 30, 2015 1:39 pm
by afortunado
Thank you very much for your reply. I've followed the steps in the HOWTO, but I'm confused with this part:
Next, you must set up a route on the server-side LAN gateway to route the VPN client subnet (10.8.0.0/24) to the OpenVPN server (this is only necessary if the OpenVPN server and the LAN gateway are different machines).
Is the LAN gateway my router? In that case, my OpenVPN server (WD Mybooklive running a custom debian jessie) is a different machine. How do I route the VPN client subnet (10.8.0.0/24) to the OpenVPN server on my LAN gateway? Thanks again!

Re: Reach nfs shares on OpenVPN host using local ip address

Posted: Mon Nov 30, 2015 2:01 pm
by afortunado
Thank you so much, it works now! I forgot to run OpenVPN as administrator :lol: thanks again!