Access denied when mounting IPv4 NFS share on dual-stacked client
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nfs-utils (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Here is my (censored) /etc/exports on my server (Running Ubuntu 12.04), which is currently dual-stacked:
-------------------
# Public Storage (write)
#ipv6
/export 2001:xxxx:
/export/home 2001:xxxx:
/export/
# ipv4
/export 192.168.
/export/home 192.168.
/export/
-------------------
This is the mount command I issue from the client:
-------------------
sudo mount bender:
-------------------
This config works as expected. However, I get the following error if I remove the IPv6 config lines from /etc/exports, and attempt to mount a share on a dual-stacked client running Quantal:
-------------------
mount.nfs: access denied by server while mounting bender:
-------------------
If I then disable IPv6 at the client, it will then mount as expected.
Most importantly: This does not break in Ubuntu 12.04. A dual-stacked 12.04 client will successfully mount an NFS share which is only exported over IPv4.
In short, to replicate the error:
- Both client and server are dual-stacked
- Client is running Quantal
- /etc/exports on server is exporting NFS shares ONLY over an IPv4 subnet.