Difference between revisions of "NFS Version 4 Only"
Jump to navigation
Jump to search
(Created page with "Enable verion 4 only by disabling 2 and 3 (2 is already disabled on modern os) - https://wiki.debian.org/NFSServerSetup /etc/default/nfs-kernel-server # update ``` # RPCMOUN...") |
|||
Line 24: | Line 24: | ||
+ | ``` | ||
showmount -e nas | showmount -e nas | ||
+ | ``` | ||
+ | does not work now | ||
+ | |||
+ | and all traffic goes over 2049 unencrypted with only ip address access restrictions. Very simple, very fast. |
Revision as of 00:42, 18 July 2021
Enable verion 4 only by disabling 2 and 3 (2 is already disabled on modern os) - https://wiki.debian.org/NFSServerSetup
/etc/default/nfs-kernel-server # update
# RPCMOUNTDOPTS="--manage-gids" RPCMOUNTDOPTS="--manage-gids -N 2 -N 3" RPCNFSDOPTS="-N 2 -N 3"
/etc/default/nfs-common # add
NEED_STATD="no" NEED_IDMAPD="yes"
sudo systemctl mask rpcbind.service sudo systemctl mask rpcbind.socket sudo cat /proc/fs/nfsd/versions sudo systemctl restart nfs-server sudo cat /proc/fs/nfsd/versions
showmount -e nas
does not work now
and all traffic goes over 2049 unencrypted with only ip address access restrictions. Very simple, very fast.