Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Apr 1998 08:52:45 +0200
From:      erakupa@kk.etx.ericsson.se (ETX-B-SL Martti Kuparinen)
To:        isp@FreeBSD.ORG, stable@FreeBSD.ORG
Subject:   pppd troubles in 2.2.6-STABLE
Message-ID:  <199804290652.IAA09588@kk662.kk.etx.ericsson.se>

next in thread | raw e-mail | index | archive | help
I'm having troubles with my PPP server running 2.2.6-STABLE. This
server is running the kernel PPP, a.k.a pppd, and accepts only PPP
connections with PAP authentication.

Every time users disconnects from the PPP server the wtmp entry is
not updated, i.e. the user seems to be logged in until the server is
rebooted. Here is a snapshot from wtmp:

# last | grep PPP
gunnar   ttyd0    :PPP             Lör 25 Apr 19:54   still logged in
gunnar   ttyd0    :PPP             Fre 24 Apr 22:01   still logged in
gunnar   ttyd0    :PPP             Tor 23 Apr 20:58   still logged in

The log messages indicate that gunnar connected on Apr 24 22:01:12 and
disconnected shortly after on Apr 24 22:01:27. This disconnection is
however not recorded to wtmp.

Apr 23 21:07:24 sigurd pppd[3232]: pppd 2.2.0 started by root, uid 0

Apr 24 22:01:12 sigurd pppd[3232]: Connect: ppp0 <--> /dev/ttyd0
Apr 24 22:01:13 sigurd pppd[3232]: local  IP address 10.0.0.1
Apr 24 22:01:13 sigurd pppd[3232]: remote IP address 10.0.0.100
Apr 24 22:01:13 sigurd pppd[3232]: No matching compression scheme, CCP disabled
Apr 24 22:01:27 sigurd pppd[3232]: Modem hangup
Apr 24 22:01:27 sigurd pppd[4785]: pppd 2.2.0 started by root, uid 0

Apr 25 19:54:48 sigurd pppd[4785]: Connect: ppp0 <--> /dev/ttyd0
Apr 25 19:54:49 sigurd pppd[4785]: local  IP address 10.0.0.1
Apr 25 19:54:49 sigurd pppd[4785]: remote IP address 10.0.0.100
Apr 25 19:54:49 sigurd pppd[4785]: No matching compression scheme, CCP disabled
Apr 25 20:03:46 sigurd pppd[4785]: Modem hangup
Apr 25 20:03:46 sigurd pppd[7907]: pppd 2.2.0 started by root, uid 0

I am starting pppd directly from /etc/ttys with the following lines

ttyd0   "/usr/sbin/pppd -detach 115200" dialup  on  insecure
ttyd1   "/usr/sbin/pppd -detach 115200" dialup  on  insecure

My pppd configuration file (/etc/options) looks like this:

crtscts                # Hardware flow control
modem                  # modem line
passive                # wait for LCP
+pap                   # Use PAP
login                  # Use /etc/passwd in PAP
domain xxx.xxx         # our domain name
dns1 xxx.xxx.xxx.xxx   # our primary DNS server
dns2 xxx.xxx.xxx.xxx   # our secondary DNS server

The server has the address of 10.0.0.1. Clients connected to the first
modem get 10.0.0.100 and cilent to the second modem get 10.0.0.101. So
my option files look like

# cat /etc/options.ttyd0
10.0.0.1:10.0.0.100
#
# cat /etc/options.ttyd1
10.0.0.1:10.0.0.101

My /etc/ppp/pap-secrets looks like this. Passwords should are verified
against /etc/passwd (well, that is really master.passwd)

gunnar  *       ""
martti  *       ""

Any idea what I might be doing wrong? Or is this simply a bug in pppd 2.2.0?

Thanks in advance,

Martti


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message



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