Date: Sat, 03 Mar 2001 18:53:47 -0800 From: "George W. Dinolt" <gdinolt@pacbell.net> To: brian@Awfulhak.org, freebsd-stable@freebsd.org Subject: Userland PPP logging problems Message-ID: <3AA1AE3B.FE40CB13@pacbell.net>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3AA1AE3B.FE40CB13>
