Source: nfs-common Source-Version: 1:2.6.1-1 Hi Alfredo,
On Wed, Oct 26, 2022 at 01:48:58PM +0000, Alfredo Sola wrote: > Package: nfs-kernel-server > Version: 1:1.3.4-6 > Severity: wishlist > > Dear Maintainer, > > I needed a way to have rpc.nfsd bind to a specific IP address. > > The man page for rpc.nfsd documents a parameter exactly for this, plus some > others. > > At first signt, it seems that there is no Debian way to pass parameters to > rpc.nfsd. > > But there is; RPCNFSDOPTS can be set on /etc/default/nfs-kernel-server. It > will then > be sourced from /usr/lib/systemd/scripts/nfs-utils_env.sh, which sends its > variables > to /run/sysconfig/nfs-utils, from where they are read by nfs-server.service. > > Setting RPCNFSDOPTS solves this issue, so I am suggesting that it be added > (empty) > to /etc/default/nfs-kernel-server, along with a commentary pointing to the > rpc.nfsd > man page for information on parameters. Sincd version 1:2.6.1-1 /etc/nfs.conf settings can be done, or in dropins in /etc/nfs.conf.d/ so closing this bug with that version. Starting there you can set the host= and other parameters in the configuration file in the [nfsd] stanza. Regards, Salvatore