System information

Controls which TCP and UD P port mo untd (rpc. mo untd ) uses.
ST AT D _P O R T = port
Controls which TCP and UD P port status (rpc. statd ) uses.
LO C KD _T C P P O RT = port
Controls which TCP port nl o ckmg r (l o ckd ) uses.
LO C KD _UD P P O R T = port
Controls which UD P port nl o ckmg r (l o ckd ) uses.
If NFS fails to start, check /var/l o g /messag es. Normally, NFS will fail to start if you specify a port
number that is already in use. After editing /etc/sysco nfi g/nfs, restart the NFS service using
servi ce nfs restart. Run the rpci nfo -p command to confirm the changes.
To configure a firewall to allow NFS, perform the following steps:
Pro ced u re 9 .1. Co n f ig u re a f irewall t o allo w NFS
1. Allow TCP and UD P port 2049 for NFS.
2. Allow TCP and UDP port 111 (rpcbi nd /sunrpc).
3. Allow the TCP and UDP port specified with MO UNT D _P O RT = "port"
4. Allow the TCP and UDP port specified with ST AT D _P O R T = "port"
5. Allow the TCP port specified with LO C KD _T C P P O RT = "port"
6. Allow the UDP port specified with LO C KD _UD P P O R T = "port"
Note
To allow NFSv4.0 callbacks to pass through firewalls set
/pro c/sys/fs/nfs/nfs_cal l back_tcppo rt and allow the server to connect to that port
on the client.
This process is not needed for NFSv4.1 or higher, and the other ports for mo untd , statd , and
l o ckd are not required in a pure NFSv4 environment.
9.7 .3.1 . Disco vering NFS expo rt s
There are two ways to discover which file systems an NFS server exports.
First, on any server that supports NFSv2 or NFSv3, use the sho wmo unt command:
$ showmount -e myserver
Export list for mysever
/exports/foo
/exports/bar
Second, on any server that supports NFSv4, mount / and look around.
Chapt er 9 . Net work File Syst em (NFS)
67