Date: Sat, 29 Nov 1997 11:20:22 +0000 From: Brian Somers <brian@awfulhak.org> To: Tim Moony <timm@uniqsite.com> Cc: Brian Somers <brian@awfulhak.org>, questions@freebsd.org Subject: Re: User PPP setup woe... (fwd) Message-ID: <199711291120.LAA23794@awfulhak.demon.co.uk> In-Reply-To: Your message of "Wed, 26 Nov 1997 22:31:44 PST." <Pine.BSF.3.96.971126221041.13655A-100000@uniqsite.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[.....] > 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 <brian@Awfulhak.org>, <brian@FreeBSD.org>, <brian@OpenBSD.org> <http://www.Awfulhak.org> Don't _EVER_ lose your sense of humour....
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199711291120.LAA23794>