Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Jul 2006 13:40:24 +0100
From:      Brian Candler <B.Candler@pobox.com>
To:        Brett Glass <brett@lariat.net>
Cc:        freebsd-net@freebsd.org, Marko Zec <zec@icir.org>
Subject:   Re: Multiple NAT router
Message-ID:  <20060725124024.GA8695@uk.tiscali.com>
In-Reply-To: <7.0.1.0.2.20060724204450.09bcbe80@lariat.net>
References:  <7.0.1.0.2.20060721105813.0971ae90@lariat.net> <20060724090909.GB3412@uk.tiscali.com> <200607241609.30783.zec@icir.org> <7.0.1.0.2.20060724204450.09bcbe80@lariat.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jul 24, 2006 at 09:17:37PM -0600, Brett Glass wrote:
> I've been noodling over this for two weeks now, and am thinking 
> that the easiest thing to do might be is map every address in each 
> "virtual" router to a unique address from FreeBSD's point of view 
> (i.e. 192.168.0.2 on LAN 1 becomes 10.0.0.2, while 192.168.0.2 on 
> LAN 1 becomes 10.0.1.2, etc.). The translation would be done by 
> "hooks" as close as possible to the interfaces, so FreeBSD's stack 
> wouldn't know it was being done.
> 
> All that would be needed in that case would be to do "dumb" address 
> translation at the interfaces -- transparently to FreeBSD -- just 
> before the packets entered and left.

One problem is managing the allocation of the translated addresses. But why
not do dumb mapping of IPv4 addresses to IPv6 ? That would let you have up
to 2^96 "virtual routers", and finally provide a reason for the IPv6 code to
exist :-)



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