Configuring an NFS Server
Setting up your FreeBSD machine to be an NFS server involves a one-line addition to /etc/rc.conf:
Also, make sure that portmap_enable is set to “YES” (as it is by default unless you override it). The portmap daemon needs to be running in order for NFS to work because the NFS server needs a mechanism by which to tell its clients which port to connect to. UDP services operate with only one “connection” per port, so while initial connections to the NFS server take place on the server port 2049, these connections are mapped by RPC (remote procedure call) services, provided by portmap, to a new and unused server port. Note that portmap services are fairly insecure and subject to a number of recurring ...