<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>nixCraft Linux / UNIX / Shell Scripting Forum - File Servers</title>
		<link>http://nixcraft.com/</link>
		<description>Discussion about Samba, NFS and other UNIX / Linux file servers.</description>
		<language>en</language>
		<lastBuildDate>Wed, 19 Jun 2013 23:54:24 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://nixcraft.com/images/misc/rss.png</url>
			<title>nixCraft Linux / UNIX / Shell Scripting Forum - File Servers</title>
			<link>http://nixcraft.com/</link>
		</image>
		<item>
			<title>Tunneling NFS over ssh</title>
			<link>http://nixcraft.com/file-servers/19763-tunneling-nfs-over-ssh.html</link>
			<pubDate>Wed, 05 Jun 2013 07:05:25 GMT</pubDate>
			<description>Hello, 
 
I need help on tunneling NFS over ssh. I am testing first on a local network and next time over WAN but even in local network I cannot get...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div><!-- google_ad_section_start -->Hello,<br />
<br />
I need help on tunneling NFS over ssh. I am testing first on a local network and next time over WAN but even in local network I cannot get it working.<br />
Here are my settings:<br />
NFS server<br />
   OS = CentOS 6.4<br />
   IP = 192.168.40.10<br />
# exportfs -v<br />
/home/development<br />
                192.168.40.11(rw,wdelay,no_root_squash,no_subtree_  check)<br />
/export/development<br />
                192.168.40.10(rw,wdelay,no_root_squash,no_subtree_  check,fsid=1)<br />
/export         127.0.0.1(ro,wdelay,root_squash,no_subtree_check,f  sid=0)<br />
<br />
# rpcinfo -p<br />
   program vers proto   port  service<br />
    100000    4   tcp    111  portmapper<br />
    100000    3   tcp    111  portmapper<br />
    100000    2   tcp    111  portmapper<br />
    100000    4   udp    111  portmapper<br />
    100000    3   udp    111  portmapper<br />
    100000    2   udp    111  portmapper<br />
    100024    1   udp  50035  status<br />
    100024    1   tcp  43939  status<br />
    100011    1   udp    875  rquotad<br />
    100011    2   udp    875  rquotad<br />
    100011    1   tcp    875  rquotad<br />
    100011    2   tcp    875  rquotad<br />
    100005    1   udp    892  mountd<br />
    100005    1   tcp    892  mountd<br />
    100005    2   udp    892  mountd<br />
    100005    2   tcp    892  mountd<br />
    100005    3   udp    892  mountd<br />
    100005    3   tcp    892  mountd<br />
    100003    2   tcp   2049  nfs<br />
    100003    3   tcp   2049  nfs<br />
    100003    4   tcp   2049  nfs<br />
    100227    2   tcp   2049  nfs_acl<br />
    100227    3   tcp   2049  nfs_acl<br />
    100003    2   udp   2049  nfs<br />
    100003    3   udp   2049  nfs<br />
    100003    4   udp   2049  nfs<br />
    100227    2   udp   2049  nfs_acl<br />
    100227    3   udp   2049  nfs_acl<br />
    100021    1   udp  32769  nlockmgr<br />
    100021    3   udp  32769  nlockmgr<br />
    100021    4   udp  32769  nlockmgr<br />
    100021    1   tcp  32803  nlockmgr<br />
    100021    3   tcp  32803  nlockmgr<br />
    100021    4   tcp  32803  nlockmgr<br />
<br />
NFS client<br />
   OS = CentOS 6.4<br />
   IP = 192.168.40.11<br />
<br />
steps:<br />
1. do a ssh tunnel<br />
   ssh -f -c blowfish -L 3333:192.168.40.10:2049 -l admin 192.168.40.10 sleep 1d<br />
   ssh -f -c blowfish -L 4444:192.168.40.10:32803 -l admin 192.168.40.10 sleep 1d<br />
<br />
2. mount<br />
   # mount -t nfs -o tcp,port=3333,mountport=4444 localhost:/export/development /mnt/temp/<br />
      mount.nfs: access denied by server while mounting localhost:/export/development<br />
   # mount -t nfs4 -o tcp,port=3333,mountport=4444 localhost:/export/development /mnt/temp/<br />
      mount.nfs4: mounting localhost:/export/development failed, reason given by server: No such file or directory<br />
   # mount -o tcp,port=3333,mountport=4444 localhost:/export/development /mnt/temp/<br />
      mount.nfs: Protocol family not supported<br />
<br />
<br />
I am following this HowTo.<br />
<a href="http://www.howtoforge.com/nfs_ssh_tunneling" target="_blank">[Debian-Sarge] Tunneling NFS over SSH | HowtoForge - Linux Howtos and Tutorials</a><!-- google_ad_section_end --></div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://nixcraft.com/file-servers/">File Servers</category>
			<dc:creator>warren</dc:creator>
			<guid isPermaLink="true">http://nixcraft.com/file-servers/19763-tunneling-nfs-over-ssh.html</guid>
		</item>
	</channel>
</rss>
