How I mount my Synology NAS shared folders as NFS
I have configured my Synology NAS to use NFS4 and NFSv4.1. For certain fixed IP addresses, I have allowed passwordless mounting of specific NFS shares:
This is my mount line in /etc/fstab
10.1.2.3:/volume1/myfolder /mnt/myfolder nfs async,soft,auto 0 0
where:
10.1.2.3
is the IP address of the NAS in the VPNmyfolder
is the name of the Synology share
This configuraton has been verified to work even when connecting via an OpenVPN connection that connects to a DSL client with an IP address that changes every 24 hours, leading to a disconnect of about 30 seconds. However, you should still test it in your specific configuration.