From owner-freebsd-bugs@freebsd.org Mon Dec 17 20:21:16 2018 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5E541134B639 for ; Mon, 17 Dec 2018 20:21:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id ECFD58893B for ; Mon, 17 Dec 2018 20:21:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id B0402134B638; Mon, 17 Dec 2018 20:21:15 +0000 (UTC) Delivered-To: bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8D74E134B637 for ; Mon, 17 Dec 2018 20:21:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2CB2288936 for ; Mon, 17 Dec 2018 20:21:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 6FCA03BE8 for ; Mon, 17 Dec 2018 20:21:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id wBHKLEUW014028 for ; Mon, 17 Dec 2018 20:21:14 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id wBHKLE4K014025 for bugs@FreeBSD.org; Mon, 17 Dec 2018 20:21:14 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 234106] nfsv4 server ignores nfs_reserved_port_only="YES" Date: Mon, 17 Dec 2018 20:21:14 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 11.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: chaz.newton58@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Dec 2018 20:21:16 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D234106 Bug ID: 234106 Summary: nfsv4 server ignores nfs_reserved_port_only=3D"YES" Product: Base System Version: 11.2-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Many People Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: chaz.newton58@gmail.com The NFSv4 server seems to be ignoring the vfs.nfsd.nfs_privport sysctl sett= ing. When I set either vfs.nfsd.nfs_privport=3D1 sysctl and/or nfs_reserved_port_only=3D"YES" in rc.conf, I am not denied when using an unprivileged port from a NAT'ed VM, but AM successfully denied when using t= he NFSv3 export. The pertinent section of /etc/rc.conf on the server looks like this: ----------- zfs_enable=3D"YES" rpcbind_enable=3D"YES" rpc_lockd_enable=3D"YES" rpc_lockd_flags=3D"-d 1" rpc_statd_enable=3D"YES" rpc_statd_flags=3D"-d" mountd_enable=3D"YES" mountd_flags=3D"-S -r -p 619" nfs_client_enable=3D"YES"=20=20=20=20=20=20=20=20 nfs_access_cache=3D"60"=20=20=20=20=20=20=20=20=20=20=20 nfs_server_enable=3D"YES"=20=20=20=20=20=20=20=20=20 nfs_server_flags=3D"-u -t -n 256"=20=20 nfs_server_managegids=3D"YES" nfs_reserved_port_only=3D"YES"=20=20=20=20 nfs_bufpackets=3D"5"=20=20=20=20=20=20=20=20=20=20=20=20=20 nfsv4_server_enable=3D"YES" nfsuserd_enable=3D"YES" ------------ /etc/exports: ------------ V4: /data moo.cow.com /data/test -alldirs -maproot=3Dnobody moo.cow.com ------------ Output in /var/log/messages from unsuccessful nfs3 mount: ------------ Dec 17 18:40:55 meow mountd[56740]: mount request from 10.10.10.18 from unprivileged port ------------ I happened to stumble on this inconsistency while evaluating the use of NAT= 'ed virtual machines on our Linux clients. Is this a bug, or a mis-configuration on my part? I'm leaning toward bug, = as it DOES work with the NFS3 mounts. --=20 You are receiving this mail because: You are the assignee for the bug.=