From owner-freebsd-net@FreeBSD.ORG Tue May 24 07:06:40 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1769916A469 for ; Tue, 24 May 2005 07:06:40 +0000 (GMT) (envelope-from nvass@teledome.gr) Received: from matrix.teledomenet.gr (dns1.teledomenet.gr [213.142.128.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4390D43D53 for ; Tue, 24 May 2005 07:06:37 +0000 (GMT) (envelope-from nvass@teledome.gr) Received: from [192.168.1.71] ([192.168.1.71]) by matrix.teledomenet.gr (8.12.10/8.12.10) with ESMTP id j4O72Znf002837; Tue, 24 May 2005 10:02:35 +0300 From: Nikos Vassiliadis To: freebsd-net@freebsd.org Date: Tue, 24 May 2005 10:05:36 +0300 User-Agent: KMail/1.6.2 References: <200505231957.23014.Rob@the-rob.com> In-Reply-To: <200505231957.23014.Rob@the-rob.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-7" Content-Transfer-Encoding: 7bit Message-Id: <200505241005.36462.nvass@teledome.gr> Cc: Rob Zietlow Subject: Re: pppd pty equivilent in FBSD X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 May 2005 07:06:40 -0000 On Tuesday 24 May 2005 03:57, Rob Zietlow wrote: >Good day List, > >I have a question about pppd. We use ppp over ssh for a VPN solution into >work. The script works on linux, but not in freebsd because the >implementation of pppd that comes with freebsd does not recognize the pty >command. When I attempt to connect up I get the following. > >testee# bash bin/vpn.init start >Waiting for connection... >Using interface ppp0 >/usr/sbin/pppd: In file /usr/home/rob/vpn/options.vpn: unrecognized option >'pty' >Connection Failed > >This appears to be the last piece of the puzzle for me in order to get this to >work. So it leaves me to ask Is there an equivalent in Freebsd? > >From the pppd man page on a linux machine. > > pty script > Specifies that the command script is to be used to communicate >rather than a specific terminal device. Pppd will allocate itself a >pseudo-tty master/slave pair and use the slave as its terminal device. The >script will be run in a child process with the pseudo-tty master as >its standard input and output. An explicit device name may not be >given if this option is used. (Note: if the record option is used in >conjuction with the pty option, the child process will have pipes on its >standard input and output.) > >The fbsd pppd's man page doesn't list anything for pty, and a google doesn't >turn up much. There is a newer pppd in the ports tree (/usr/ports/net/pppd23) which supports the pty option. HTH Nikos >Thanks for your time. > >Rob