How to access files on Synology NAS within the local network (NFS)
Synology NAS is designed to make storing and sharing files within your local network quick and simple, allowing you to directly access shared folders and files on the Synology NAS without going through the hassle of logging into DSM everytime. You will be able to access files on your Synology NAS with NFS just like other network devices.
This article guides you through the steps of using your Linux computer to access your Synology NAS within the local network.
- Before You Start
- Enabling NFS on Your Synology NAS
- Assign NFS Permissions to Shared Folders
- Mounting Shared Folders with NFS
This article assumes that you have already done the following:
- Configured your Synology NAS to be accessible over the Internet (see this tutorial).
Before accessing a shared folder with your NFS client, you will need to change the system settings of your Synology NAS to allow sharing via NFS. Please follow the steps below.
- Log into DSM with an account belonging to the administrators group.
- Go to Control Panel > File Services.
- On the Win/Mac/NFS tab, tick the box Enable NFS.
- Click Apply to save settings.
Before accessing any shared folders with your NFS client, you must first configure the NFS permissions of the shared folder you wish to access. The steps below will guide you through the process of changing NFS permissions of the shared folders on your Synology NAS.
- Go to Control Panel > Shared Folder.
- Select the shared folder that you wish to access with your NFS client, and click Edit.
- Go to the NFS Permissions tab. Click Create.
- Edit the following fields:
- Hostname or IP: Enter the IP address of the NFS client which will access the shared folder. You may specify a host in three ways:
- Single Host: The fully qualified domain name, or an IP address.
- Wildcards: *, *.synology.com
- IP networks: 184.108.40.206/255.255.252.0, /24
- Privilege: Select read/write permissions for the NFS client.
- Security: Specify the security flavor to implement.
- AUTH_SYS: Use the NFS client's UID (user identifier) and GID (group identifier) to check access permissions.
- Kerberos authentication: Perform Kerberos authentication when the NFS client connects to the shared folder. The client can only access the shared folder after passing Kerberos authentication.
- Kerberos integrity: Perform Kerberos authentication and ensure the integrity of packets during data transfer.
- Kerberos privacy: Perform Kerberos authentication and encrypt the NFS packets during data transfer, thus preventing malicious parties from tampering with NFS traffic.
- Squash: This field allows you to control users' access privileges of the NFS client. Please select one of the following:
- No mapping: Allows all users of NFS client, including root users, to maintain original access privileges.
- Map root to admin: Assigns access privileges to root users of NFS client equivalent to the admin user access privileges on your system.
- Map root to guest: Assigns access privileges to root users of NFS client equivalent to the guest access privileges on your system.
- Map all users to admin: Assigns access privileges to all users of NFS client equivalent to the admin user access privileges on your system.
- Asynchronous: Checking this option allows your Synology NAS to reply to requests from NFS clients before any changes to files are completed, yielding better performance.
- Allowed non-privileged port: Checking this option allows NFS clients to use non-privileged ports (i.e. ports greater than 1024) when connecting to the Synology NAS.
Once you have completed the steps above, you can mount the shared folder with your NFS client. In the section below, we will access the shared folder using Linux.
- Open a web browser and log into DSM with an account belonging to the administrators group.
- Go to Control Panel > Shared Folder. Select a shared folder, and click Edit.
- Go to the NFS Permissions tab. Here you can find the mount path of the shared folder, which follows the format / [volume name] / [shared folder name ].
- On your Linux computer, open the command console.
- Enter the mount command as follows:
mount [Synology NAS IP address] : [mount path of shared folder] / [mount point on NFS client]
- Enter the disk free (df) command to confirm you have successfully mounted the shared folder.