[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Is it a bug -- mount does not work on 127.0.0.1/127.0.1.1 interfaces?



On 24/04/14 18:51, Snow Leopard wrote:
Hi,

OS: wheezy / squeeze

Could somebody explain what wrong?
Why mount refuses to mount through loopback interface?

The issue can be reproduced in your system with next set of commands

root# mkdir -p /exports/home
root# cat >> /etc/exports
/export/home 192.168.0.0/24(rw,sync,no_subtree_check)

This is allowing access to all clients on network 192.168.0.0

^C
root# exportfs -ra
root# mount -t nfs 127.0.0.1:/export/home /mnt

You haven't allowed access to clients on network 127.0.0.0

You probably need something like this in /etc/exports:
/export/home 192.168.0.0/24(rw,sync,no_subtree_check) 127.0.0.0/24(rw,sync,nosubtree_check)

(all on one line, that probably got wrapped)

No bug. Just wrong configuration.
--
Dom


Reply to: