Differences

This shows you the differences between two versions of the page.

doc:howto:nfs.client [2012/11/30 16:45]
karlp added nfs4 vs nfs3 workaround for fedora
doc:howto:nfs.client [2014/05/17 15:46] (current)
tmomas typo correction + cosmetics
Line 19: Line 19:
'' ''
-<code>WARNING ! The librpc is missing in some versions. You can safelty use -force-depends if it happens to you</code>+**WARNING:** The librpc is missing in some versions. You can safely use ''-force-depends'' if it happens to you 
 + 
 +Note that to use ''mount -t cifs'', NFS mount support in busybox has to be enabled.
==== Configuration ==== ==== Configuration ====
Line 35: Line 37:
The ''nolock'' will disable NFS file locking. If you really need file locking, you must install the **''portmap''** package and start the ''portmap daemon'' before trying to mount an exported filesystem without the ''nolock'' option. The ''nolock'' will disable NFS file locking. If you really need file locking, you must install the **''portmap''** package and start the ''portmap daemon'' before trying to mount an exported filesystem without the ''nolock'' option.
 +
 +In some revisions mounting is not possible because default disabled in kernel: BUSYBOX_CONFIG_FEATURE_MOUNT_NFS [=n]
Read [[http://linux.die.net/man/8/mount.nfs|manpage of mount.nfs]] Read [[http://linux.die.net/man/8/mount.nfs|manpage of mount.nfs]]
Line 43: Line 47:
Since [[doc:howto:netfilter]] will track every connection, if you use MASQUERADING for example, you could disable con-tracking for data connections: Since [[doc:howto:netfilter]] will track every connection, if you use MASQUERADING for example, you could disable con-tracking for data connections:
<code bash> <code bash>
-$IPT -t raw -A PREROUTING -i $IF_LAN -s $NET_LAN -p tcp --sport 32777:32780 -j NOTRACK #---------- don't track nfs +$IPT -t raw -A PREROUTING -i $IF_LAN -s $NET_LAN -p tcp --sport 32777:32780 -j CT --notrack #---------- don't track nfs 
-$IPT -t raw -A PREROUTING -i $IF_LAN -s $NET_LAN -p udp --sport 32777:32780 -j NOTRACK #---------- don't track nfs +$IPT -t raw -A PREROUTING -i $IF_LAN -s $NET_LAN -p udp --sport 32777:32780 -j CT --notrack #---------- don't track nfs 
-$IPT -t raw -A OUTPUT -o $IF_LAN -d $NET_LAN -p tcp --dport 32777:32780 -j NOTRACK #---------- don't track nfs +$IPT -t raw -A OUTPUT -o $IF_LAN -d $NET_LAN -p tcp --dport 32777:32780 -j CT --notrack #---------- don't track nfs 
-$IPT -t raw -A OUTPUT -o $IF_LAN -d $NET_LAN -p udp --dport 32777:32780 -j NOTRACK #---------- don't track nfs+$IPT -t raw -A OUTPUT -o $IF_LAN -d $NET_LAN -p udp --dport 32777:32780 -j CT --notrack #---------- don't track nfs
</code> </code>
Note this is not the same as for the server, the source and destination ports differ. The INPUT is for when you read from the remote filesystem and the OUTPUT for when you write to it. Note this is not the same as for the server, the source and destination ports differ. The INPUT is for when you read from the remote filesystem and the OUTPUT for when you write to it.

Back to top

doc/howto/nfs.client.1354290327.txt.bz2 · Last modified: 2012/11/30 16:45 by karlp