Setting Up NFS on Dragonfly BSD
The first configuration change you should make is creating your /etc/exports. An example of a relatively simple one is as follows:
/ -alldirs -network 192.168.1.20 -mask 255.255.255.0
This will allow the IP of 192.168.1.20 to connect to your NFS share. Swap it to whatever IP you are trying to allow. Read the man page for more advanced setups by checking:
man exports
The next configuration change you have to make it to your /etc/rc.conf. Add the following:
rpcbind_enable="YES" mountd_enable="YES" nfs_server_enable="YES" mountd_flags="-r"
Then you can start the individual processes. They are as follows:
service rpcbind restart service nfsd restart service mountd restart
mount.nfs: access denied by server while mounting 192.168.1.21:/ mountd[9001]: mount request from 192.168.1.20 from unprivileged port
You may end up having permission denied errors on Linux. The reason for this is that Dragonfly BSD by default disables NFS connections to non-privileged ports. If that is the case, you need to make the following changes to your /etc/rc.conf
mountd_flags="-r -n" rpc_lockd_enable="YES" rpc_statd_enable="YES"
Then you can run the following to restart the services involved.
service lockd restart service statd restart service mountd restart