Reach nfs shares on OpenVPN host using local ip address

This forum is for all inquiries relating to the installation of OpenVPN from source and with binaries.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please visit (and READ) the OpenVPN HowTo http://openvpn.net/howto prior to asking any questions in here!
Post Reply
afortunado
OpenVpn Newbie
Posts: 4
Joined: Mon Nov 23, 2015 3:49 pm

Reach nfs shares on OpenVPN host using local ip address

Post by afortunado » Mon Nov 23, 2015 3:53 pm

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!

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

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

Post by Traffic » Wed Nov 25, 2015 5:32 pm

Presuming you simply want access to the Servers LAN IP see this HOWTO:
HOWTO: Expanding the scope of the VPN to include additional machines

afortunado
OpenVpn Newbie
Posts: 4
Joined: Mon Nov 23, 2015 3:49 pm

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

Post by afortunado » Mon Nov 30, 2015 1:39 pm

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!

afortunado
OpenVpn Newbie
Posts: 4
Joined: Mon Nov 23, 2015 3:49 pm

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

Post by afortunado » Mon Nov 30, 2015 2:01 pm

Thank you so much, it works now! I forgot to run OpenVPN as administrator :lol: thanks again!

Post Reply