From owner-freebsd-questions Sat Nov 29 04:41:13 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id EAA00448 for questions-outgoing; Sat, 29 Nov 1997 04:41:13 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from awfulhak.demon.co.uk (awfulhak.demon.co.uk [158.152.17.1]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id EAA00442 for ; Sat, 29 Nov 1997 04:41:04 -0800 (PST) (envelope-from brian@awfulhak.org) Received: from gate.lan.awfulhak.org (localhost [127.0.0.1]) by awfulhak.demon.co.uk (8.8.7/8.8.7) with ESMTP id LAA23794; Sat, 29 Nov 1997 11:20:23 GMT (envelope-from brian@gate.lan.awfulhak.org) Message-Id: <199711291120.LAA23794@awfulhak.demon.co.uk> X-Mailer: exmh version 2.0zeta 7/24/97 To: Tim Moony cc: Brian Somers , questions@freebsd.org Subject: Re: User PPP setup woe... (fwd) In-reply-to: Your message of "Wed, 26 Nov 1997 22:31:44 PST." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 29 Nov 1997 11:20:22 +0000 From: Brian Somers Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk [.....] > ppp-shell > ---------------------------------------------- > #!/bin/sh > IDENT=`echo $0 | sed -e 's/^.*-\(.*\)$/\1/'` > CALLEDAS="$IDENT" > TTY=`tty` > > if [ x$IDENT = xdialup ]; then > IDENT=`basename $TTY` > fi > > echo "PPP for $CALLEDAS on $TTY" > echo "Starting PPP for $IDENT" > > exec /usr/sbin/ppp -direct $IDENT > ========================================== So this script will execute ``ppp -direct shell''. You'll need an entry in ppp.conf called `shell'. > When I login as the user, I got a line in /var/log/messages: > > Nov 26 22:23:58 uniqsite ppp[13756]: Warning: open_tun: No such file or > directory. > > I am not sure what I did wrong. BTW, I am using ppp-971125 from ~brian > directory. Sounds like you have no /dev/tun? entries. Go into /dev and type # sh ./MAKEDEV tun5 The number above depends on how many concurrent users you want - you'll have to make sure your kernel is built with at least that number of tun pseudo-devices too. -- Brian , , Don't _EVER_ lose your sense of humour....