Configuring an NFS Server

Setting up your FreeBSD machine to be an NFS server involves a one-line addition to /etc/rc.conf:

nfs_server_enable="YES"

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

Get FreeBSD® Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.