The configuration of the server is done using the common NFS guidelines. Shared folders are actually binded to the /export directory. You can check by examining the
/etc/fstab file after you have added a folder to the server. All NFS server configured folders are in /etc/exports as follows:
/export/Shared_1 (fsid=1,rw,subtree_check,secure,root_squash) /export/Videos 10.10.0.0/24 (fsid=2,rw,subtree_check,secure,nroot_squash) /export (ro,fsid=0,root_squash,no_subtree_check,hide)
To access NFS shares using any debian derived linux distro:
Mount as NFSv4 all folders in
$ mount 126.96.36.199:/ /mnt/nfs
Mount as NFSv3 all folders inside
$ mount 188.8.131.52:/export /mnt/nfs
Mount as NFSv3 the folder
$ mount 184.108.40.206:/export/Videos /mnt/nfs
Mount as NFSv4 the folder
$ mount 220.127.116.11:/Videos /mnt/nfs
Check your distro on how to proceed with different NFS versions.
NFSv4 Pseudo filesystem¶
The default /export folder is shared with this default options
ro,wdelay,root_squash,no_subtree_check,fsid=0 only available to change via environmental variables, so be aware that mounting this path you will encounter permission problems.
NFS relies on uid/gid matching at the remote/local filesystem and it doesn’t provide any authentication/security at all. Basic security is provided by using network allow, and squash options. If you want extra security in NFS, you will need to configure it to use kerberos ticketing system.
If you want to mount your NFS exports, add insecure in extra options or use
resvportin the command line.
$ sudo mount -t nfs -o resvport,rw 192.168.3.1:/export/Videos /private/nfs
- Debian distributions (and many others) always include the group users with
gid=100by default, if you want to resolve permissions easily for all users of a PC using linux add
anongid=100in extra options. This will force all mounts to use that gid.
- This are not followed outside of their export path, so they have to be relative.
- Remote access
- NFS was designed to be used as a local network protocol. Do not expose the NFS server to the Internet. If you still need access use a VPN.
|||This is not standard openmediavault privileges as in the shared folder section|