On Thu, Jul 19, 2007 at 07:53:25PM -0700, David Liontooth wrote:

> In /etc/fstab, I use this line to mount an NFS drive behind a firewall that forwards ports with iptables:
>
> system:/esb /mnt/esb1 nfs noauto,user,exec,rw,rsize=16k,wsize=16k,hard,intr,port=4000,mountport=5000 0 0

Could you try giving the "tcp" or "udp" flags as well as "nfsvers=3" or
similar? It might be that it simply isn't reaching the portmapper.
Baseline:
mount: mount to NFS server 'esb' failed: RPC Error: Success.

nfsvers=3 makes no difference:
mount: mount to NFS server 'esb' failed: RPC Error: Success.

tcp fails in a new way:
mount.nfs: Input/output error

That failure is explained by the current iptables rule on the gateway, which only forwards udp for nfs: iptables -t nat -A PREROUTING -p udp -d 122.47.72.148 --dport 4000 -j DNAT --to 192.168.0.5:2049

upd: works!

Please close -- but this should be documented (or the default changed to what used to be in effect before nfs-common 1.1.0-6).

Tested and confirmed to work on 1.1.0-6, 1.1.0-10, and 1.1.0-11.

Dave


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to