From owner-freebsd-stable Sun Mar 15 07:52:32 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA26609 for freebsd-stable-outgoing; Sun, 15 Mar 1998 07:52:32 -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 HAA26457 for ; Sun, 15 Mar 1998 07:49:38 -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 PAA19627; Sun, 15 Mar 1998 15:35:34 GMT (envelope-from brian@gate.lan.awfulhak.org) Message-Id: <199803151535.PAA19627@awfulhak.org> X-Mailer: exmh version 2.0.1 12/23/97 To: Bill Trost cc: Brian Somers , stable@FreeBSD.ORG Subject: Re: problems with PPP In-reply-to: Your message of "Sat, 14 Mar 1998 08:35:05 PST." <19980314163556.11332.qmail@jli.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 15 Mar 1998 15:35:34 +0000 From: Brian Somers Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk > Brian Somers writes: > 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. > > I don't think that is the problem. If I run ping or dig after the link has > come up, it's still using 0.0.0.0 as the source address. I'm sorry to say, but AFAIK, this is impossible, and even if it *is* actually happening, it's nothing to do with ppp :-( If you run tcpdump on the tun interface, you get to see packets going ``out'' on the tun interface before ppp gets it's hands on them. The only way you can get a packet with a source address of 0.0.0.0 is to generate it on a machine that thinks it's interface address is 0.0.0.0. This isn't the case in your example: > 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 Of course ppp will just pick these packets up and forward them. If you've got aliasing configured, it'll stick the 131.252.218.8 address in as the source IP, and change reply packets back to 0.0.0.0. Does ``netstat -rn'' show up with anything interesting ? -- Brian , , Don't _EVER_ lose your sense of humour.... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message