From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1MdP5F-0007On-8Z for garchives@archives.gentoo.org; Tue, 18 Aug 2009 13:50:41 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3760CE01C5; Tue, 18 Aug 2009 13:50:40 +0000 (UTC) Received: from mail-fx0-f211.google.com (mail-fx0-f211.google.com [209.85.220.211]) by pigeon.gentoo.org (Postfix) with ESMTP id EF98DE01C5 for ; Tue, 18 Aug 2009 13:50:39 +0000 (UTC) Received: by fxm7 with SMTP id 7so3041536fxm.10 for ; Tue, 18 Aug 2009 06:50:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type; bh=aRiUtq7miQPvBQFOMWpzrJwixCFmwhOqT/9LeGGdm3s=; b=nUZVUtpCIGB/5wGPv5kVDMGBR10M5xYlad6htigviRXLoolscObLmq793J33cTlEiE vBzhjoenW76OS/dhgGAfuVe6RwAw3xEqiK3QEST0UpLAWU550SRA4NPsnWOON/cbFGR7 /50k2BdKZLAmSihi4MfThzk3BSKh0rXZ0vBU0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type; b=fT3jkzL+iIIp0gK1Y9nagpS5+Hrdtt7bw6Xp9Nxz84xyc7rL7DC2lWCmCkC7sCmpu0 OKqWbmF0Ai5a+bjT+49Fq3XH/5oD67KnRog8viOeXwK/Fueqwe1uHx5s3sXrtCaZE9Az zrT2i1ADNbrsOjC4GQv9CPMWoqwhBYfhucHxk= Received: by 10.103.126.34 with SMTP id d34mr1966410mun.22.1250603439244; Tue, 18 Aug 2009 06:50:39 -0700 (PDT) Received: from coercion ([91.191.238.58]) by mx.google.com with ESMTPS id 12sm25132687muq.52.2009.08.18.06.50.37 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 18 Aug 2009 06:50:38 -0700 (PDT) Date: Tue, 18 Aug 2009 19:50:30 +0600 From: Mike Kazantsev To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Problem with pppd-added routes Message-ID: <20090818195030.1f0e7523@coercion> In-Reply-To: <20090818115513.GA6096@waltdnes.org> References: <20090817104518.5dcddc31@malediction> <20090818115513.GA6096@waltdnes.org> X-Mailer: Claws Mail 3.7.2 (GTK+ 2.16.5; i686-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/uSFAp=eU=wrhQogHzeg_kl2"; protocol="application/pgp-signature" X-Archives-Salt: f0557198-a8fb-4ec8-896f-6d7e35c34b6f X-Archives-Hash: 94aac2453c376daae33488d94004d8dd --Sig_/uSFAp=eU=wrhQogHzeg_kl2 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Tue, 18 Aug 2009 07:55:13 -0400 "Walter Dnes" wrote: > I have things set up to allow me to connect to dialup, and still keep > connections going to my other machine ("LAN" =3D 2 machines). I think th= is > is similar to your situation. The key is in my /etc/conf.d/net file as > per the following excerpt... >=20 >=20 > routes_eth0=3D( > "default via 192.168.123.254 metric 2 mss 1454" > "192.168.123.248/29 via 192.168.123.254 metric 0" > ) >=20 > My home machine is 192.168.123.250 on my "LAN", my hot-backup is > 192.168.123.251, and the ADSL-modem-cum-router is 192.168.123.254. Note > the 2 statements. The default connection to the world is "metric 2", > while the connection to the LAN is given "metric 0". The ppp0 > connection, when active, has priority over the default connection, but > not over the LAN connection. So I don't have to tear down the eth0 > connection when dialing up, and re-start it after disconnecting from > dialup. Thanks for the solution. Guess I'll settle for similar scheme for now, adding all the gateway IPs to the routing table via preup() function, parsing output of dig with awk. Still, overriding garbage route like that is a hack and it should be easy to write a patch for that behavior, when I'll have some spare time, provided I won't forget about the issue... ;) --=20 Mike Kazantsev // fraggod.net --Sig_/uSFAp=eU=wrhQogHzeg_kl2 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (GNU/Linux) iEYEARECAAYFAkqKsasACgkQASbOZpzyXnFF9ACg3LQFDQsMfsA+7qbDWYG1iIqh MGEAoIbdONa8ybi+VInOQQUHoYVKsvv1 =vc5n -----END PGP SIGNATURE----- --Sig_/uSFAp=eU=wrhQogHzeg_kl2--