Skip to contentSkip to conversation

Bug#1151866: nfs-common: host= setting in nfs.conf inadaquate

DISCUSSION Elliott Mitchell 1 participant 1 message Nov 13 2 messages not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected].

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 22 lines · Salvatore Bonaccorso
Quoted 11 lines · Elliott Mitchell

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.

Quoted 8 lines

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.

Quoted 5 lines

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 ([email protected]) and please include as well both Steve Dickson <[email protected]> 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.

Signature · 4 lines
(\___(\___(\______          --=> 8-) EHM <=--          ______/)___/)___/)
 \BS (    |         [email protected]  PGP 87145445         |    )   /
  \_CS\   |  _____  -O #include <stddisclaimer.h> O-   _____  |   /  _/
8A19\___\_|_/58D2 7E3D DDF4 7BA6 <-PGP-> 41D1 B375 37D0 8714\_|_/___/5445