Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Apr 2009 14:07:34 -0700
From:      Tim Kientzle <kientzle@freebsd.org>
To:        Rick Macklem <rmacklem@uoguelph.ca>
Cc:        Robert Watson <rwatson@freebsd.org>, Julian Elischer <julian@elischer.org>, freebsd-arch@freebsd.org
Subject:   Re: getting a callback ip address for nfsv4 client
Message-ID:  <49E25816.9010907@freebsd.org>
In-Reply-To: <Pine.GSO.4.63.0904121515220.27116@muncher.cs.uoguelph.ca>
References:  <Pine.GSO.4.63.0903301733120.17182@muncher.cs.uoguelph.ca>	<alpine.BSF.2.00.0904051826550.12639@fledge.watson.org>	<49D98461.4000002@elischer.org>	<alpine.BSF.2.00.0904061143190.34905@fledge.watson.org>	<Pine.GSO.4.63.0904061132190.19343@muncher.cs.uoguelph.ca>	<BE45DEE0-8D98-4B32-B48A-4D86834DD6E2@rabson.org>	<alpine.BSF.2.00.0904121323220.19879@fledge.watson.org>	<C8A9F5A9-9B82-43A5-818A-3771B1B25CC7@rabson.org>	<Pine.GSO.4.63.0904121357270.15456@muncher.cs.uoguelph.ca>	<alpine.BSF.2.00.0904121906270.19879@fledge.watson.org> <Pine.GSO.4.63.0904121515220.27116@muncher.cs.uoguelph.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
> The second brings up the question of NAT, which I know diddly about.
> (I vaguely thought that neither rtalloc() nor getsockaddr() would work,
> since they would return 192.168.x.x and you really need the address
> assigned by the isp?) Can someone help w.r.t. what address to use
> when behind a NAT?

In general, the client doesn't know what address to use
in this case.  In fact, I've been a little confused by this
conversation all along.  It sounds like the client is
looking up it's own address in order to tell the server
how to contact the client?  Why?  The server already
knows the source IP address on the incoming packets
from the client; that's much more robust than anything
the client could look up.

Or did I misunderstand something?

Tim




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49E25816.9010907>