I am trying to mount my synology NAS with NFS on my debian 10 buster newly installed computer.
I managed to do so BUT only if I allow any host in Synology i.e. use wildcard '*' as hostname in synology DSM file access permission instead of "MyDESKTOP" as I would like to.
The synology and debian destop computers are on the local area network with router and gateway in between.
I use the following command from shell on MyDESKTOP computer:
- Code: Select all
sudo mount MyNAS.local:/volume1/homes /mnt/MyNAS
or following line in /etc/fstab of MyDESKTOP:
- Code: Select all
MyNAS.local:/volume1/homes /mnt/MyNAS/ nfs defaults 0 0
When host name is "MyDESKTOP" I get the following error message
- Code: Select all
mount.nfs: access denied by server while mounting MyNAS.local:/volume1/homes
When hostname is "*" it works.
As a consequence I also tried the verbose option of mount on MyDESKTOP computer:
- Code: Select all
sudo mount -v MyNAS.local:/volume1/homes /mnt/MyNAS
The feedback is :
- Code: Select all
mount.nfs: timeout set for Fri Jan 1 14:20:53 2021
mount.nfs: trying text-based options 'vers=4.2,addr=192.168.0.66,clientaddr=192.168.0.71'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 'vers=4.1,addr=192.168.0.66,clientaddr=192.168.0.71'
mount.nfs: mount(2): No such file or directory
mount.nfs: trying text-based options 'addr=192.168.0.66'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 192.168.0.66 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 192.168.0.66 prog 100005 vers 3 prot UDP port 892
mount.nfs: mount(2): Permission denied
mount.nfs: access denied by server while mounting MyNAS.local:/volume1/homes
Consequently I tried defining the hostname with IP adress on the synology NAS and it works. Therefore it seems that the issue is name resolving on the synology.
I have the same behaviour on an ubuntu 20.04 LTS computer.
The question is:
- did any body managed to mount on linux debian or ubuntu Synology NAS by NFS using something else than wildcard '*' as hostname?
- does any body knows ways to achieve this?
My goal is to :
- allow only some hosts not any hosts to access the synology
- use names and not static or dynamic IP adresses.
I am aware that it is more a synology than debian issue but I am sure there are plenty of knowledeable people here and I could not find an answer on the WWW!