From owner-freebsd-hackers Tue Jan 21 16:53:27 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id QAA27727 for hackers-outgoing; Tue, 21 Jan 1997 16:53:27 -0800 (PST) Received: from mail.crl.com (mail.crl.com [165.113.1.22]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id QAA27722 for ; Tue, 21 Jan 1997 16:53:24 -0800 (PST) Received: from awfulhak.demon.co.uk by mail.crl.com with SMTP id AA27526 (5.65c/IDA-1.5 for ); Tue, 21 Jan 1997 16:53:02 -0800 Received: from awfulhak.demon.co.uk (localhost.coverform.lan [127.0.0.1]) by awfulhak.demon.co.uk (8.8.4/8.7.3) with ESMTP id XAA05457; Tue, 21 Jan 1997 23:16:15 GMT Message-Id: <199701212316.XAA05457@awfulhak.demon.co.uk> X-Mailer: exmh version 1.6.9 8/22/96 To: "Matthew A. Gessner" Cc: hackers Subject: Re: ppp alias under 2.1.5 In-Reply-To: Your message of "Mon, 20 Jan 1997 14:53:26 EST." <199701201947.OAA27104@home.winc.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 21 Jan 1997 23:16:14 +0000 From: Brian Somers Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk [.....] > I've attached the ppp.conf files from two machines: inetgw and voyager. > If someone could point out to me why packets AREN'T being forwarded from > tun1 to tun0 and what I need to change, I'd appreciate it. The only thing > I found that works is to create a route after ppp is logged in (say I want > to go from voyager (10.0.0.133) to home.winc.com (204.178.182.2) through > inetgw (10.0.0.4): I have to do route add 204.178.182.2 10.0.0.4) and then > I can ping it. But that doesn't do me a lot of good). [.....] > # > # Begin inetgw ppp.conf > # [.....] > wincppp: [.....] > set ifaddr 204.178.182.134 204.178.182.20 [.....] > dialup: [.....] > set ifaddr 0.0.0.0/24 10.0.0.3/24 255.255.255.0 [.....] > # > # Begin inetgw ppp.linkup > # > 204.178.182.134: > add 0 0 HISADDR > 10.0.0.133: > add 0 0 HISADDR [.....] > # > # Begin voyager ppp.conf > # [.....] > serial: [.....] > set ifaddr 10.0.0.133 10.0.0.4/24 255.255.255.0 [.....] > # > # Begin voyager ppp.linkup > # > MYADDR: > add 0 0 HISADDR [.....] The only problem I see is that you're attempting to add two default routes in inetgw:ppp.linkup - When 10.133 establishes the connection, it gets the default and inetgw sees no point in sending packets back where they came from. Try removing the 10.0.0.133 entry from inetgw:ppp.linkup - it's not required. -- Brian , Don't _EVER_ lose your sense of humour....