Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Apr 2002 11:20:43 -0600
From:      Brett Glass <brett@lariat.org>
To:        Terry Lambert <tlambert2@mindspring.com>
Cc:        "Matthew D. Fuller" <fullermd@over-yonder.net>, chat@FreeBSD.ORG
Subject:   Re: How to control address used by INADDR_ANY?
Message-ID:  <4.3.2.7.2.20020420111258.021d7270@nospam.lariat.org>
In-Reply-To: <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
At 02:18 AM 4/20/2002, Terry Lambert wrote:

>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.

I'm not sure how this would work. The ISP can "live with"
any address, but the source address must be a routable
address to make it out of their internal network.

If I give tun0 a 10.x address, the packets won't make
it out to the Internet. If I give it a "real" address
that belongs to one of the subnets, the packets
will ultimately go the wrong way. 

>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.

The question is, what routable IP address should that be? 
The address of one of the internal interfaces? An address
from one of the internal subnets that's not assigned to
an interface? I'm confused.

--Brett


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?4.3.2.7.2.20020420111258.021d7270>