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 -mask

This will allow the IP of 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:


Then you can start the individual processes. They are as follows:

service rpcbind restart
service nfsd restart
service mountd restart

Connectivity Issues with Linux
mount.nfs: access denied by server while mounting

mountd[9001]: mount request from 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"

Then you can run the following to restart the services involved.

service lockd restart
service statd restart
service mountd restart

Leave A Comment

Enter the number: 3197