From nobody Thu Jun 04 11:38:54 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 4gWMzw15LLz6gbMQ for ; Thu, 04 Jun 2026 11:39:40 +0000 (UTC) (envelope-from lionelcons1972@gmail.com) Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) (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 4gWMzt70dcz3LN6 for ; Thu, 04 Jun 2026 11:39:38 +0000 (UTC) (envelope-from lionelcons1972@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20251104 header.b=SVuU15em; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of lionelcons1972@gmail.com designates 2a00:1450:4864:20::635 as permitted sender) smtp.mailfrom=lionelcons1972@gmail.com; arc=pass ("google.com:s=arc-20240605:i=1") Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-bec449cf976so78615766b.2 for ; Thu, 04 Jun 2026 04:39:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1780573171; cv=none; d=google.com; s=arc-20240605; b=BuBvcRK0dpphyA9TrZhi4i27vseLHV5+V7Lxo2BVoG5ru2xjwedGwC4egYhe3S0vtH t8JZDdP2IsJJRaXhMnAgb6SCTnskdD9y2WVrJyGHvsgS2PMQt+jLkSt8CtHwXygsMNkC XCoguZYVBuWhQnoNxrMAIaYdLPEeXaqCfJmrtDZfY2W9T9NjMkJvgpE/KC6nG8Tq4Yg8 yNeS0zpqoxyse9KQxfRKNOkAvdjXdW6l9+o3S7t55KXd7HdJIpu170lP+w1dhT7h7M/r gs7b3GF60ERIaAo7MkK4vQ+6iWSHXdTzOZlV+lg24BDJFsLoa8qhUzM6Vmrcy1Rme0Dj UcAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=W5cwXBaMDV5FKUlUrSQbvn/U121YP7cV7EaORt5By58=; fh=NfeYZQIWmfVKpJUKnU8hhgcFcBN+wi5KvXNfz1Gp6TY=; b=gsGLXyuq3rJHxBNpYS4kU0NmW1tg2zmFQas8fZZDz/nJWoLzyeMxxtuMtom7QdVxdP yUjYMHosBlOCjPxrwwv8SLphrUrZzgJ8Ygd2sSSKTRw0gKrrzhE+2qvhaEskdNCdT1J9 5nqI3wHjI4Au5OVZKpL7+3GEcyWRv1ppFnIk61DrQ8sziSXpyPN9oxZInKXo9xIezJTt 6yiOeRiuid7GlWO8EpEZuJrGIvNBKtcekSW6YAO2NAGX3UjJvyPjDeGdBuMOZorELI2H 8vyqo4+Slqrl8+JnBUIY3relI7/fjfPfRjpj55BnAxcse8qXh7DxfWvKIApZcVEvfISc GCvA==; 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=1780573171; x=1781177971; darn=freebsd.org; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=W5cwXBaMDV5FKUlUrSQbvn/U121YP7cV7EaORt5By58=; b=SVuU15emrufwR9izgwPWT3sSsFgtl0wQCfMzjGt2h7M8SCCaai0ql4oKng1gDVS47E c3CN9X2BzQ37j1PT1mlpe5tgTi/0WEtTtADZ/DYnyOjL/MTCvUmXOlOXtsa0hzBoPMVf 4hP4upztCc04hpaKg+6sI82sassVIcO1M4wQAGeHhlKi/uHLWNemZGOF770pPcblD993 AY/44ZuRK5t+OOO3tbjn/27eXFJKWoGuIYnVS5uL7TVzG2zwmbL4rzbKClnBg1yAlTws EwQXhU8W0RgMSAaLcJ4WRhWLmj7ccX7/4gphoWBUAnFTtIGCalCq5YcWjK33AwGHyK8w KziQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780573171; x=1781177971; h=content-transfer-encoding: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=W5cwXBaMDV5FKUlUrSQbvn/U121YP7cV7EaORt5By58=; b=D8Z0xT2h7/ewOJUqg4OXvyp1SjOEq+IO7EdQD0AB3q9sAR9rAAWoFACe33cjXyvR7o pwbxx798AW4277MVzPIPf4AkiyJCmpYjVoeh7GMKOUP07FJ5Z2s3iT38auhAV96J8xhO QtZIcIyuuNHWcS15eHd6BHspWtUOngIkU565THwr+pWnWCmTj3iYclmjF69j1wtIcAz6 /Ikla85erlVcJI9r+FnLNvD+Isaj9do7ErXWm0t3G+Np2ZmxdivexrRtLLXHs3zBsFWK jnr+r+0hz8j8NblM9/qy5THcUVs/fi4JNCwWtwjLsYRi+UVAqBY42uMYn0RxZ4OTXA41 iCNA== X-Forwarded-Encrypted: i=1; AFNElJ+fB3eFqMxHLWcK1hCSAsZr1ZpysUaAQWGTDnLQ6I+c65769rKNKfsOC8bMb7FsWZPMBVJaSCEA5RB/hrfz5eY=@freebsd.org X-Gm-Message-State: AOJu0Ywcun50QWQMTfkoadrexgPPFFEJFlfqxSpWrW+rGj9OXsZo5Io9 3yKopsu85KwnPEYCfzdL0L6z0XVWI5XAIAHjwo3Ns1zk1BH67VF1DUsUBE1VqtuHhRtw7eACKFQ Jksc5JTEYwfhNCEN44tqs0nrwty48hNE8Ww== X-Gm-Gg: Acq92OGBxm5gW9FzloPNRt2yFSmSnqi8BRjsBVZuhq1aINOtXQhjj+nEZCziw6KppCR KruT+UJWuvuLEWaHKkZTz8GkDW0ZMTapWeMcKDHOi/ZwPkwUSVv59wn5r1C35YRUVOT2ysFMSk1 93YD+5Z3pFxHqDuyfvBVZ5GOLydwaTiup5a+FLoZGoN562MqWyhUnCvgQzbU1e/9nb/SqcOHPan J8JuOC98TG3JKmD1q7YfKt3ihieXFV4qD1EPEd3sNwhFnANm2KXDhrMtGpY35y71r27y07ilFXU YivpK6J3VczOI7t4kark27uu3UOwOQg= X-Received: by 2002:a17:907:1609:b0:be2:208a:a8ae with SMTP id a640c23a62f3a-bf0a9907b61mr444469066b.22.1780573171231; Thu, 04 Jun 2026 04:39:31 -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: Lionel Cons Date: Thu, 4 Jun 2026 13:38:54 +0200 X-Gm-Features: AVHnY4IvCJxi92aZQyUH2XKG9-z3nQCvhEUxnqo1MGPcUw9PXzR8lQNb4pXwZtM Message-ID: Subject: Re: ms-nfs41-client mount to FreeBSD 16.0 nfsd fails in VM with NAT To: 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 [-5.00 / 15.00]; ARC_ALLOW(-1.00)[google.com:s=arc-20240605:i=1]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.996]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4864::/56]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20251104]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; TO_DN_SOME(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; MID_RHS_MATCH_FROMTLD(0.00)[]; MISSING_XM_UA(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::635:from] X-Spamd-Bar: ---- X-Rspamd-Queue-Id: 4gWMzt70dcz3LN6 On Wed, 3 Jun 2026 at 08:07, Rick Macklem wrote: > > 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 FreeBS= D 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# That fixed the problem. Is there a setting which allows this per-export? > 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". Depends on the site. If this is a documented restriction, and you violate that in the production server farms, then I will pay a personal visit to the offending person. Outside the production farm I will not care much. Lionel