From owner-freebsd-questions Sat Oct 9 0:30:26 1999 Delivered-To: freebsd-questions@freebsd.org Received: from awfulhak.org (dynamic-93.max1-du-ws.dialnetwork.pavilion.co.uk [212.74.8.93]) by hub.freebsd.org (Postfix) with ESMTP id 191F8153DC for ; Sat, 9 Oct 1999 00:30:10 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [172.16.0.12]) by awfulhak.org (8.9.3/8.9.3) with ESMTP id IAA00317; Sat, 9 Oct 1999 08:30:05 +0100 (BST) (envelope-from brian@lan.awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost.lan.Awfulhak.org [127.0.0.1]) by hak.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id CAA03055; Sat, 9 Oct 1999 02:33:28 +0100 (BST) (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <199910090133.CAA03055@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.0.2 2/24/98 To: agifford@infowest.com Cc: questions@FreeBSD.ORG Subject: Re: ppp across ssh (vpn) In-reply-to: Your message of "Wed, 06 Oct 1999 23:23:49 MDT." <19991007052349.57D6D20FB8@infowest.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Date: Sat, 09 Oct 1999 02:33:28 +0100 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Hello, > = > = > I was playing around trying to establish a VPN connection by > using userland ppp across SSH. I believe I have everything > set up the way the ppp.conf.sample and man page described. > It almost works. I can watch the log files on both sides > of the tunnel. The client works as expected. However, on > the server side, I keep getting "tun0: Phase: Exception detected > on descriptor 0" and looking at the PPP code, it would seem > that ssh is for some reason sending out-of-band data (since > the select() man page explains that the only reason for an > exception on a file descriptor is for OOB data). When ppp is using a program as a link, and exception generally means = that the program has exited. > Looking at my ppp.startvpn.sh script: > = > #!/bin/sh > exec ssh -a -c blowfish -e none -l sshvpnuser -q -x vpn.server.host /= usr/sbin/ppp -direct vpnserver > = > When I add a "-t" to force ssh to allocate a pty and run the > script by hand from the command line, sure enough, I see: > = > # ./ppp.startvpn.sh > ~=FF}#=C0!}!}!} $}(}"}'}"}"}&} } } } }!}$}%=DC}%}&&=E1=9B=DF}$}(=C0%} = } > > = > BUT when I do NOT allocate a pty OR I run the script via PPP > on my client machine, nothing happens and I see the exception > previously mentioned on the server side. > = > I am assuming that there is some terminal-related traffic, > perhaps, that SSH is doing with OOB data that's causing the > exception, but is maybe handled when there's a pty allocated? > Please, I'm grasping at straws here, playing with stuff I know > nothing about. > = > Any ideas? Suggestions? Upgrade to the latest ppp (http://www.Awfulhak.org/ppp.html). Old = versions abend when they see descriptor exceptions. > Thanks! > = > Aaron out. -- = Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message