<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic NFS: Static Port for rpc.mountd in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/nfs-static-port-for-rpc-mountd/m-p/2584900#M568495</link>
    <description>Hello!&lt;BR /&gt;&lt;BR /&gt;Is there a way to make the rpc.mountd bind to a predefined port under HP-UX 10.20?&lt;BR /&gt;&lt;BR /&gt;I know, the philosophy of RPC is the opposite, using the portmapper for port inquiries.&lt;BR /&gt;But filtering NFS on a firewall is virtually impossible without a predefined port for mountd.&lt;BR /&gt;I know other OS can do this - usually the option is "-P &lt;PORT&gt;". Is something like this possible with HP-UX 10.20?&lt;BR /&gt;Any information is appreciated!&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Enno&lt;/PORT&gt;</description>
    <pubDate>Tue, 25 Sep 2001 21:09:58 GMT</pubDate>
    <dc:creator>Enno Baars</dc:creator>
    <dc:date>2001-09-25T21:09:58Z</dc:date>
    <item>
      <title>NFS: Static Port for rpc.mountd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nfs-static-port-for-rpc-mountd/m-p/2584900#M568495</link>
      <description>Hello!&lt;BR /&gt;&lt;BR /&gt;Is there a way to make the rpc.mountd bind to a predefined port under HP-UX 10.20?&lt;BR /&gt;&lt;BR /&gt;I know, the philosophy of RPC is the opposite, using the portmapper for port inquiries.&lt;BR /&gt;But filtering NFS on a firewall is virtually impossible without a predefined port for mountd.&lt;BR /&gt;I know other OS can do this - usually the option is "-P &lt;PORT&gt;". Is something like this possible with HP-UX 10.20?&lt;BR /&gt;Any information is appreciated!&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Enno&lt;/PORT&gt;</description>
      <pubDate>Tue, 25 Sep 2001 21:09:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nfs-static-port-for-rpc-mountd/m-p/2584900#M568495</guid>
      <dc:creator>Enno Baars</dc:creator>
      <dc:date>2001-09-25T21:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: NFS: Static Port for rpc.mountd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nfs-static-port-for-rpc-mountd/m-p/2584901#M568496</link>
      <description>Enno,&lt;BR /&gt;&lt;BR /&gt;It is possible. Edit /etc/rc.config.d/nfsconf&lt;BR /&gt;and change the MOUNTD_OPTIONS to look like&lt;BR /&gt;&lt;BR /&gt;MOUNT_OPTIONS="-p port#"&lt;BR /&gt;&lt;BR /&gt;Restart nfs.server from /sbin/init.d &lt;BR /&gt;&lt;BR /&gt;-Sri&lt;BR /&gt;</description>
      <pubDate>Tue, 25 Sep 2001 21:14:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nfs-static-port-for-rpc-mountd/m-p/2584901#M568496</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2001-09-25T21:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: NFS: Static Port for rpc.mountd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nfs-static-port-for-rpc-mountd/m-p/2584902#M568497</link>
      <description>Hello Sridhar!&lt;BR /&gt;&lt;BR /&gt;Thanx for the information, but...&lt;BR /&gt;Are you sure this works on 10.20?&lt;BR /&gt;&lt;BR /&gt;Even though specifying this option gives no error when starting nfs.server, the port for mountd is still some random number (as advertised by portmapper).&lt;BR /&gt;With each restart the portnumber changes, but it's not what I specified. :-(&lt;BR /&gt;&lt;BR /&gt;ps shows that the process rpc.mountd is runnig with the option though.&lt;BR /&gt;&lt;BR /&gt;Am I missing something?&lt;BR /&gt;&lt;BR /&gt;Confused,&lt;BR /&gt;Enno&lt;BR /&gt;</description>
      <pubDate>Tue, 25 Sep 2001 21:41:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nfs-static-port-for-rpc-mountd/m-p/2584902#M568497</guid>
      <dc:creator>Enno Baars</dc:creator>
      <dc:date>2001-09-25T21:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: NFS: Static Port for rpc.mountd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nfs-static-port-for-rpc-mountd/m-p/2584903#M568498</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The -p option takes no arguments; it simply allows mountd to use unreserved ports.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 25 Sep 2001 22:02:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nfs-static-port-for-rpc-mountd/m-p/2584903#M568498</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-09-25T22:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: NFS: Static Port for rpc.mountd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nfs-static-port-for-rpc-mountd/m-p/2584904#M568499</link>
      <description>There are many know exploits against a large list of services that the portmapper provides access to. All RPC services register themselves at port 111 (the "portmapper" or rpcbind for the Solaris guys). The calling client will have to access port 111 to query and identify ports where the needed service is running and ultimately connect to the service. This can be done with both TCP and UDP.  &lt;BR /&gt;&lt;BR /&gt;So the point is that port 111 is a place to find out where services are running. Many  vulnerabilities exist with this port. For example, NFS has a known rpc-update exploit. Also, the NIS update daemon, rpc.ypupdated, contains vulnerabilities in how it passes commands to certain function calls. &lt;BR /&gt;&lt;BR /&gt;Filter TCP port 111, UDP port 111 (portmapper), TCP port 2049, and UDP port 2049 (nfsd). If you run NFS on a port other than 2049, determine which port is running NFS by  entering the following command on the machine in question: rpcinfo ?p&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Tony&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Sep 2001 18:32:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nfs-static-port-for-rpc-mountd/m-p/2584904#M568499</guid>
      <dc:creator>Anthony deRito</dc:creator>
      <dc:date>2001-09-26T18:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: NFS: Static Port for rpc.mountd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nfs-static-port-for-rpc-mountd/m-p/2584905#M568500</link>
      <description>Your question may be a result of CERT CA-1994-02 advisory warning but in case you did not see it here is the URL:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.cert.org/advisories/CA-1994-02.html" target="_blank"&gt;http://www.cert.org/advisories/CA-1994-02.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Tony&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Sep 2001 18:35:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nfs-static-port-for-rpc-mountd/m-p/2584905#M568500</guid>
      <dc:creator>Anthony deRito</dc:creator>
      <dc:date>2001-09-26T18:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: NFS: Static Port for rpc.mountd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nfs-static-port-for-rpc-mountd/m-p/2584906#M568501</link>
      <description>Hi Tony!&lt;BR /&gt;&lt;BR /&gt;Thanx for the information!&lt;BR /&gt;&lt;BR /&gt;I'm well aware of the dangers connected to RPC services - that's one of the reasons why I installed the firewall in the first place... :-)&lt;BR /&gt;&lt;BR /&gt;Now what I'm trying to do is quite the opposite:&lt;BR /&gt;My firewall has the default policy of blocking everyting. I just allow certain services from/to certain hosts.&lt;BR /&gt;One of those services is an NFS connection from an outside NFS client (which I trust, of course) to my NFS server. So I need to allow connections from that specific client to three ports on my server:&lt;BR /&gt;&lt;BR /&gt;portmapper - Port 111&lt;BR /&gt;nfsd - Port 2049&lt;BR /&gt;mountd - Port ???? (not static, changes at every nfs.server restart)&lt;BR /&gt;Without a static Port for mountd I would have to allow connections to any port on my server as mountd might be listening on any one of them - inacceptable!&lt;BR /&gt;&lt;BR /&gt;Hence the question: How can I tell mountd to bind to the same predefined port every time it starts?&lt;BR /&gt; &lt;BR /&gt;Cheers,&lt;BR /&gt;Enno</description>
      <pubDate>Thu, 27 Sep 2001 08:23:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nfs-static-port-for-rpc-mountd/m-p/2584906#M568501</guid>
      <dc:creator>Enno Baars</dc:creator>
      <dc:date>2001-09-27T08:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: NFS: Static Port for rpc.mountd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nfs-static-port-for-rpc-mountd/m-p/2584907#M568502</link>
      <description>Enno,&lt;BR /&gt;&lt;BR /&gt;My intent was to provide as much information to anyone who is following this thread? did not mean to under-estimate your level  of knowledge in these issues.  I think with security, we all have a lot to learn so I try to provide as much information as possible. &lt;BR /&gt;&lt;BR /&gt;Speaking of learning, I learned today that certain operating systems, including HP-UX, make rpc information available at other undocumented ports.  I?ve learned that there is use of an undocumented port for rpcbind under Solaris 2.X operating systems. It seems as though on Solaris 2.x, rpcbind listens not only on TCP port 111, and UDP port 111, but also on a port a port greater that 32770!! Instead of sending requests to TCP or UDP port 111, the attacker simply sends them to a UDP port greater than 32770 on which rpcbind is listening and presto? they?re in. This would lead to a huge number of packet filters which would intend to block access to rpcbind/portmapper in order to be effective.  Sun has a patch to address this issue. Maybe HP also has addressed this issue... it would be worth looking into. I am not able to provide you with information on forcing RPC to use specific ports consistently.&lt;BR /&gt;&lt;BR /&gt;Good luck ?&lt;BR /&gt;&lt;BR /&gt;Tony&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Sep 2001 17:28:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nfs-static-port-for-rpc-mountd/m-p/2584907#M568502</guid>
      <dc:creator>Anthony deRito</dc:creator>
      <dc:date>2001-09-27T17:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: NFS: Static Port for rpc.mountd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nfs-static-port-for-rpc-mountd/m-p/2584908#M568503</link>
      <description>Enno&lt;BR /&gt;&lt;BR /&gt;did you ever fidn a way to do this? &lt;BR /&gt;&lt;BR /&gt;I too would like to assign a static port to  nfs rpc services so i can use a firewall between the my nfs servers network and my nfs clients network.&lt;BR /&gt;&lt;BR /&gt;If you founmd a way to do this could you let me know?&lt;BR /&gt;&lt;BR /&gt;Thanks &lt;BR /&gt;&lt;BR /&gt;Kevin</description>
      <pubDate>Wed, 04 Aug 2004 08:24:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nfs-static-port-for-rpc-mountd/m-p/2584908#M568503</guid>
      <dc:creator>Kevin Sorohan</dc:creator>
      <dc:date>2004-08-04T08:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: NFS: Static Port for rpc.mountd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nfs-static-port-for-rpc-mountd/m-p/2584909#M568504</link>
      <description>Hello Enno,&lt;BR /&gt;&lt;BR /&gt;No, there is no way to get rpc.mountd to start on the same port every time it comes up.  On HP-UX 10.20, the daemon is coded to select an available port in the reserved range (1-1024) by default.  &lt;BR /&gt;&lt;BR /&gt;Also, the -p option is incorrectly documented in the man page for mountd on 10.20.  The -p option does not allow rpc.mountd to register on ports in the non-reserved range.  What -p does is it allows rpc.mountd to *accept requests* that arrive on non-reserved ports.  In other words, without the -p option, mountd will only listen to MOUNT/UNMOUNT etc. requests that arrive on ports in the range 1-1024.  The thinking is that you must be a root user to use a port in this range, so mountd is using the port range as a type of security check.  Launching rpc.mountd with the -p option tells mountd to disable this check and accept requests regardless of which port number they arrive on.&lt;BR /&gt;&lt;BR /&gt;On newer releases of HP-UX (i.e. 11.0 and newer), the rpc.mountd daemon obtains an available port in the non-reserved range (48K-64K).&lt;BR /&gt;&lt;BR /&gt;Even on the latest HP-UX releases, there is no way to "fix" rpc.mountd (or rpc.lockd, rpc.statd) to a specific port number.  These daemons always ask for an available port number in the anonymous range.  &lt;BR /&gt;&lt;BR /&gt;This is one of the improvments NFS V4 will offer, where all requests - NFS, MOUNT, LOCK, etc. - will be sent to the nfsd port 2049, so configuring V4 for firewall access will be simple compared to today's implementation.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Dave</description>
      <pubDate>Wed, 04 Aug 2004 14:07:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nfs-static-port-for-rpc-mountd/m-p/2584909#M568504</guid>
      <dc:creator>Dave Olker</dc:creator>
      <dc:date>2004-08-04T14:07:17Z</dc:date>
    </item>
  </channel>
</rss>

