NFS Server Request Denied

Hello again, I need to create a NFS server from FreeBSD 13.5. I can use the NFS server on localhost. But whenever I try different computers, they all give "access denied" error. I looked at /var/log/messages and this is what it says for another FreeBSD computer:
Code:
Jul 30 05:56:04 bsdvm mountd[924]: mount request denied from 192.168.1.103 for /usr/home/beastie

But for Linux computer it gives a different error message:
Code:
Jul 30 05:55:50 bsdvm mountd[924]: mount request from 192.168.1.102 from unprivileged port

My /etc/rc.conf:
Code:
rpcbind_enable="YES"
nfs_server_enable="YES"
nfs_client_enable="YES"
nfs_client_flags="-n 4"
nfsv4_server_enable="YES"
rpc_statd_enable="YES"
rpc_lockd_enable="YES"
nfsuserd_enable="YES"
mountd_enable="YES"
mountd_flags="-r"

And here is my /etc/exports:
Code:
/usr/home/beastie    -alldirs    192.168.1.105
 
Your exports only allows mounts from 192.168.1.105 and your client has 192.168.1.103, thus it's not allowed. As for Linux, it tends to try to mount from an unprivileged port, which isn't allowed by default.

Code:
     -n      Allow non-root mount requests to be served.  This should only be
             specified if there are clients such as PC's, that require it.  It
             will automatically clear the vfs.nfsd.nfs_privport sysctl flag,
             which controls if the kernel will accept NFS requests from
             reserved ports only.
mountd(8).
 
Your exports only allows mounts from 192.168.1.105 and your client has 192.168.1.103, thus it's not allowed. As for Linux, it tends to try to mount from an unprivileged port, which isn't allowed by default.

Code:
     -n      Allow non-root mount requests to be served.  This should only be
             specified if there are clients such as PC's, that require it.  It
             will automatically clear the vfs.nfsd.nfs_privport sysctl flag,
             which controls if the kernel will accept NFS requests from
             reserved ports only.
mountd(8).
It looks like I read the documentation wrong. Thanks.
 
Back
Top