From owner-freebsd-current Fri Mar 30 5:41: 6 2001 Delivered-To: freebsd-current@freebsd.org Received: from mout1.freenet.de (mout1.freenet.de [194.97.50.132]) by hub.freebsd.org (Postfix) with ESMTP id 3466D37B75B; Fri, 30 Mar 2001 05:40:59 -0800 (PST) (envelope-from netchild@leidinger.net) Received: from [194.97.50.138] (helo=mx0.freenet.de) by mout1.freenet.de with esmtp (Exim 3.22 #1) id 14iz98-0000Pv-00; Fri, 30 Mar 2001 15:40:58 +0200 Received: from a372b.pppool.de ([213.6.55.43] helo=Magelan.Leidinger.net) by mx0.freenet.de with esmtp (Exim 3.22 #1) id 14iz97-0000uy-00; Fri, 30 Mar 2001 15:40:57 +0200 Received: from Leidinger.net (netchild@localhost [127.0.0.1]) by Magelan.Leidinger.net (8.11.3/8.11.3) with ESMTP id f2UDdro62427; Fri, 30 Mar 2001 15:39:54 +0200 (CEST) (envelope-from netchild@Leidinger.net) Message-Id: <200103301339.f2UDdro62427@Magelan.Leidinger.net> Date: Fri, 30 Mar 2001 15:39:40 +0200 (CEST) From: Alexander Leidinger Subject: Re: Recent interface/routing changes breaks on-demand PPP (+sppp) To: ru@FreeBSD.org Cc: current@FreeBSD.org In-Reply-To: <20010330152132.C82273@sunbay.com> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by Magelan.Leidinger.net id f2UDdro62427 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 30 M=E4r, Ruslan Ermilov wrote: >> What to do in this situation? I didn't want add the defaultroute >> everytime (POLA). >>=20 > But if we don't do this, we may end up using the wrong source IP > address. Without my fixes, try this: >=20 > 1) ifconfig isp1 X.X.X.1 .... > 2) route add default -iface isp1 > 3) ifconfig isp1 X.X.X.2 > 4) ping some outside host > 5) watch the packets will go from the wrong address (X.X.X.1) If I use route add default -interface isp1 I wan't to have the packets routed trough isp1. I don't care about how the routing table is held consistent, but I if the route is discarded without my interaction it not only violates POLA, in this case it's prohibits a valid use of the -interface feature (dial on demand via sppp is broken at the moment). Bye, Alexander. --=20 The dark ages were caused by the Y1K problem. http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint =3D C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message