- https://en.wikipedia.org/wiki/Network_File_System AKA NFS
- /etc/init/nfsd-adapter.conf – read it, and find out how to start and stop the NFS daemon – it is rather, rather simple, honestly!
- /etc/exports – all this is on one line in your file:
The /etc/fstab entry looks like this (again: all this is on one line in your file):
SynologyRouter:/volumeUSB5/usbshare /media/synologyrouter nfs4 noauto,nouser,dev,exec,suid,hard,rw,bg,sec=sys 0 0
Maybe you want to replace SynologyRouter with its one of its internal IP addresses like 192.168.1.1.
The device service can out of the box serve as a CIFS and Apple file server, but despite it’s sisterhood to the Synology DiskStations the GUI is not prepared to make use of the NFS server. Yet on the command line you can achieve it.
I attached a hard disk through USB-2 (it appears as /volumeUSB5/usbshare), and made it available via /etc/exports. USB-2 has its limitations, but this set-up works perfectly for my needs.
Yes, we have to open the router’s firewall in order to let NFS communication through. I am currently a little relaxed w.r.t. opening the firewall, because I am running “our device” locally i.e. within my LAN. Of course nfsd must not be accessible on the WAN port but only on the LAN ports incl. wifi (Source IP / Specific IP / Select / Subnet / …). I will explain that here a little later.