Bug#1050840: nfs-common: Server no longer listens on UDP port 2049 by default
Package: nfs-common
Version: 1:2.6.2-4
Severity: normal
X-Debbugs-Cc: jasmine.ngan@outlook.com
I upgraded my NFS server from Debian bullseye to bookworm and found that NFSv3
clients were no longer mounting exports from the upgraded server. The cause
appears to be an undocumented change introduced by the default /etc/nfs.conf
which does not override udp=n in the [nfsd] section. This configures the NFS
server in Debian bookworm to not listen on UDP port 2049. Setting this to
udp=y restores the default seen in Debian bullseye where the NFS server
listens on both TCP and UDP port 2049. Of course the clients could be set to
connect using TCP instead.
It feels like this should be documented in the changelog.
Jasmine Ngan
-- Package-specific info:
-- rpcinfo --
program vers proto port service
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 60952 status
100024 1 tcp 40843 status
100005 1 udp 44273 mountd
100005 1 tcp 35625 mountd
100005 2 udp 52968 mountd
100005 2 tcp 48431 mountd
100005 3 udp 43718 mountd
100005 3 tcp 45947 mountd
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100227 3 tcp 2049 nfs_acl
100021 1 udp 58660 nlockmgr
100021 3 udp 58660 nlockmgr
100021 4 udp 58660 nlockmgr
100021 1 tcp 40979 nlockmgr
100021 3 tcp 40979 nlockmgr
100021 4 tcp 40979 nlockmgr
-- /etc/default/nfs-common --
NEED_STATD=
STATDOPTS=
NEED_IDMAPD=
NEED_GSSD=
-- /etc/nfs.conf --
[general]
pipefs-directory=/run/rpc_pipefs
[nfsrahead]
[exports]
[exportfs]
[gssd]
[lockd]
[exportd]
[mountd]
manage-gids=y
[nfsdcld]
[nfsdcltrack]
[nfsd]
[statd]
[sm-notify]
[svcgssd]
-- /etc/nfs.conf.d/*.conf --
-- /etc/idmapd.conf --
[General]
Verbosity = 0
[Mapping]
Nobody-User = nobody
Nobody-Group = nogroup
-- /etc/fstab --
-- /proc/mounts --
nfsd /proc/fs/nfsd nfsd rw,relatime 0 0
-- System Information:
Debian Release: 12.1
APT prefers stable-security
APT policy: (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.1.0-10-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages nfs-common depends on:
ii adduser 3.134
ii init-system-helpers 1.65.2
ii keyutils 1.6.3-2
ii libc6 2.36-9+deb12u1
ii libcap2 1:2.66-4
ii libcom-err2 1.47.0-2
ii libdevmapper1.02.1 2:1.02.185-2
ii libevent-core-2.1-7 2.1.12-stable-8
ii libgssapi-krb5-2 1.20.1-2
ii libkeyutils1 1.6.3-2
ii libkrb5-3 1.20.1-2
ii libmount1 2.38.1-5+b1
ii libnfsidmap1 1:2.6.2-4
ii libtirpc3 1.3.3+ds-1
ii libwrap0 7.6.q-32
ii python3 3.11.2-1+b1
ii rpcbind 1.2.6-6+b1
ii sysvinit-utils [lsb-base] 3.06-4
ii ucf 3.0043+nmu1
nfs-common recommends no packages.
Versions of packages nfs-common suggests:
pn open-iscsi <none>
pn watchdog <none>
Versions of packages nfs-kernel-server depends on:
ii keyutils 1.6.3-2
ii libblkid1 2.38.1-5+b1
ii libc6 2.36-9+deb12u1
ii libcap2 1:2.66-4
ii libevent-core-2.1-7 2.1.12-stable-8
ii libsqlite3-0 3.40.1-2
ii libtirpc3 1.3.3+ds-1
ii libuuid1 2.38.1-5+b1
ii libwrap0 7.6.q-32
ii netbase 6.4
ii sysvinit-utils [lsb-base] 3.06-4
ii ucf 3.0043+nmu1
Versions of packages nfs-kernel-server recommends:
ii python3 3.11.2-1+b1
ii python3-yaml 6.0-3+b2
Versions of packages nfs-kernel-server suggests:
ii procps 2:4.0.2-3
-- no debconf information
Reply to: