Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Apr 1999 14:50:57 -0400 (EDT)
From:      Paul Southworth <pauls@etext.org>
To:        freebsd-questions@freebsd.org
Subject:   Bad null-modem user-ppp (wrong mode/label?)
Message-ID:  <Pine.ETEX.4.02.9904201434300.17112-100000@locust.etext.org>

next in thread | raw e-mail | index | archive | help

I know I have to be doing something really dumb, since I've had this
working with a modem before, now failing with null-modem cable.  Anyhow,
a dope-slap and an answer would be appreciated.

Two FreeBSD 3.0-RELEASE machines, with a working null-modem cable between
them.  Both machines have tunnels in the kernel and tun[0123] devices
created.

Invoking ppp on the server host, when ppp is already running on the
client, always terminates thusly:

     "You may not use ppp in this mode with this label"

I have not specified any allowed modes, which means all modes should
be OK with all labels, right?  Example session and client logs appended
at bottom.  Nothing gets logged on the server side.  Client 'tun0' goes
into the UP state when ppp runs, but nothing else interesting happens.

On server host:

* /etc/ttys entry -
  ttyd1   "/usr/libexec/getty std.115200" vt100   on

* /etc/passwd entry -
  ppp:*:1002:69:PPP User:/home/ppp:/usr/local/bin/ppplogin

* /usr/local/bin/ppplogin -
  #! /bin/sh
  exec /usr/sbin/ppp -dedicated direct-server

* /etc/ppp/ppp.conf -
  direct-server:
   set timeout 0
   set lqrperiod 10
   set log Phase LQM
   set ifaddr 10.0.11.80 10.0.11.81 
   enable lqr
   accept lqr

On the client host:

* /etc/ppp/ppp.conf -
  direct-client:
   set dial ""
   set line /dev/cuaa1
   set sp 115200
   set timeout 900
   set lqrperiod 10
   set log Phase Chat LQM
   set login "ABORT NO\\sCARRIER TIMEOUT 5 ogin:--ogin: ppp word: mypasswd HELLO"
   set ifaddr 10.0.11.81 10.0.11.80
   enable lqr
   accept lqr


Example (invoked as root):

client# ppp direct-client
Working in interactive mode
Using interface: tun0
Warning: No default entry found in config file.
ppp ON client> term
deflink: Entering terminal mode on /dev/cuaa1
Type `~?' for help

FreeBSD/i386 (server) (ttyd1)

login: ppp
Password:
Last login: Tue Apr 20 14:43:14 on ttyd1
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.  All rights reserved.

FreeBSD 3.0-RELEASE (MYKERNEL) #0: Mon Mar 15 13:12:04 EST 1999

Working in dedicated mode
You may not use ppp in this mode with this label

FreeBSD/i386 (server) (ttyd1)

login: 


Log data from client:

Apr 20 14:46:23 client ppp[24626]: Phase: Using interface: tun0
Apr 20 14:46:23 client ppp[24626]: Phase: deflink: Created in closed state
Apr 20 14:46:23 client ppp[24627]: Phase: PPP Started (dedicated mode).
Apr 20 14:46:24 client ppp[24627]: Phase: bundle: Establish
Apr 20 14:46:24 client ppp[24627]: Phase: deflink: closed -> opening
Apr 20 14:46:24 client ppp[24627]: Phase: deflink: Connected!
Apr 20 14:46:24 client ppp[24627]: Phase: deflink: opening -> lcp
Apr 20 14:46:40 client ppp[24627]: Phase: deflink: Disconnected!




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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.ETEX.4.02.9904201434300.17112-100000>