Restricting NFS to IP fails

Restricting NFS to interfaces/IPs example does not work from clients w/ host IPaddress

https://wiki.archlinux.org/title/NFS

/etc/nfs.conf
[nfsd]
host=192.168.0.9

Alternatively, use the hostname.

host=myhostname

sudo systemctl restart nfs-server.service
sudo systemctl status nfs-server.service

error:
rpc.nfsd[62525]: rpc.nfsd: unable to bind AF_INET TCP socket: errno 99 (Cannot assign requested address)

This is the IP address that the NFS server is binding to on the server.

Use /etc/exports to restrict connecting devices to certain IP addresses.

3 Likes