Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Mar 1998 12:35:57 +0000
From:      Brian Somers <brian@Awfulhak.org>
To:        Bill Trost <trost@cloud.rain.com>
Cc:        stable@FreeBSD.ORG
Subject:   Re: problems with PPP 
Message-ID:  <199803141235.MAA10021@awfulhak.org>
In-Reply-To: Your message of "Fri, 13 Mar 1998 23:48:54 PST." <19980314080045.7637.qmail@jli.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
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<UP,POINTOPOINT,RUNNING,MULTICAST> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199803141235.MAA10021>