Fedora 16 NFS firewall setup
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2011
    Posts
    25

    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

  2. #2
    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
    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!

  3. #3
    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!!

Similar Threads

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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •