Morning, all my barebone systems (Rocky Labserver, MX Linux, 2xDebian Pi4) can connect to the Rocky Mainserver NFS, and the Mainserver can connect to the Labserver NFS. All are using eth0. The Labserver has a bridge0 to eth0.
On the Labserver using bridge0, I created a Window 10 Pro VM for office duties;
I can not connect to the Mainserver NFS,
I can connect via ssh,
On the Windows,
CMD: I keep getting “The network path was not found”
Explorer: Diagnostics - “Windows can’t communicate with the device or resource (IP)” and it goes on to say “It is available but not responding to connection attempts. A firewall or network security policy on the remote computer might be blocking the connection on port ‘file and print sharing resource’”
On the Mainserver exports file I do have the Windows IP.31:
/media/KbbnNFS02 IP.12(rw,async) IP.10(rw,async) IP.29(rw,async) IP.31(rw,async)
The Windows error “The network path was not found”, probably also with the NET HELPMSG 53 would suggest that the share is not accessible - either because the incorrect sharename was provided, or it doesn’t have access to it.
I’ve mounted a share from my Synology system without any problems on Windows 10. What OS is the Mainserver running that has NFS Server installed on it?
And after editing /etc/exports, did you restart the NFS server or reexport the /etc/exports file?
Unless I’m mistaken, it will work for nfs3 and nfs4 normally by default. You can test enough by doing this on Linux. If it mounts then NFS3 is available:
mount -o vers=3 nfs-server:/share /mnt/nfs
that’s just an example, you’ll need to adapt it to your requirements in terms of share and mountpoint. If that works, then it should work for Windows.
The other thing to check is if firewalld is running on Rocky Linux - maybe you didn’t allow that particular IP address to access the server. That can also be checked by just stopping firewalld and then try to mount under Windows.
Thanks and I found the problem, the vers3 was uncommitted (I believe I did this early after install, but forgot to comment it back) and init to “n”… And while were in the nfs.conf, is it ok to remove all comments and have them initialed to “y” and nfs functions properly?
I was just today looking at nfs.conf and was first baffled.
I do presume that the commented lines do show the default config, so one would have to both uncomment and change value of option, if the default is not ok.
I was baffled as the server seemed to use default – unmodified nfs.conf – yet not quite behave like that. Explanation: there was custom file in /etc/nfs.conf.d/ that did add the site modifications.
It is generally more clear to add custom files. I just forgot to look there first.
Since the section is ‘nfsd’, I would expect the man nfsd (or man nfs.conf) to explain all those options and whether some combos are mutually exclusive.