Binding ports for NFS

Res res at
Fri Dec 16 07:28:52 UTC 2005


On Thu, 15 Dec 2005, redhatdude at wrote:

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

You should know the IP of the server in question, allow that server 
unrestricted access in your firewall, if its on your LAN, have the router 
filter 2049 and 111 completely from the internet (tcp and udp)

Also if your LAN is in your 


If you only want to put in single IP's put them in in this format:
note, yes thats -  I.P space comma space I.P

and in /etc/hosts.deny:

portmap: ALL
lockd: ALL
statd: ALL
mountd: ALL
rquotad: ALL


More information about the fedora-list mailing list