From fbbdfa2b8a42444c2c4de00e43f14499adad8a70 Mon Sep 17 00:00:00 2001 From: Lexi Winter Date: Sat, 6 Jan 2024 19:12:02 +0100 Subject: [PATCH] nfsv4(4): mention the nfsv4_server_only setting Add note about configuring the NFSv4-only option. It is already mentioned in rc.conf(5), but documenting it here makes it more likely that people see it when they need it. MFC after: 2 weeks Pull Request: https://github.com/freebsd/freebsd-src/pull/1008 --- usr.sbin/nfsd/nfsv4.4 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/usr.sbin/nfsd/nfsv4.4 b/usr.sbin/nfsd/nfsv4.4 index 1377461c134..aacb85c78ca 100644 --- a/usr.sbin/nfsd/nfsv4.4 +++ b/usr.sbin/nfsd/nfsv4.4 @@ -208,6 +208,14 @@ if the server is using the ``@'' form of user/group strings or is using the ``-manage-gids'' option for .Xr nfsuserd 8 . .Pp +In addition, you can set: +.sp +.Bd -literal -offset indent -compact +nfsv4_server_only="YES" +.Ed +.sp +to disable support for NFSv2 and NFSv3. +.Pp You will also need to add at least one ``V4:'' line to the .Xr exports 5 file for