Based on
http://www.ba.infn.it/calcolo/documenti/NFSServer.html
NFS server has a lot ports to open and if your NFS server running with IPTables, NFS client may can't access it. Here's how to configure NFS' ports
- Portmapper (portmap): uses port 111 on both TCP and UDP protocols.
- NFS daemon (rpc.nfsd): uses port 2049 on both TCP and UDP protocols.
- Status (rpc.statd): normally uses a random port allocated by portmapper. It is possible to configure a fixed port number by supplying the "-p" command option when the program is launched. Edit the file /etc/init.d/nfslock, find the line "daemon rpc.statd" and add the option:
STATD_PORT=4000
right before start() function
- mountd (rpc.mountd): normally uses a random port allocated by portmapper. It is possible to configure a fixed port number by supplying the ā-pā command line option when the program is launched. This can be done by editing the file /etc/sysconfig/network and adding the following line:
MOUNTD_PORT=4002
- NFS lock manager (rpc.lockd): normally uses a random port allocated by portmapper. On systems where the lock manager is implemented as a loadable module (RedHat 7.3 and greater, Mandrake 8.2 and greater) the port number used is set at module load time, and so is configured by adding (or editing) a line in the /etc/modprobe.conf file, as follows:
options lockd nlm_udpport=4001 nlm_tcpport=4001
you may want to restart your linux box to activate modprobe
- rquotad (rpc.quotad): if your system is not already running "quota" version 3.08 or later, download it from the linuxquota website. Remove the old version and install the new quota package:
[
more.. ]