From owner-freebsd-stable Mon Mar 16 02:23:32 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA08670 for freebsd-stable-outgoing; Mon, 16 Mar 1998 02:23:32 -0800 (PST) (envelope-from owner-freebsd-stable@FreeBSD.ORG) Received: from nomad.mt.sri.com (ppp58-max01.twics.com [202.237.149.185]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA08661 for ; Mon, 16 Mar 1998 02:23:28 -0800 (PST) (envelope-from nate@nomad.mt.sri.com) Received: (from nate@localhost) by nomad.mt.sri.com (8.8.8/8.8.8) id DAA01019; Mon, 16 Mar 1998 03:21:53 -0700 (MST) (envelope-from nate) Date: Mon, 16 Mar 1998 03:21:53 -0700 (MST) Message-Id: <199803161021.DAA01019@nomad.mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: brian@awfulhawk.org CC: stable@FreeBSD.ORG Subject: On-demand dynamic PPP not doing default route correctly X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Reply-To: "Nate Williams" Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk It's been a *really* long time since I've used PPP, but since I'm in Japan and my ISP (TWICS) uses dymanic IP stuff, it's a bit easier to test this. My config file is as follows: twics-tokyo: set phone 123456789 set login set authname authname set authkey authkey set timeout 120 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 delete ALL add 0 0 HISADDR The problem is that if I run this with 'ppp -auto twics-tokyo', the first thing it does is setup a default route to 10.0.0.2 (totally bogus). However, the tun0 device is setup correctly with the remote site. So, as root, I blow away the default route, and add a new one with the correct 'remote' site. Then, after a few minutes, the link 'dies'. No packets come in or go out. This may or may not be a FreeBSD/PPP problem, but if I use Win95 PPP it *NEVER* locks up. I have TCP extensions turned off if that makes any difference. (It also seems to be related to the use of fetchmail if that gives anyone any ideas.) The third problem is that if the line 'times out', when it comes back up I often-times have a different IP address and default route. PPP is not corretly re-setting the default route when it re-dials. Also, shouldn't I be able to run a 'one-time' connection to twics tokyo by typing 'ppp twics-tokyo'? If I try it, I get: Working in interactive mode Using interface: tun0 Warning: Add route failed: 0.0.0.0: errno: Network is unreachable I just want to connect to the ISP *once*, and then exit the program. Finally, what is the preferred method to shutdown the link when I'm done? I usually get my email, then go offline and update it, then re-start PPP to have it flush out the mail queue before I head off to bed. If it keeps driving me crazy I may go see if I can fix it myself, but Brian seems to be having the time of his life changing it every day, so he's obviously more familiar with the code than anyone else. :) Thanks! Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message