From owner-freebsd-net@FreeBSD.ORG Tue May 24 01:13:53 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 94AD416A41C for ; Tue, 24 May 2005 01:13:53 +0000 (GMT) (envelope-from timp@crossthread.com) Received: from hercules.crossthread.com (hercules.crossthread.com [64.56.149.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4642D43D1F for ; Tue, 24 May 2005 01:13:53 +0000 (GMT) (envelope-from timp@crossthread.com) Received: from [192.168.1.6] (medusa.crossthread.com [192.168.1.6]) (authenticated) by hercules.crossthread.com (8.11.3/8.11.3) with ESMTP id j4O1P1A01751; Mon, 23 May 2005 19:25:01 -0600 (MDT) Message-ID: <4291D817.40407@crossthread.com> Date: Mon, 23 May 2005 07:18:15 -0600 From: Tim Pushor User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Rob Zietlow References: <200505231957.23014.Rob@the-rob.com> In-Reply-To: <200505231957.23014.Rob@the-rob.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org 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 01:13:53 -0000 You don't need the pty. I don't recommend vpn over ssh, unless its absolutely necessary. OpenVPN is much better ... I've set it up (as it was absolutely necessary :-), and here is a config from the 'client'. default: set timeout 0 set log phase chat connect lcp ipcp set dial set login cli: set device "!ssh -l cli -i /etc/ppp/ppp.key server.domain.com /usr/sbin/ppp -direct srv" set ifaddr 10.0.4.4 10.0.4.3 255.255.255.255 add! 192.168.x.0/24 HISADDR set lqrperiod 60 enable lqr 'client' is enabled by running ppp -ddial cli from rc script. Then the 'Server' - of course, 'cli' needs a user account on the system, and all the ssh stuff setup (authorized keys, etc). default: set log Phase Chat LCP IPCP CCP tun command srv: allow user cli set ifaddr 10.0.4.3 10.0.4.4 255.255.255.255 set timeout 0 add! 192.168.y.0/24 HISADDR set lqrperiod 60 enable lqr accept lqr 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. > >Thanks for your time. > >Rob >_______________________________________________ >freebsd-net@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-net >To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > >