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

Hello,

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:

Code:
#
# Path to remote quota server. See rquotad(8)
#RQUOTAD="/usr/sbin/rpc.rquotad"
# Port rquotad should listen on.
RQUOTAD_PORT=875
# Optinal options passed to rquotad
RPCRQUOTADOPTS=""
#
# Optional arguments passed to in-kernel lockd
#LOCKDARG=
# TCP port rpc.lockd should listen on.
LOCKD_TCPPORT=32803
# UDP port rpc.lockd should listen on.
LOCKD_UDPPORT=32769
#
# Optional arguments passed to rpc.nfsd. See rpc.nfsd(8)
RPCNFSDARGS=""
# Number of nfs server processes to be started.
# The default is 8. 
RPCNFSDCOUNT=8
# Set V4 grace period in seconds
#NFSD_V4_GRACE=90
#
# Optional arguments passed to rpc.mountd. See rpc.mountd(8)
RPCMOUNTDOPTS=""
#
# Optional arguments passed to rpc.statd. See rpc.statd(8)
STATDARG=""
#
# Optional arguments passed to rpc.idmapd. See rpc.idmapd(8)
RPCIDMAPDARGS=""
#
# Optional arguments passed to rpc.gssd. See rpc.gssd(8)
RPCGSSDARGS=""
#
# Optional arguments passed to rpc.svcgssd. See rpc.svcgssd(8)
RPCSVCGSSDARGS=""
#
# To enable RDMA support on the server by setting this to
# the port the server should listen on
#RDMA_PORT=20049 
#
# Optional arguments passed to blkmapd. See blkmapd(8)
BLKMAPDARGS=""
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?

Matt
Reply With Quote
  #2  
Old 3rd March 2012, 11:56 PM
bobbrush Offline
Registered User
 
Join Date: Jul 2011
Location: West Virginia
Posts: 6
linuxfirefox
Re: Fedora 16 NFS firewall setup

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

# NFS port numbers
STATD_PORT=10002
STATD_OUTGOING_PORT=10003
MOUNTD_PORT=10004
RQUOTAD_PORT=10005
LOCKD_UDPPORT=30001
LOCKD_TCPPORT=30001
RQUOTAD="/usr/sbin/rpc.rquotad"

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_UDPPORT="30001"
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
  #3  
Old 7th March 2012, 11:14 PM
mattyclarkson Offline
Registered User
 
Join Date: Jun 2011
Posts: 25
linuxchrome
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
Reply

Tags
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 01:52 PM
Firewall Setup Help Elliot Servers & Networking 4 19th February 2006 04: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: 21:10 (Saturday, 25-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

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
Pangkalanbuun Instagram Photos - Kuala Lumpur Photos - Cowley