Specifically setting NFS ports, rogue statd port

Posted on 2008-11-19
Last Modified: 2013-12-02
I have NFS set up on a server using static ports due to having iptables running on the same machine.  I set up mountd, lockd, and statd to use specific ports, but on reboot statd uses one of the ports I specified and additionally picks a dynamic port in the 6xx range.  I have confirmed this with netstat, see below

tcp        0      0   *               LISTEN      3417/portmap    
tcp        0      0 *               LISTEN      3436/rpc.statd  
tcp        0      0 *               LISTEN      3904/rpc.mountd
udp        0      0   *                           3436/rpc.statd  <-- The elusive port
udp        0      0   *                           3417/portmap    
udp        0      0 *                           3436/rpc.statd  
udp        0      0 *                           3904/rpc.mountd

I am running on Ubuntu 8.04 and have done the following:
  STATDOPTS="--port 32765 --outgoing-port 32766"

  RPCMOUNTDOPTS="-p 32767"

options lockd nlm_udpport=32768 nlm_tcpport=32768

Any help is appreciated.
Question by:mynamebecory2
    1 Comment
    LVL 1

    Accepted Solution

    Apparently this is a bug in Ubuntu 8.04, dont know if its resolved, the page is currently down.  Here is the google cache:

    Original Page (again, down as of posting):

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
    The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now