Binding ports for NFS

Tony Molloy tony.molloy at
Fri Dec 16 14:01:07 UTC 2005

On Friday 16 December 2005 04:56, redhatdude at wrote:
> Hi,
> Let's see if I have more luck with this question and somebody answers
> it.
> I'm trying to share a folder using NFS. The problem I'm having is
> with the ports some of the daemons use and the firewall. The ports
> for portmapper and nfsd remain the same all the time and I can open
> them in the firewall. However, daemons such as lockd and mountd
> change every time I load the nfs service. What I'd like to do is bind
> these daemos to a specific port that would remain open in the
> firewall. How can I accomplish that?
> Thanks a lot for any help,
> EJ

On a fedora system put the following in /etc/sysconfig/nfs. It defines the 
ports for the various daemons to use.

# Created 05.07.05 by Tony Molloy
# based on work by Christopher K. Johnson ( )


# ports for statd daemon

# ports for lockd daemon

# ports for mountd daemon

# ports for rquota daemon

Make sure you allow access to these daemons in your /etc/hosts.allow file 
and through your firewall.


Tony Molloy.

Dept. of Comp. Sci.
University of Limerick

More information about the fedora-list mailing list