Date: Sat, 18 Sep 1999 21:31:29 -0700 From: Brian Zhou <brian_zhou@mailandnews.com> To: questions@FreeBSD.org Subject: ppp waiting for incoming connection over ssh tty Message-ID: <000901bf0257$d8eec440$0200a8c0@hplzhoutp>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000901bf0257$d8eec440$0200a8c0>