Received: by 2002:a05:7412:d394:b0:fa:1366:e242 with SMTP id bq20csp1106275rdb; Mon, 8 Jan 2024 15:16:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IEoBZrzDydosBMLBvp8W7I34GOyf/KgVmPfWZctF9GW+PXlaRsrtjT5Pr+nRHH7VloJX17o X-Received: by 2002:a05:6808:29a:b0:3bb:db14:d513 with SMTP id z26-20020a056808029a00b003bbdb14d513mr4982141oic.51.1704755781015; Mon, 08 Jan 2024 15:16:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704755780; cv=none; d=google.com; s=arc-20160816; b=GFecZLiseyM6f9r0a6HJGHB0GVdIcw5nNx64goooGsQjB4m5GmFE3EEnbKGLWlm/0i WWL5ePN3ejd7ut9C9PXVjyR9OIkDSMZl6GMgyiZxYzqqWC/qjgQMnXXmDF66WVS8WqP4 YH2iA1IREF0nkGWF6s4dzwVWWNewqIErEDMRDh5QQORTMzFYEC5+PQpeRpKQ80V9cOOb JfVHMih6/TCl/8J0hKm+yzQ0OhVhp8x+9M0tLIL2VGPUYGrTvrDQAQrG/eMMqSDx4EE4 B7BWRVcWm5Pp2N8x9wdhrvcS2UhtIVHgL2Rz5qkdt4N3nmIk8J7/ygJEN3FUBUm1nwtg 3ibw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:feedback-id :dkim-signature:dkim-signature; bh=l3JYqJtsA83RY3G0BsbNOzDiYA+azkGjlbXxI8M8Thg=; fh=q+Tq91zCQGZtjgQrytHxITPmdAlS6V/FE97etpKxxJA=; b=jzsa1raWz12nMtrdr5TUlZK/I88bMn8uVBHTAYrjXfCJ+8RlmXkIm6bc8x/b4zBgRz /+0L/Nls2qq6HiScsYaDI724K8YqDDsbyOsNyO+B/Z5hVTEoz4yAgczLKSJr7+v3oOK6 iR14oZ56fe4e3UVgAKf0pNkf4stmDUfJf/9rW7FDkuSjJaSin2Uo6lDw56vjWtD4YHT8 uzcuYPcGqZbA498sut6wLJPCOmpXifdS3b1Wdb5/iuyJ1GKmLLYxq2LGN9ibbQDsRzsm ol97+adYrYG5k7ZDSPTE2CwAcalglZLnlhaY4WeIGcdu3qRlmicQw7d+Yhgpw+0GEHG9 ilLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@themaw.net header.s=fm1 header.b=PSz250jy; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=gi3M9wRd; spf=pass (google.com: domain of linux-nfs+bounces-981-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-nfs+bounces-981-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=themaw.net Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id g6-20020a0ce4c6000000b0067ab28a24fdsi952854qvm.443.2024.01.08.15.16.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 15:16:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-981-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@themaw.net header.s=fm1 header.b=PSz250jy; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=gi3M9wRd; spf=pass (google.com: domain of linux-nfs+bounces-981-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-nfs+bounces-981-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=themaw.net Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 3BC7C1C20FE6 for ; Mon, 8 Jan 2024 23:16:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5F96D1DDDC; Mon, 8 Jan 2024 23:16:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=themaw.net header.i=@themaw.net header.b="PSz250jy"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="gi3M9wRd" X-Original-To: linux-nfs@vger.kernel.org Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 499BBB672 for ; Mon, 8 Jan 2024 23:16:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=themaw.net Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=themaw.net Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 30BB23200A12; Mon, 8 Jan 2024 18:16:15 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Mon, 08 Jan 2024 18:16:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=themaw.net; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1704755774; x=1704842174; bh=l3JYqJtsA83RY3G0BsbNOzDiYA+azkGjlbXxI8M8Thg=; b= PSz250jy2rErdoKjv3wa0vSslWUHob/Ce3Tbq0rVPPTRV/+0fBUpiqHBFpeebCzq 0c2U36uTxjSBnYoXmRw/6+z4wtiAN6iGuzky/Y83ddQQN8xJfThm7A2fCTBQF3+t fLiBjC0Vs5ICjsbfIsBJMKIXEtYGVD5HDZH7pwR6JWnE45JldzUNBetFiVqcFlLo MSlFfKGxCUc+gfwPSObVkt7YgixLuv/cMZ37y7Xaq+jGAYYlbSHIipjgXo0oQa8M oW0aYnJsmQMUPJcXyD7X4tMH0xzYO6LI9365MkEotyEtocgZEzWbjpv3rdeLE/7c To/hnWP7kISNsX4vOz3tLQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1704755774; x= 1704842174; bh=l3JYqJtsA83RY3G0BsbNOzDiYA+azkGjlbXxI8M8Thg=; b=g i3M9wRdoC+9GKK1zsZmize+TD0P3SRhgPdW2kFyhqbGAiRKKEVRmNpj4c1jDtKUC BOXEg2xWPBQQemhTOR8ThWm+pOO11IoxacphkMrvRcbIHHTMIzMNhdbevO5CiFkZ dJOkWrC21QHliknLYEV72C4ozTDo1so2Ikh9v8+kq1ikxBZydrA8XuvYJOblmY5h EnRpnoo2YEuAb2ik8m35QB4nqgBxJ1r7LnrAyCSp3msFT5ubXzzX/mIhAwzNP6XS 2HXvD/KHqyj7UQOg9RF2pBRYKFH+yfAdBuepcH960ckJsoM6CQjfbXQ9lldRBZ33 ddzjqjjQQ6jGNOiY8aaDQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdehkedgtdelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvfhfhjggtgfesthejredttdefjeenucfhrhhomhepkfgrnhcu mfgvnhhtuceorhgrvhgvnhesthhhvghmrgifrdhnvghtqeenucggtffrrghtthgvrhhnpe fggeektddvtdegieelhfetffffueekgeeghedvudelgedvieeiiefhteduheejleenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehrrghvvghnse hthhgvmhgrfidrnhgvth X-ME-Proxy: Feedback-ID: i31e841b0:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 8 Jan 2024 18:16:12 -0500 (EST) Message-ID: Date: Tue, 9 Jan 2024 07:16:08 +0800 Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: nfs-utils&nfsd&autofs not supporting non-2049 TCP port numbers - Fwd: showmount -e with custom port number? To: Jeff Layton , Cedric Blancher , Linux NFS Mailing List References: <61666d84cd8d6849a9e9c5147603b10bb49e0519.camel@kernel.org> Content-Language: en-US From: Ian Kent In-Reply-To: <61666d84cd8d6849a9e9c5147603b10bb49e0519.camel@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 8/1/24 22:52, Jeff Layton wrote: > On Sun, 2024-01-07 at 23:33 +0100, Cedric Blancher wrote: >> Good evening! >> >> Generic issue in all of nfs-utils: None of the utils properly support >> NFSv4 with non.standard (TCP/2049) port numbers. >> >> mount supports it for mounting, but does not show it for listing mounts >> /proc/mounts does not show the port number either > mount just gets the mount info from /proc/mounts, which absolutely does > show a port= option when you use a different port than 2049. > >> showmount -e does not support a port number > showmount talks directly to mountd so you wouldn't usually point it at > the same port nfs is listening on. As with most sunrpc based tools, it > queries rpcbind in order to determine what port to talk to. If you're > going to use stuff like showmount, then you need to ensure that rpcbind > is reachable and that the daemons register with it properly. > >> autofs does not support non-2049 port numbers >> nfsd referrals do not support setting non-2049 port numbers > The same goes for autofs. It just calls /bin/mount. I think (but am not > sure) that even with NFSv4, when the client can't contact the server on > port 2049, it'll try to use rpcbind to determine the port. That is exactly what autofs does, and always has done. The other thing to be aware of is if you want NFSv4 only you need to tell autofs that by using the option fstype=nfs4 so that it doesn't try to fall back to earlier NFS versions and also tries to avoid contacting rpcbind. Ian > > Alternately, if you don't want to deal with rpcbind for mounting, you > could also specify a hardcoded "port=" mount option in your autofs maps. > > >> ... >> >> Could you please make a concentrated effort and allow non-2049 port >> numbers for NFSv4 mounts, in all of the lifecycle of a NFSv4 mount? >> From nfsd, nfsd referrals, client mount/umount, autofs >> mount/umount+LDAP spec >> >> Ced >> >> ---------- Forwarded message --------- >> From: Cedric Blancher >> Date: Sun, 7 Jan 2024 at 22:32 >> Subject: showmount -e with custom port number? >> To: Linux NFS Mailing List >> >> >> Good evening! >> >> How can I get showmount -e to use a non-2049 TCP port number to show >> mounts on a NFSv4 server? >> >> /sbin/showmount -e localhost@30000 >> clnt_create: RPC: Unknown host