BSD Newsletter.com
   Front | Info | Lists | Newsfeeds | Study Guide | What is BSD?
Advertisement: The OpenBSD PF Packet Filter Book: PF for NetBSD, FreeBSD, DragonFly and OpenBSD

BSD Links
·New Links
·Advocacy
·Drivers
·Events
·Flavours
·FAQs
·Guides
·Programming
·Security
·Software
·User Groups

This is the BSDA Study Guide Book written via a wiki collaboration. This is a work in progress. You may contribute to or discuss this specific page at http://bsdwiki.reedmedia.net/wiki/Configure_data_to_be_available_through_NFS.html.

Configure data to be available through NFS

Concept

Be aware of the utilities associated with NFS and the security risks associated with allowing RPC through a firewall. In addition, be able to configure a NFS server or client according to a set of requirements on the data to be made available.

Introduction

To configure NFS server to start automatically on system boot on FreeBSD add to /etc/rc.conf file:

rpcbindenable="YES"
nfsserverenable="YES"
mountdflags="-r"

You may add to mountd_flags the -p 800 to restrict mountd to listen on given port.

To configuring NFS server on OpenBSD add to /etc/rc.conf or /etc/rc.conf.local:

portmap=YES
nfs_server=YES

Manual boot:

Examples

Sample /etc/exports configuration file:

/home/exports -network 192.168.112.0 -mask 255.255.255.0
/usr/local/www -maproot=0 myhost.mydomain.org

Practice Exercises

More information

exports(5), nfsd(8), mountd(8), rpcbind(8) or portmap(8), rpc.lockd(8), rpc.statd(8), rc.conf(5) and mount_nfs(8)



Front | Information | Lists | Newsfeeds