Article View: linux.debian.bugs.dist
Article #4321Bug#1151866: nfs-common: host= setting in nfs.conf inadaquate
From: Elliott Mitchell
Date: Fri, 13 Nov 2026 00:40
Date: Fri, 13 Nov 2026 00:40
58 lines
4281 bytes
4281 bytes
On Thu, Oct 29, 2026 at 07:23:28AM +0100, Salvatore Bonaccorso wrote: > > On Fri, Oct 23, 2026 at 06:53:21PM -0700, Elliott Mitchell wrote: > > Package: nfs-common > > Version: 1:2.8.3-1 > > > > The "host=" setting in /etc/nfs.conf isn't fit for the function it needs > > to perform. Of note it doesn't allow binding to multiple addresses. It > > also doesn't allow restricting to binding IPv4-only nor IPv6-only. In > > fact I was unable to get it to restrict IPv6 binding at all. > > > > Multiple addresses is a common configuration. Disabling IPv4 or IPv6 > > are also common. > > > > It also appears stopping/starting `/etc/init.d/nfs-kernel-server` appears > > to leave old address bindings in place. If the "host=" setting is added, > > then the daemon is restarted it will remain bound to the wildcard > > address. > > > > NFS is a service which should be filtered at firewalls, but it should > > still be possible to restrict binding as a backup security measure. I'm > > tempted to rate this as pretty high importance. > > Thanks for your report. Those are rather questions and issues to bring > to upstream. Can you report them to upstream via the linux-nfs > mailinglist (linux-nfs@vger.kernel.org) and please include as well > both Steve Dickson <steved@redhat.com> directly and this Debian > downstream bugreport, so we can keep track. Hopefully more than enough in the initial message. Restarting the kernel nfs server doesn't remove old bindings. The host= directive appears to only work for a single IPv4 host. It should be possible to be IPv4-only on a dual-stack computer. It should be possible to be IPv6-only on a dual-stack computer. I guess I should also add I could imagine someone wanting to bind to different ports on different addresses. I could see allowing multiple "host=" lines (single entry per). I could see using commas to separate entries on a single "host=" line. I could see using spaces to separate entries on a single "host=" line. I could see allowing multiple of those. -- (\___(\___(\______ --=> 8-) EHM <=-- ______/)___/)___/) \BS ( | ehem+sigmsg@m5p.com PGP 87145445 | ) / \_CS\ | _____ -O #include <stddisclaimer.h> O- _____ | / _/ 8A19\___\_|_/58D2 7E3D DDF4 7BA6 <-PGP-> 41D1 B375 37D0 8714\_|_/___/5445
Technical Details
Message-ID:
<NYNuF-bwDd-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodReferences:
<NRzd7-7vmS-1@gated-at.bofh.it> <NTrO9-8zrc-1@gated-at.bofh.it> <NRzd7-7vmS-1@gated-at.bofh.it> <NTrO9-8zrc-1@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Elliott Mitchell <ehem+debian@m5p.com>
Newsgroups: linux.debian.bugs.dist,linux.debian.kernel
Subject: Bug#1151866: nfs-common: host= setting in nfs.conf inadaquate
Date: Fri, 13 Nov 2026 01:40:01 +0100
Message-ID: <NYNuF-bwDd-1@gated-at.bofh.it>
References: <NRzd7-7vmS-1@gated-at.bofh.it> <NTrO9-8zrc-1@gated-at.bofh.it> <NRzd7-7vmS-1@gated-at.bofh.it> <NTrO9-8zrc-1@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Fri Nov 13 00:39:07 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.65
Reply-To: Elliott Mitchell <ehem+debian@m5p.com>, 1151866@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: debian-kernel@lists.debian.org
X-Debian-Pr-Message: followup 1151866
X-Debian-Pr-Package: nfs-common
X-Debian-Pr-Keywords: moreinfo upstream
X-Debian-Pr-Source: nfs-utils
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2002318
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 58
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Cc: linux-nfs@vger.kernel.org, Steve Dickson <steved@redhat.com>,
1151866@bugs.debian.org
X-Original-Date: Thu, 12 Nov 2026 16:36:44 -0800
X-Original-Message-ID: <avZbnBDUZdwgzSIv@mattapan.m5p.com.>
X-Original-References: <atwPkawUy68vuesl@mattapan.m5p.com.> <auLmYFzpKg58BUKW@eldamar.lan> <atwPkawUy68vuesl@mattapan.m5p.com.> <auLmYFzpKg58BUKW@eldamar.lan>