From owner-freebsd-stable Sat Mar 3 18:54:12 2001 Delivered-To: freebsd-stable@freebsd.org Received: from mta5.snfc21.pbi.net (mta5.snfc21.pbi.net [206.13.28.241]) by hub.freebsd.org (Postfix) with ESMTP id 9A4A637B71A for ; Sat, 3 Mar 2001 18:54:06 -0800 (PST) (envelope-from gdinolt@pacbell.net) Received: from pacbell.net ([63.199.30.157]) by mta5.snfc21.pbi.net (Sun Internet Mail Server sims.3.5.2000.01.05.12.18.p9) with ESMTP id <0G9N00LMMK1MOD@mta5.snfc21.pbi.net> for freebsd-stable@freebsd.org; Sat, 3 Mar 2001 18:53:46 -0800 (PST) Date: Sat, 03 Mar 2001 18:53:47 -0800 From: "George W. Dinolt" Subject: Userland PPP logging problems To: brian@Awfulhak.org, freebsd-stable@freebsd.org Message-id: <3AA1AE3B.FE40CB13@pacbell.net> MIME-version: 1.0 X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.12 i386) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Accept-Language: en Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I use userland ppp to connect to my DSL line. I have been doing this for about a year now. Before that I was using ppp for dialup. I cvsuped on Friday, March 2 and rebuilt world and kernel on 4.2-STABLE. That went well. My previous rebuild was about Feb 10. I thought you might be interested to know about the following changes to ppp running on my newly built system. I have been able to work around them, but they are "interesting." 1.) I could not longer access ppp through pppctl. My ppp.conf file contains the line set socket /var/run/internet-dsl "" 0660 which up until today allowed pppctl access. I get the message pppctl: cannot connect to socket /var/run/internet-dsl: Connection refused After a little investigation, I determined that if /var/run/internet-dsl socket (yes it is a socket, at least ls -F reports an "=" sign) exists before ppp is started, then pppctl cannot access the file. I tried looking around to see what has changed. I wonder if this has something to do with the changes in the socket code. I get the following console messages, which appear to be about ppp, when I boot, start ppp in the boot and the socket /var/run/internet-dsl exists: Mar 3 08:55:00 gateway /kernel: Starting ppp as "root" Mar 3 08:55:00 gateway /kernel: Warning: Local: bind: Address already in use Mar 3 08:55:00 gateway /kernel: Warning: set socket: Failed 4 Since ppp logging doesn't work from boot (see below), I don't have more information. 2.) When I bring up ppp during the boot process by configuring rc.conf, no logging takes place. I have the following in my ppp.conf file: set log Phase Command Chat Connect the appropriate part of my rc.conf file contains: ppp_enable="YES" ppp_mode="ddial" ppp_profile="PBIDSL" ppp_nat="NO" Before my updates of this past Friday, ppp logging worked fine. After a very little investigation, I determined that if I started ppp after login, ppp logging would work. It appears, from looking at /etc/rc, that networking (rc.network) gets started before syslogd and ppp is started in rc.network. /etc/rc has changed in the last 2 weeks, but I can't tell if the changes should have affected the logging. 3.) If I shutdown and - I have not brought ppp down "by hand" using pppctl quit all command and - I have not waited about a minute for /var/run/internet-dsl and /var/run/tun0 to "disappear" then the shutdown command seems to hang for approximately a minute, or more. Of course /var/run/internet-dsl is present on reboot and I cannot access ppp through pppctl. 4.) There also seems to be some "strangeness" between ppp and named. On occasion I have to reset named (kill -1) before it notices that the routing has changed after a ppp restart. I need investigate this more and get more specific information about the issues. Has anyone else noticed problems like this after recent builds? Am I missing some configuration change? My full ppp.conf is shown below with changes to authname and authkey lines. ################################################################# # PPP Sample Configuration File # Originally written by Toshiharu OHNO # Simplified 5/14/1999 by wself@cdrom.com # # See /usr/share/examples/ppp/ for some examples # # $FreeBSD: src/etc/ppp/ppp.conf,v 1.2.2.4 2001/02/22 23:28:42 brian Exp $ ################################################################# default: set log Phase Command Chat Connect set speed 115200 set timeout 0 allow users * set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 PBIDSL: set cd 5 set line PPPoE:de0 set socket /var/run/internet-dsl "" 0660 set crtscts off set MRU 1490 set MTU 1490 set authname foobar set authkey xxxxxx add default HISADDR enable lqr set reconnect 90 5 Thanks: G. Dinolt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message