IP restriction for NFS

Status
Not open for further replies.

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!
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421

machiasiaweb

Cadet
Joined
Dec 28, 2017
Messages
3
Hello,

Please find the screen capture. Others 192.168.20.x IP still can mount but not able to list inside.

Is that anything I missing?

Thanks!
 

Attachments

  • share_option.jpg
    share_option.jpg
    56.5 KB · Views: 715
Status
Not open for further replies.
Top