From owner-freebsd-questions Tue Apr 20 11:53:44 1999 Delivered-To: freebsd-questions@freebsd.org Received: from locust.etext.org (locust.etext.org [204.151.1.2]) by hub.freebsd.org (Postfix) with ESMTP id A77C61509F for ; Tue, 20 Apr 1999 11:53:34 -0700 (PDT) (envelope-from pauls@etext.org) Received: from localhost (pauls@localhost) by locust.etext.org (8.9.3/8.9.3) with SMTP id OAA17375 for ; Tue, 20 Apr 1999 14:51:03 -0400 (EDT) Date: Tue, 20 Apr 1999 14:50:57 -0400 (EDT) From: Paul Southworth To: freebsd-questions@freebsd.org Subject: Bad null-modem user-ppp (wrong mode/label?) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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