From nobody Wed Jun 03 06:07:36 2026 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4gVcgf1NJ9z6g4p5 for ; Wed, 03 Jun 2026 06:07:58 +0000 (UTC) (envelope-from rick.macklem@gmail.com) Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gVcgd6FVqz3PmV for ; Wed, 03 Jun 2026 06:07:57 +0000 (UTC) (envelope-from rick.macklem@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-bf046d4da1fso89885166b.3 for ; Tue, 02 Jun 2026 23:07:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1780466871; cv=none; d=google.com; s=arc-20240605; b=L3nS42NTCUjJ8LBkjLW6bV9bzG34EaQDp8cgSEdHWI5LJ8lIbV4QEh/F4q5WS437e0 adfa4tUfO5tiq2H9mcflMzA1W2YlLQkDhzyM11zvCylmsdLmD8bXuBhW/VpZKVK2k3eu OvAkgAKFJacsafoxS1SpFhbLS4p1QE5Qhsdyemv0UN7ZgJCg85IgDHXQSqrJ2vguhPd9 2yPy3ahYBkCK72nIgNPUYuQD6qBpI5kKzkhzMOtOkjBxgIFc89uLAudGG6xlP+OFAbWk E6ydDTdiOfS3kjLirFn0QgAr9A4ZbNouY785uD4ih+EqZS7IlbqmnMOyIIZaCSyQrU92 VSdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Jbs1GuaeXa5hdQFVSIAk9WLMZRQIk1eeDauqZdisW6Y=; fh=QD6WSPPx+mq1uSjmTyALUdU2giJrIw96jwZVwMHHfuA=; b=KePmbDSQTUmgz0o1y+iaVAwkkHm8FzFRSs6qa87yM0J+1NHh81CwiZ6gHjKm+cBIDu FiPbbJrcfpV7tAX0u9N8DSoKvLOVU9RpVBIF4ShGVVKgUIc4FPvgFnZr52D7eqF4vBxE Vu5xSslewjIvoKM5vqX2dgEwHsQZTlqNzeZuBThkZeaMQmiPO3T1wrcMeU1kzWmFM6vZ 4G8dq0I8a8WO9d2mjjDdiaknOBR+xQXFDNxrTBQywykj7MSk9C+MlcVXgoP0uCK3M5/T p2MB+dwbJadjw40MB31Mp4bfZ5PfJ8VrQPF0NGcqT+Jq1VnnYNbqIS+rdg/Ka6fVZspd flPg==; darn=freebsd.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1780466871; x=1781071671; darn=freebsd.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Jbs1GuaeXa5hdQFVSIAk9WLMZRQIk1eeDauqZdisW6Y=; b=PncaKUfu6MpCZaPrS0MbWQZKKWQ76rtp/zuXlbuntLpwr7b0HKm+4E6lIJJaXlw5Mj O2J0q2V7EucTkI3ZkPePSaVpP283lt1DCdNKYkHLdKgYrbrCICkfp8zvvpXGbDhIel0I P4p+2z8wgvm1yfE20iYWXCOiQcVvMTTLhMafFN2Zu4BtyDuzBX36prwg7MCDLlaxnrZu pIvRQVUHrdICUD3AVkKNdYd+D321Y11wlFIB50zaFFp2f8VCJgoC+co0PbFbC4rjuVtT HTtkAbdoodD+FsBOpiSMuC5ixTmZzclct99qXtsacbIFGagekPlsZ9n1IjGpx5rE00Ed cJ/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780466871; x=1781071671; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Jbs1GuaeXa5hdQFVSIAk9WLMZRQIk1eeDauqZdisW6Y=; b=PVZdNds7p7GRdUS6eeRsw4WnaetII0BBTBWW+duTkq0CyZ7PU6sR9q3974x/zY4Vg+ pb+j6Q8Wrm8/X9KA7kUzm/jq9fiaINMV/Uchdyma4rhCtKzROzm7y26zLn4BWQw1IYls ogbf8LVf/qWmGB+oCKCQ/lsi1Ro1shE3Qi+Q7HSjXXVMv/rJlb402DOZ/MVfElbR6p/A xV7KxUNjbJaX+h29IqDJhij0ynpjiHf1iJrnkbqCMZPW6sThoPuRRJdx4ino4ixD/GrD wTniLGPdeJuaa3QTrQpxyMsol2VI6x/dgS6y+cEiBAPuNPW106vOFtXZIhuzFdXc0xqR rEig== X-Forwarded-Encrypted: i=1; AFNElJ8W+1mhE7s7kECXxcpY/5IhQ8019o0/of8jqxfOPwPwVCliWKe5GuKu4M5v4oygHqCbDxeblCJiLheL4rjEhhw=@freebsd.org X-Gm-Message-State: AOJu0YzVtHdU2HjTrh2cVN50w/LQJ7KQC4CFfjGhDQAndpTDNHZbJgro 9uNI+JFOiRpDIdo6jT9ZtEQH49k8ZEsEn/RbaCtio9YAaKALR7486mBqm5CiKa8r8byqLmZdi2d o4h2inF0SwHqiycikBlhxhrk8I3UcsYkE X-Gm-Gg: Acq92OEYqvbod+usZ8sAEh+ysBVZ0+oz76oS/xPR78i2QFMvOYUHAUdocAyvdg2sryn MgXd43b3v1t7KsQ5+Uwe75JUX4jM9TiFHt+FuXXxgDE7MO6zoUPRZ25QjcFQ0IkNIy5VEd6pjQJ 94XLRt4SCnzxL6w+AtQ+tX4qPFj53TNUWxNWuUyuNoWMi4cMrXYOPJYDalXgqbuy482m6snXDS4 qzKmkDPBP+q+qNshJ0FvvZ5cW9QF4Rkyh0Q5kFNalumYm5itK961/DTjgpiJWEVwCnpMDja+wy7 yvSCCsPjsjMK6OF1yx44Jc20gixzAGASWfqiHs/5Cpx8PZoSAA== X-Received: by 2002:a17:907:72cd:b0:bab:e742:aba with SMTP id a640c23a62f3a-bf0af303cbcmr72447566b.42.1780466870394; Tue, 02 Jun 2026 23:07:50 -0700 (PDT) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 References: In-Reply-To: From: Rick Macklem Date: Tue, 2 Jun 2026 23:07:36 -0700 X-Gm-Features: AVHnY4JgIxRKUsU_QyH9BNKKhqWG-YEX-gT9xd7w02arVjuRHctneNaAjbog0GQ Message-ID: Subject: Re: ms-nfs41-client mount to FreeBSD 16.0 nfsd fails in VM with NAT To: Lionel Cons Cc: ms-nfs41-client-devel@lists.sourceforge.net, Freebsd hackers list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; TAGGED_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Queue-Id: 4gVcgd6FVqz3PmV X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated On Tue, Jun 2, 2026 at 9:52=E2=80=AFAM Lionel Cons wrote: > > We've hit a problem with ms-nfs41-client release 2026-06-01 with FreeBSD = 16.0: > > If Windows runs in a VM with NAT an attempt to mount fails with Error > Code 59 (Unexpected network error), but if the VM has an IPv4 or IPv6 > address the mount succeeds. > > Lab technician says that it might be a problem that FreeBSD nfsd > rejects TCP connections from ports < 1024, "... because NAT cannot do > that automatically... " (yay, cryptic, and then he went home...). > > Can anyone please elaborate this in more detail? He might have meant the reverse. By default, the FreeBSD nfsd requires that a client use a reserved port# (which is < 1024). If that is the problem, you can do the following: - edit /etc/rc.conf and put a line in it like nfs_reserved_port_only=3D"NO" and then # sysctl vfs.nfsd.nfs_privport=3D0 - to change it immediately, without rebooting the server There are a few situations where requiring a reserved port# improves security, but it is mostly bunk. However, FreeBSD doesn't like defaults to change (it's referred to as a POLA violation), so the default remains "require it". rick > > Lionel >