<?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 Re: NFS over SSH tunnel in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/nfs-over-ssh-tunnel/m-p/7007533#M104318</link>
    <description>&lt;P&gt;&amp;gt; I'm trying to get NFS working between 2 openvms servers using an SSH&lt;BR /&gt;&amp;gt; tunnel. [...]&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; I don't do enough with either NFS or SSH to know anything, but...&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] port 111 [...] 2049 [...]&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; I'd expect both of those to be needed, but my dim understanding of&lt;BR /&gt;the portmapper was that it was used to negotiate other ports, too.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tcpip show portmapper&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; A quick Web search ("nfs ports") found a guide for GNU/Linux which&lt;BR /&gt;includes a section (6.5) on "Tunneling NFS through SSH", which talks&lt;BR /&gt;about pinning particular services to particular ports, which may or may&lt;BR /&gt;not be possible on VMS+TCPIP:&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="http://tldp.org/HOWTO/NFS-HOWTO/security.html" target="_blank"&gt;http://tldp.org/HOWTO/NFS-HOWTO/security.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Knowing nothing, I'd be looking for something fancier than SSH&lt;BR /&gt;tunnels for this, like, perhaps, a VPN or IPsec, where dynamically&lt;BR /&gt;negotiated ports might cause less trouble.&lt;/P&gt;</description>
    <pubDate>Thu, 31 May 2018 13:37:56 GMT</pubDate>
    <dc:creator>Steven Schweda</dc:creator>
    <dc:date>2018-05-31T13:37:56Z</dc:date>
    <item>
      <title>NFS over SSH tunnel</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/nfs-over-ssh-tunnel/m-p/7007505#M104317</link>
      <description>&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;I'm trying to get NFS working between 2 openvms servers using an SSH tunnel. The client is running 7.3-2 TCPIP v5.4 eco 7 - Host1 (client) and server is running 8.4-2L1 TCPIP 5.7 eco 5 - Host2 (server).&amp;nbsp; The mount is tested and working locally on host2.&lt;/P&gt;&lt;P&gt;on host2 nfs setup&lt;/P&gt;&lt;P&gt;tcpip map "/test" dsa0:&lt;/P&gt;&lt;P&gt;tcpip add export "/test/smg/test"/option=typeless/host=(host1,host2)&lt;/P&gt;&lt;P&gt;tcpip add proxy/host=(*)/nfs/uid=65/gid=50 testacc&lt;/P&gt;&lt;P&gt;from host1&lt;/P&gt;&lt;P&gt;tcpip mount dnfs111:[smg.test]/host="host2"/path="&lt;SPAN&gt;/test/smg/test"/processor=UNIQUE/gid=50/uid=65/write&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;As the tcpip mount command doesnt allow a specifc port to be define I've tried with port 111 to create the tunnel using. Looking at tcpdump traces form a normal nfs it connects to port 111.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ssh -"L" 111:localhost:111 host2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;which should map to the portmapper on host2... however i get timeout on the mount from host1.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;tcpip mount dnfs111:[smg.test]/host="localhost"/path="/test/smg/test"/processor=UNIQUE/gid=50/uid=65/write&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;%TCPIP$DNFSMOUNT-E-MOUNTFAIL, error mounting _DNFS111:[SMG.TEST]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-SYSTEM-F-TIMEOUT, device timeout&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I can create tunnels to telnet and web services on host2 on the same port using ssh -"L" 111:localhost:80 for example and tested using telnet/port=111 localhost.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've also created a local proxy on host2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;tcpip add proxy/host=(host2)/nfs/uid=65/gid=50 testacc&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;a tcpdump shows that the mount gets no response from the localhost on port 111 and is followed by an ICMP destination unreachable (port unreachable)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've had a look at 8.4-2l1 TCPIP 5.7 eco 5 which in help has a tcpip mount/port qualifier but when you try and use it i get the following no matter where i place the qualifier:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CLI-W-IVQUAL, unrecognized qualifier&amp;nbsp;- check validity, spelling, and placement&lt;BR /&gt;\PORT\&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm wondering if the qualifer doesnt actually exist....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've also tried a tunnel on 2049 as well with the same timeout response.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Has anyone had any joy with NFS over SSH tunnel with OpenVMS?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ted&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 09:57:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/nfs-over-ssh-tunnel/m-p/7007505#M104317</guid>
      <dc:creator>Ted_Maul</dc:creator>
      <dc:date>2018-05-31T09:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: NFS over SSH tunnel</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/nfs-over-ssh-tunnel/m-p/7007533#M104318</link>
      <description>&lt;P&gt;&amp;gt; I'm trying to get NFS working between 2 openvms servers using an SSH&lt;BR /&gt;&amp;gt; tunnel. [...]&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; I don't do enough with either NFS or SSH to know anything, but...&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] port 111 [...] 2049 [...]&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; I'd expect both of those to be needed, but my dim understanding of&lt;BR /&gt;the portmapper was that it was used to negotiate other ports, too.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tcpip show portmapper&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; A quick Web search ("nfs ports") found a guide for GNU/Linux which&lt;BR /&gt;includes a section (6.5) on "Tunneling NFS through SSH", which talks&lt;BR /&gt;about pinning particular services to particular ports, which may or may&lt;BR /&gt;not be possible on VMS+TCPIP:&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="http://tldp.org/HOWTO/NFS-HOWTO/security.html" target="_blank"&gt;http://tldp.org/HOWTO/NFS-HOWTO/security.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Knowing nothing, I'd be looking for something fancier than SSH&lt;BR /&gt;tunnels for this, like, perhaps, a VPN or IPsec, where dynamically&lt;BR /&gt;negotiated ports might cause less trouble.&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 13:37:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/nfs-over-ssh-tunnel/m-p/7007533#M104318</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2018-05-31T13:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: NFS over SSH tunnel</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/nfs-over-ssh-tunnel/m-p/7007645#M104319</link>
      <description>&lt;P&gt;&lt;BR /&gt;thanks for the reply.&lt;/P&gt;&lt;P&gt;i found this &lt;A href="http://www2.cs.siu.edu/~cs491-2/projects/tzigler-snfs.pdf" target="_blank"&gt;http://www2.cs.siu.edu/~cs491-2/projects/tzigler-snfs.pdf&lt;/A&gt; which is for unix but explains the principle. with some unix you can specify the port that mount uses. thats why i was hoping that the tcpip mount/port would work so i could use a different local port instead of 111 to prevent any issues with using that port and to confirm which port it is actually using.....the help for it says this:&lt;/P&gt;&lt;P&gt;MOUNT&lt;/P&gt;&lt;P&gt;/PORT&lt;/P&gt;&lt;P&gt;/PORT=n&lt;/P&gt;&lt;P&gt;Optional. Default: 0.&lt;/P&gt;&lt;P&gt;The port number to connect to the NFS server on. If the default&lt;BR /&gt;value of 0 is used, then query the remote host's portmapper for the&lt;BR /&gt;port number. If the remote hosts' portmapper does not respond with&lt;BR /&gt;a valid port number, then port number 2049 is used.&lt;/P&gt;&lt;P&gt;but it doesnt look like its actually implemented..... it doesnt help me going from 7.3-2 to 8.42l1 but it will prove it works and why it doesnt work from 7.3-2.... it suggests that a tunnel straight to 2049 rather than 111 should work but it doesnt......&lt;BR /&gt;looking at the tcpdump when a normal mount is tried ports 111, 10 and 2049 are the destination ports used in that sequence which is what is in portmapper, but mapping those ports doesnt work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;i've tried with wildcarding the proxy and export and mounting /host=localhost but still no response from the nfs service..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jun 2018 10:02:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/nfs-over-ssh-tunnel/m-p/7007645#M104319</guid>
      <dc:creator>Ted_Maul</dc:creator>
      <dc:date>2018-06-01T10:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: NFS over SSH tunnel</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/nfs-over-ssh-tunnel/m-p/7008214#M104321</link>
      <description>&lt;P&gt;i found this &lt;A href="http://www2.cs.siu.edu/~cs491-2/projects/tzigler-snfs.pdf" target="_blank"&gt;http://www2.cs.siu.edu/~cs491-2/projects/tzigler-snfs.pdf&lt;/A&gt; which is for unix but explains the principle. with some unix you can specify the port that mount uses and thats why i was hoping that the v8.4-2l1 tcpip mount/port would work so i could use a different local port instead of 111 to prevent any issues with using that port and to confirm which port it is actually using.....the help for it says this:&lt;/P&gt;&lt;P&gt;MOUNT&lt;/P&gt;&lt;P&gt;/PORT&lt;/P&gt;&lt;P&gt;/PORT=n&lt;/P&gt;&lt;P&gt;Optional. Default: 0.&lt;/P&gt;&lt;P&gt;The port number to connect to the NFS server on. If the default&lt;BR /&gt;value of 0 is used, then query the remote host's portmapper for the&lt;BR /&gt;port number. If the remote hosts' portmapper does not respond with&lt;BR /&gt;a valid port number, then port number 2049 is used.&lt;/P&gt;&lt;P&gt;but it doesnt look like its actually implemented..... it doesnt help me going from 7.3-2 to 8.42l1 but it will prove it works and why it doesnt work from 7.3-2.... it suggests that a tunnel straight to 2049 rather than 111 should work but it doesnt unless i'm doing something wrong......&lt;/P&gt;&lt;P&gt;looking at the tcpdump when a normal mount is tried ports 111, 10 and 2049 are the destination ports used which is what is also in portmapper on the remote server...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2018 09:24:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/nfs-over-ssh-tunnel/m-p/7008214#M104321</guid>
      <dc:creator>Ted_Maul</dc:creator>
      <dc:date>2018-06-07T09:24:48Z</dc:date>
    </item>
  </channel>
</rss>

