Ask Your Question

What NFS Ports to Open?

asked 2013-04-22 14:35:03 -0500

deanhunter gravatar image

With Fedora 18, where do I find the list of ports that need to be opened to use nfs-server?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2013-04-22 15:36:01 -0500

thunderbirdtr gravatar image

You can find everything you need in here; Fedora Doc NFS Server Configuration

edit flag offensive delete link more


The Fedora 18 /etc/sysconfig/nfs does not seem to have the same variables as discussed in the referenced document:

deanhunter gravatar imagedeanhunter ( 2013-04-22 16:05:29 -0500 )edit

In section 9.6.3. Running NFS Behind a Firewall, the Fedora 14 Storage Administration Guide references two parameters that are not in the Fedora 18 /etc/sysconfig/nfs file:

STATDPORT=port Controls which TCP and UDP port status (rpc.statd) uses. LOCKDTCPPORT=port Controls which TCP port nlockmgr (rpc.lockd) uses.

Are these still required?

deanhunter gravatar imagedeanhunter ( 2013-04-22 16:13:40 -0500 )edit

answered 2013-04-25 11:06:57 -0500

deanhunter gravatar image

Here is what I had to do to get NFS server running on Fedora 18:

# Enable NFS server

  systemctl enable nfs-lock.service
  systemctl enable nfs-server.service

  systemctl start  nfs-lock.service
  systemctl start  nfs-server.service

  cat >/etc/firewalld/services/mountd.xml <<EOD
<?xml version="1.0" encoding="utf-8"?>
  <description>Mount Lock Daemon</description>
  <port protocol="tcp" port="20048"/>
  <port protocol="udp" port="20048"/>

  cat >/etc/firewalld/services/rpc-bind.xml <<EOD
<?xml version="1.0" encoding="utf-8"?>
  <description>Remote Procedure Call Bind</description>
  <port protocol="tcp" port="111"/>
  <port protocol="udp" port="111"/>

  restorecon /etc/firewalld/services

  firewall-cmd --permanent --zone public --add-service mountd
  firewall-cmd --permanent --zone public --add-service rpc-bind
  firewall-cmd --permanent --zone public --add-service nfs
  firewall-cmd --reload
  firewall-cmd --list-all
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2013-04-22 14:35:03 -0500

Seen: 3,201 times

Last updated: Apr 25 '13