Date: Sat, 20 Apr 2002 01:18:36 -0700 From: Terry Lambert <tlambert2@mindspring.com> To: Brett Glass <brett@lariat.org> Cc: "Matthew D. Fuller" <fullermd@over-yonder.net>, chat@FreeBSD.ORG Subject: Re: How to control address used by INADDR_ANY? Message-ID: <3CC1245C.EEE4ADE@mindspring.com> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3CC1245C.EEE4ADE>