getting a callback ip address for nfsv4 client

Tim Kientzle kientzle at freebsd.org
Sun Apr 12 14:07:36 PDT 2009


> 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



More information about the freebsd-arch mailing list