Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #83056

Bug#648635: May be it is out of nfs-utils' control

From "WHR" <whr@rivoreo.one>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#648635: May be it is out of nfs-utils' control
Date 2024-07-17 07:00 +0200
Message-ID <J14VH-2FS6-7@gated-at.bofh.it> (permalink)
References <J13Gh-2F78-1@gated-at.bofh.it> <hWLJ8-67q-15@gated-at.bofh.it> <J13Gh-2F78-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


I found a workaround.

By using option '--host' in rpc.nfsd(8), it will creating the socket from user
space, then passing the file descriptor to kernel via /proc/fs/nfsd/portlist;
thus bypasses the previously mentioned socket creation code in kernel.

So to listen on IPv4 only, pass option '--host=0.0.0.0' to rpc.nfsd(8). For
Debian Bullseye and early releases, add this option to 'RPCNFSDOPTS' variable
of file /etc/default/nfs-kernel-server; for example:
	RPCNFSDOPTS="--no-udp --host=0.0.0.0"
For later releases, simply set the 'host' directive under '[nfsd]' section.

Now I have:
	# netstat -nl | grep -F :2049
	tcp        0      0 0.0.0.0:2049            0.0.0.0:*               LISTEN

Back to linux.debian.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Bug#648635: May be it is out of nfs-utils' control "WHR" <whr@rivoreo.one> - 2024-07-17 05:40 +0200
  Bug#648635: May be it is out of nfs-utils' control "WHR" <whr@rivoreo.one> - 2024-07-17 07:00 +0200
  Bug#648635: May be it is out of nfs-utils' control "WHR" <whr@rivoreo.one> - 2024-07-17 07:00 +0200

csiph-web