From owner-freebsd-questions Mon Mar 16 10:38:23 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA10686 for freebsd-questions-outgoing; Mon, 16 Mar 1998 10:38:23 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from gilberto.physik.RWTH-Aachen.DE (gilberto.physik.rwth-aachen.de [137.226.30.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA10399 for ; Mon, 16 Mar 1998 10:37:39 -0800 (PST) (envelope-from kuku@gilberto.physik.RWTH-Aachen.DE) Received: (from kuku@localhost) by gilberto.physik.RWTH-Aachen.DE (8.8.7/8.8.7) id TAA02574; Mon, 16 Mar 1998 19:37:40 +0100 (MET) (envelope-from kuku) Message-ID: <19980316193740.18208@gil.physik.rwth-aachen.de> Date: Mon, 16 Mar 1998 19:37:40 +0100 From: Christoph Kukulies To: Doug White Cc: Christoph Kukulies , freebsd-questions@freefall.FreeBSD.org Subject: Re: ppp help sought References: <199803161537.QAA01809@gilberto.physik.RWTH-Aachen.DE> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81e In-Reply-To: ; from Doug White on Mon, Mar 16, 1998 at 09:54:31AM -0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Mar 16, 1998 at 09:54:31AM -0800, Doug White wrote: > On Mon, 16 Mar 1998, Christoph Kukulies wrote: > > > > > I'm still having problem with some sort of ppp users, mainly > > those logging in via Linux ppp(d). > > > > My machine runs pppd (kernel) and 2.2.5R. > > > > Here's a log of a problem user: > > > > > > Mar 16 16:08:41 agate pppd[16073]: pppd 2.2.0 started by root, uid 0 > > Mar 16 16:08:41 agate pppd[16073]: Using interface ppp0 > > Mar 16 16:08:41 agate pppd[16073]: Connect: ppp0 <--> /dev/ttyd0 > > Mar 16 16:08:43 agate pppd[16073]: user xxxxxxxx logged in > > Mar 16 16:08:43 agate pppd[16073]: local IP address xxx.yyy.zz.1 > > Mar 16 16:08:43 agate pppd[16073]: remote IP address xxx.yyy.zz.33 > > Mar 16 16:08:43 agate pppd[16073]: found interface ed0 for proxy arp > > Mar 16 16:09:13 agate pppd[16073]: CCP: timeout sending Config-Requests > > Mar 16 16:09:56 agate pppd[16073]: LCP terminated at peer's request > > Mar 16 16:09:59 agate pppd[16073]: Connection terminated. > > Mar 16 16:09:59 agate pppd[16073]: Exit. > > > > What does the CCP timeout mean? > > CCP is Compression (or Connection) Control Protocol, I think. Your > machine may be having trouble establishing the connection; are you sure > that ppp(d) is running on your server when they dial in? I'm using /etc/ttys: ttyd0 "/usr/libexec/getty std.57600" dialup on /etc/gettytab: std.57600|57600-baud:\ :np:sp#57600:pp=/usr/local/bin/ppplogin.sh (This is - if I didn't mess anything - out of the box 2.2.5R) /usr/local/bin/ppplogin.sh: #!/bin/sh # # # LOCAL is the IP address of your terminal server. It can be the same # as the IP address of the ethernet card, but need not be. # LOCAL=xxx.yyy.zz.1 # # PORT=`/usr/bin/tty | /usr/bin/sed 's/.*tty//'` # Check that this is a valid modem port, i.e. defined in /etc/ppp/ppp.ports p=`grep $PORT'[[:space:]]' /etc/ppp/ppp.ports | awk '{print $1}'` if [ "X$p" = "X" ] ; then echo You must run pppd over a serial line. exit fi # If this is standard login, then $USER will be defined - see if there # is a static IP address entry for the $USER. if [ "X$USER" != "X" ] ; then REMOTE=`grep '^'$USER'[[:space:]]' /etc/ppp/ppp.users |awk '{print $2}'` fi # Check that the user is not ppp-disabled. if [ "X$USER" != "X" ] ; then baduser=`grep '^'$USER'[[:space:]]' /etc/ppp/ppp.disabled'` if [ X$baduser != X ] ; then echo Sorry, user $USER may not use ppp. exit fi fi # If $USER is not defined (running from ppp-aware getty), or has no # static IP address, get an IP address for the dialin port. if [ "X$REMOTE" = "X" ] ; then REMOTE=`grep $PORT'[[:space:]]' /etc/ppp/ppp.ports | awk '{print $2}'` fi if [ "X$REMOTE" = "X" ] ; then echo Error: port $PORT is not listed in /etc/ppp/ppp.ports exit fi # If this is a login: style user, don't request PAP authentication # otherwise, demand PAP. if [ "X$USER" != "X" ]; then echo "Server address is $LOCAL. Your address is $REMOTE." exec /usr/sbin/pppd modem $LOCAL:$REMOTE else exec /usr/sbin/pppd auth login +pap modem $LOCAL:$REMOTE fi > > Doug White | University of Oregon > Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant > http://gladstone.uoregon.edu/~dwhite | Computer Science Major > -- --Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message