setting up nfs

Mark Komarinski mkomarinski at valinux.com
Thu Jul 26 09:50:07 EDT 2001


Cable modem routers (or any NAT filter) can not forward UDP packets.
There are two solutions:

1)  Forward the NFS UDP port through to your machine, which will
only allow you NFS access from that one machine.  I don't have
a Linksys, so I cannot tell you how to do this.
2)  Use NFS over TCP.  I've never used this, but Linux has
support for it on the client and server side (as of RH 7.1, YMMV).
Incantation is:

mount -t nfs -o tcp host:/share /mnt/share

<security>
you really don't want to be running NFS over the Internet.  It's bad.
It's insecure, anyone can read it, blah blah.
</security>

-Mark

Derek Atkins wrote:

> Oh, another thing to think about: MediaOne (or your linksys router)
> may block packets to the portmapper address.
> 
> -derek
> 
> Joel Gwynn <joelman at world.std.com> writes:
> 
> 
>>I'm using mediaone, with a linksys router, and I'm trying to connect to a machine that a friend of mine is hosting for me.
>>
>>I can ssh to this machine, ping it, etc.  I set up nfs on that computer, and the output of rpcinfo -p on that machine is:
>>
>>   program vers proto   port
>>    100000    2   tcp    111  portmapper
>>    100000    2   udp    111  portmapper
>>    100024    1   udp    749  status
>>    100024    1   tcp    751  status
>>    100003    2   udp   2049  nfs
>>    100003    2   tcp   2049  nfs
>>    100005    1   udp    821  mountd
>>    100005    2   udp    821  mountd
>>    100005    1   tcp    824  mountd
>>    100005    2   tcp    824  mountd
>>
>>I have an entry in the hosts.allow file with the mediaone dynamic ip of my client machine, and the filesystem in my exports file.
>>
>>When I try to mount the drive, nothing happens for a while, then I get:
>>
>>mount: RPC: Timed out
>>
>>rpcinfo -p <hostname> gives me this output:
>>
>>rpcinfo: can't contact portmapper: RPC: Remote system error - Connection timed out
>>
>>Am I doing this right?
>>
>>--
>>========[Joel-Gwynn]-[joelman at joelman.com]=======
>>A train station is where a train stops.
>>A bus station is where a bus stops.
>>So now you know why they call this a workstation.
>>
>>
>>
>>-
>>Subcription/unsubscription/info requests: send e-mail with
>>"subscribe", "unsubscribe", or "info" on the first line of the
>>message body to discuss-request at blu.org (Subject line is ignored).
>>
> 


-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).



More information about the Discuss mailing list