From owner-freebsd-stable Sat Mar 14 04:42:40 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA04114 for freebsd-stable-outgoing; Sat, 14 Mar 1998 04:42:40 -0800 (PST) (envelope-from owner-freebsd-stable@FreeBSD.ORG) Received: from awfulhak.org (awfulhak.demon.co.uk [158.152.17.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA04105 for ; Sat, 14 Mar 1998 04:42:33 -0800 (PST) (envelope-from brian@Awfulhak.org) Received: from gate.lan.awfulhak.org (localhost [127.0.0.1]) by awfulhak.org (8.8.7/8.8.7) with ESMTP id MAA10021; Sat, 14 Mar 1998 12:35:57 GMT (envelope-from brian@gate.lan.awfulhak.org) Message-Id: <199803141235.MAA10021@awfulhak.org> X-Mailer: exmh version 2.0.1 12/23/97 To: Bill Trost cc: stable@FreeBSD.ORG Subject: Re: problems with PPP In-reply-to: Your message of "Fri, 13 Mar 1998 23:48:54 PST." <19980314080045.7637.qmail@jli.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 14 Mar 1998 12:35:57 +0000 From: Brian Somers Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk As I already replied in personal email (although not to the original sender :-() This looks like a ``first connection'' problem. There's a bit in the FAQ about it. If you're running in -auto mode, the first program to trigger the dial will bind to the interface address of the tun device - in your config, this is 0.0.0.0 before the connection is made. Once the connection is established, the interface addresses are corrected and subsequent bind()s will work - but the pre-negotiation bind()s are still bogus :-( This is a serious problem that will be sorted at some point - after I've got the multilink stuff done :-] > I sync'd up with stable a couple of days ago and > I am having problems with ppp (used with -auto). If the IP address is not > explicitly specified in ppp.conf, then outgoing packets get sent with a source > address of 0.0.0.0, even though the inteface appears to be configured correctly: > > bash# tcpdump -n -i tun0 > tcpdump: listening on tun0 > 23:40:00.184347 0.0.0.0.53 > 128.9.0.107.53: 58951 A? internic.net. (30) > 23:40:01.194388 0.0.0.0.53 > 192.33.4.12.53: 58948 A? internic.net. (30) > ^C > bash# ifconfig tun0 > tun0: flags=8051 mtu 1500 > inet 131.252.218.8 --> 204.203.69.20 netmask 0xffff0000 > > > The relevant bits of /etc/ppp/ppp.conf are as follows: > > default: > set device /dev/cuaa1 > set speed 57600 > disable lqr > deny lqr > set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT OK-AT-OK \\dATDT\\T TIMEOUT 40 CONNECT" > set ctsrts on > server: > set ifaddr 0 204.203.69.20 > add default HISADDR > > > I probably should be including something else, but I don't recall what.... > > I have tried using both the 2.2.6-BETA kernel and an earlier (January-ish) > kernel that I had installed before the upgrade, but that didn't help (thereby > suggesting the bug is not a recent addition to the kernel). I tried cvsupping > and rebuilding ppp, but that didn't help. I tried talking to a PPP server > where my IP address is statically assigned, so I could set my own ifaddr, and > that *did* help. > > Useful comments appreciated. I might try throwing away the ppp and/or netinet > sources and rebuilding, but I do not have the network bandwidth to do that > available at the moment -- something about PPP problems.... (-: > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-stable" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message