NFS 客户端

软件包: nfs-utils 版本: 1.1.6-1 依赖包: libwrap, libblkid, libuuid, libevent 大小: 33390 描述: 更新 mount.nfs 命令来支持 nfs4 卷。 软件包: kmod-fs-nfs 依赖: kernel (=, kmod-fs-nfs-common 大小: 86611 描述: 启用NFS支持的内核模块 软件包: kmod-fs-nfs-common 依赖: kernel (= 大小: 133604 描述: NFS文件系统模组

警告 !  有些版本没有 librpc . 你可以放心使用 --force-depends 。 
mkdir /mnt/remote2
mount.nfs // /mnt/remote2 [-rvVwfnh ] [-t version] [-o options]
mount -t nfs /mnt/point -o nolock
# 对于支持NFS开箱即用的 Fedora 17+服务器
mount -t nfs src -o nfsvers=3 -o nolock

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 manpage of mount.nfs

Put it in /etc/fstab.

Since netfilter will track every connection, if you use MASQUERADING for example, you could disable con-tracking for data connections:

$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 CT --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 CT --notrack #---------- don't track nfs

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.

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
  • Last modified: 2018/03/04 11:24
  • by