From owner-freebsd-questions Sat Sep 18 21:31:23 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mta1.snfc21.pbi.net (mta1.snfc21.pbi.net [206.13.28.122]) by hub.freebsd.org (Postfix) with ESMTP id 442D015038 for ; Sat, 18 Sep 1999 21:31:22 -0700 (PDT) (envelope-from brian_zhou@mailandnews.com) Received: from hplzhoutp (adsl-216-103-210-15.dsl.snfc21.pacbell.net) by mta1.snfc21.pbi.net (Sun Internet Mail Server sims.3.5.1999.05.24.18.28.p7) with SMTP id <0FIA009BPHW710@mta1.snfc21.pbi.net> for questions@FreeBSD.org; Sat, 18 Sep 1999 21:31:20 -0700 (PDT) Date: Sat, 18 Sep 1999 21:31:29 -0700 From: Brian Zhou Subject: ppp waiting for incoming connection over ssh tty To: questions@FreeBSD.org Message-id: <000901bf0257$d8eec440$0200a8c0@hplzhoutp> MIME-version: 1.0 X-Mailer: Microsoft Outlook Express 5.00.2615.200 Content-type: text/plain; charset="Windows-1252" Content-transfer-encoding: 7bit X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 X-Priority: 3 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG With Linux on both ends, I can start the following script to establish ppp connection over ssh, how can I use FreeBSD PPP on the _server_ side to do the same thing? #!/bin/sh ttyname=`/usr/local/bin/pty-redir /usr/local/bin/ssh -t remotehost \ sudo /usr/sbin/pppd 115200 passive nocrtscts \ asyncmap FFFFFFFF lcp-echo-failure 6 lcp-echo-interval 5 debug kdebug 0` sleep 4s sudo /usr/sbin/pppd $ttyname \ 115200 10.0.0.1:10.0.0.2 nocrtscts \ asyncmap FFFFFFFF lcp-echo-failure 3 lcp-echo-interval 5 debug kdebug 0 # end of script I tried "ppp -direct" with no success, following are the log file: Sep 18 19:47:01 myhost ppp[319]: Phase: Using interface: tun0 Sep 18 19:47:01 myhost ppp[319]: Phase: deflink: Created in closed state Sep 18 19:47:01 myhost ppp[319]: Phase: PPP Started (direct mode). Sep 18 19:47:01 myhost ppp[319]: Phase: bundle: Establish Sep 18 19:47:01 myhost ppp[319]: Phase: deflink: closed -> opening Sep 18 19:47:01 myhost ppp[319]: Phase: deflink: Connected! Sep 18 19:47:01 myhost ppp[319]: Phase: deflink: opening -> lcp Sep 18 19:47:17 myhost ppp[319]: Phase: deflink: Disconnected! Sep 18 19:47:17 myhost ppp[319]: Phase: deflink: Connect time: 16 secs: 1 octets in, 260 octets out Sep 18 19:47:17 myhost ppp[319]: Phase: total 16 bytes/sec, peak 21 bytes/sec on Sat Sep 18 19:47:17 1999 Sep 18 19:47:17 myhost ppp[321]: Phase: 319 -> 321: Dropped session control Sep 18 19:47:17 myhost ppp[321]: Phase: deflink: lcp -> closed Sep 18 19:47:17 myhost ppp[321]: Phase: bundle: Dead Sep 18 19:47:17 myhost ppp[321]: Phase: PPP Terminated (normal). What do I need to config in /etc/ppp/*? Because ssh already did the authentication, I want both ends to start talking PPP right away. I know probably I can make the whole thing work by redirecting ssh to myhost:some_port with ppp getty, but I think the current way is quite simple. Appreciate any help. -Brian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message