machiasiaweb
Cadet
- Joined
- Dec 28, 2017
- Messages
- 3
Hello,
I would like to know how to restrict the IP to mount NFS.
For example, I have setup a NFS mount point which restrict 2 IPs only to allow read/write. Following is the 'exports' config output
-----
#cat /etc/exports
V4: / -sec=sys
/mnt/storage1 -alldirs -maproot="nobody":"nobody" 192.168.20.149 192.168.20.147
----
However, the others out of the allow list IP still able to mount. Although it is not able to read inside
----- Following is the output ----
# mount -t nfs 192.168.20.151:/mnt/storage1/dir /mnt/nfs2
# ls /mnt/nfs2
ls: reading directory /mnt/nfs2: Input/output error
----------------------------------
I would like to know does there is any method to restrict even others out of range client to mount also?
Thanks!
I would like to know how to restrict the IP to mount NFS.
For example, I have setup a NFS mount point which restrict 2 IPs only to allow read/write. Following is the 'exports' config output
-----
#cat /etc/exports
V4: / -sec=sys
/mnt/storage1 -alldirs -maproot="nobody":"nobody" 192.168.20.149 192.168.20.147
----
However, the others out of the allow list IP still able to mount. Although it is not able to read inside
----- Following is the output ----
# mount -t nfs 192.168.20.151:/mnt/storage1/dir /mnt/nfs2
# ls /mnt/nfs2
ls: reading directory /mnt/nfs2: Input/output error
----------------------------------
I would like to know does there is any method to restrict even others out of range client to mount also?
Thanks!