How to set access control for NFS on IPV6?

I have an nfs server in my local network with ipv4 address 192.168.1.xxx. Recently I find that I can mount my exported path from any place on the earth through the global IPV6 address, which worried me seriously.

Is there a method to restrict that only local machine can mount the nfs exported path?

Thanks.

I finally find that it was my fault, I added a whitespace between the ip address and the option list.

See this issue.

I finally find that it was my fault, I added a whitespace between the ip
address and the option list.

This is a pretty easy error to make with fairly unpleasant repurcussions. We really should change the exports to take an attrset and then generate the file instead of free-texting it.

2 Likes