From owner-freebsd-arch@FreeBSD.ORG Mon Apr 13 14:26:44 2009 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EAD0010656C7; Mon, 13 Apr 2009 14:26:44 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from skerryvore.cs.uoguelph.ca (skerryvore.cs.uoguelph.ca [131.104.94.204]) by mx1.freebsd.org (Postfix) with ESMTP id A569B8FC08; Mon, 13 Apr 2009 14:26:44 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from muncher.cs.uoguelph.ca (muncher.cs.uoguelph.ca [131.104.91.102]) by skerryvore.cs.uoguelph.ca (8.13.1/8.13.1) with ESMTP id n3DEQfCU010964; Mon, 13 Apr 2009 10:26:41 -0400 Received: from localhost (rmacklem@localhost) by muncher.cs.uoguelph.ca (8.11.7p3+Sun/8.11.6) with ESMTP id n3DEX7e26970; Mon, 13 Apr 2009 10:33:07 -0400 (EDT) X-Authentication-Warning: muncher.cs.uoguelph.ca: rmacklem owned process doing -bs Date: Mon, 13 Apr 2009 10:33:07 -0400 (EDT) From: Rick Macklem X-X-Sender: rmacklem@muncher.cs.uoguelph.ca To: Max Laier In-Reply-To: <200904130025.31771.max@love2party.net> Message-ID: References: <49E25816.9010907@freebsd.org> <200904130025.31771.max@love2party.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Scanned-By: MIMEDefang 2.63 on 131.104.94.204 Cc: Tim Kientzle , Robert Watson , Julian Elischer , freebsd-arch@freebsd.org Subject: Re: getting a callback ip address for nfsv4 client X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Apr 2009 14:26:46 -0000 On Sun, 12 Apr 2009, Max Laier wrote: [Tim's good stuff snipped] > > Well, the client also needs to listen at the address - that is a local > decision. For now, it just listens on INADDR_ANY, but I suppose there's an argument for adding an option to the daemon to set an address, to restrict it to listening on one interface? (I do currently have a sysctl variable for overriding what rtalloc1() returns, but that requires manual intervention. There is an argument for setting the port#. Does someone have to set the port in the NAT gateway manually or is there a protocol/library for doing that? > This is much like the problem with active mode FTP - and it has the > same problems with NAT (i.e. the NAT service must be aware of the protocol and > translate the address inside). The alternative is to use things like UPnP to > retrieve an external address mapping ... there are libraries to deal with > that. > Are these libraries in FreeBSD-CURRENT? If so, please point me towards them, so I can take a look. Since the callback daemon starts out in userland, talking to userland libraries to handle NAT shouldn't be a problem. Thanks for the help sofar, rick