I am trying to run a NFS server (nfs-kernel-server
package) on a Ubuntu 20.04 machine and want to make it only acessible via VPN.
I have set the appropriate IP address in the /etc/exports
file and my firewall.
Nevertheless, the rpc.mountd
daemon is still listening on all interfaces (0.0.0.0
and ::
). As a defense-in-depth measurement, I would like to restrict it further to only listen to connections on the VPN-network device.
How can I configure that?
Quoting
nfsd(8)
:Ubuntu and Debian have the configuration in
You can restrict it using