From owner-freebsd-chat Sat Apr 20 1:19:30 2002 Delivered-To: freebsd-chat@freebsd.org Received: from snipe.prod.itd.earthlink.net (snipe.mail.pas.earthlink.net [207.217.120.62]) by hub.freebsd.org (Postfix) with ESMTP id EF35237B41B for ; Sat, 20 Apr 2002 01:19:23 -0700 (PDT) Received: from pool0177.cvx21-bradley.dialup.earthlink.net ([209.179.192.177] helo=mindspring.com) by snipe.prod.itd.earthlink.net with esmtp (Exim 3.33 #2) id 16yq5L-0001tN-00; Sat, 20 Apr 2002 01:19:08 -0700 Message-ID: <3CC1245C.EEE4ADE@mindspring.com> Date: Sat, 20 Apr 2002 01:18:36 -0700 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Brett Glass Cc: "Matthew D. Fuller" , chat@FreeBSD.ORG Subject: Re: How to control address used by INADDR_ANY? References: <4.3.2.7.2.20020419144005.0358c610@nospam.lariat.org> <4.3.2.7.2.20020419144005.0358c610@nospam.lariat.org> <4.3.2.7.2.20020420004621.02379880@nospam.lariat.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Brett Glass wrote: > At 07:46 PM 4/19/2002, Matthew D. Fuller wrote: > >My router has its "real" address on both ed0 and tun0. > > In other words, you give tun0 an address in rc.conf? And > it works? (I don't have the tun device built into my > kernel, but I suppose I can add it or maybe something > else that's lightweight. > > Why does this work? It works because you set the default route to "tun0", and so all packets are sent via that interface, and therefore from the address of that interface, and it has only one IP address: one the ISP can live with. The tunnelled packets are sent to the ISP through the tunnel destination, which is point-to-point forwarded. My previous suggestion was to make the routable IP address the source address by making it the canonical IP address for the interface, rather than one of the aliases, which should have resulted in it being used as the source address. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message