Fedora Linux Support Community & Resources Center
Old 12th January 2012, 07:03 AM
mattyclarkson Offline
Registered User
Join Date: Jun 2011
Posts: 25
Fedora 16 NFS firewall setup


I previously posted about setting up NFS to work with the firwall on Fedora 15. This is done following this method.

However, the /etc/sysconfig/nfs file only has:

# Path to remote quota server. See rquotad(8)
# Port rquotad should listen on.
# Optinal options passed to rquotad
# Optional arguments passed to in-kernel lockd
# TCP port rpc.lockd should listen on.
# UDP port rpc.lockd should listen on.
# Optional arguments passed to rpc.nfsd. See rpc.nfsd(8)
# Number of nfs server processes to be started.
# The default is 8. 
# Set V4 grace period in seconds
# Optional arguments passed to rpc.mountd. See rpc.mountd(8)
# Optional arguments passed to rpc.statd. See rpc.statd(8)
# Optional arguments passed to rpc.idmapd. See rpc.idmapd(8)
# Optional arguments passed to rpc.gssd. See rpc.gssd(8)
# Optional arguments passed to rpc.svcgssd. See rpc.svcgssd(8)
# To enable RDMA support on the server by setting this to
# the port the server should listen on
# Optional arguments passed to blkmapd. See blkmapd(8)
So i can't set the ports to static numbers for some of the other NFS services.

Does anyone know how to set the NFS ports in Fedora 16?

Reply With Quote
Old 4th March 2012, 12:56 AM
bobbrush Offline
Registered User
Join Date: Jul 2011
Location: West Virginia
Posts: 6
Re: Fedora 16 NFS firewall setup

I usually add the following to /etc/sysconfig/nfs

# NFS port numbers

on fedora 16 for some reason it is ignoring these and only the lockd is working..

I know that doesn't help, but it does confirm a problem of some kind

---------- Post added at 06:56 PM ---------- Previous post was at 01:15 PM ----------

Try this:

sudo sed -i 's/STATDARG/#STATDARG/g' /etc/sysconfig/nfs
sudo sed -i 's/RPCMOUNTDOPTS/#RPCMOUNTDOPTS/g' /etc/sysconfig/nfs
sudo sed -i 's/RPCRQUOTADOPTS/#RPCRQUOTADOPTS/g' /etc/sysconfig/nfs

echo '# NFS port numbers
STATDARG="--outgoing-port 10003 --port 10002"
RPCMOUNTDOPTS="--port 10004"
RPCRQUOTADOPTS="--port 10005"
LOCKD_TCPPORT="30001"' | sudo tee -a /etc/sysconfig/nfs

sudo systemctl restart nfs-lock.service
sudo systemctl restart nfs-server.service

Hope it works for you!
Reply With Quote
Old 8th March 2012, 12:14 AM
mattyclarkson Offline
Registered User
Join Date: Jun 2011
Posts: 25
Re: Fedora 16 NFS firewall setup

OK so it is done by arguments now - thanks.

I will try soon and report back.

Thank you!!
Reply With Quote

fedora, firewall, nfs, setup

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to setup a Fedora 5/6 firewall Baransu Servers & Networking 5 15th February 2007 02:52 PM
Firewall Setup Help Elliot Servers & Networking 4 19th February 2006 05:32 AM
how to setup FC3 firewall nick1 Security and Privacy 5 10th April 2005 03:56 PM
Setup firewall satimis Security and Privacy 6 30th July 2004 11:20 PM
how to setup firewall me_Max Using Fedora 5 8th April 2004 11:27 PM

Current GMT-time: 10:09 (Wednesday, 23-08-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat