English
Ask Your Question
0

What NFS Ports to Open?

asked 2013-04-22 19:35:03 +0000

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 delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2013-04-25 16:06:57 +0000

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"?>
<service>
  <short>mountd</short>
  <description>Mount Lock Daemon</description>
  <port protocol="tcp" port="20048"/>
  <port protocol="udp" port="20048"/>
</service>
EOD

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

  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 publish link more
0

answered 2013-04-22 20:36:01 +0000

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

edit flag offensive delete publish link more

Comments

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

deanhunter ( 2013-04-22 21:05:29 +0000 )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 ( 2013-04-22 21:13:40 +0000 )edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

Add answer

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers to your questions.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.

Stats

Asked: 2013-04-22 19:35:03 +0000

Seen: 840 times

Last updated: Apr 25 '13