From owner-freebsd-questions Tue Jun 22 3:42:25 1999 Delivered-To: freebsd-questions@freebsd.org Received: from storm.FreeBSD.org.uk (storm.freebsd.org.uk [194.242.128.198]) by hub.freebsd.org (Postfix) with ESMTP id 7FBCB153A3 for ; Tue, 22 Jun 1999 03:42:12 -0700 (PDT) (envelope-from brian@keep.lan.Awfulhak.org) Received: from keep.lan.Awfulhak.org (keep.lan.Awfulhak.org [172.16.0.8]) by storm.FreeBSD.org.uk (8.9.3/8.9.3) with ESMTP id LAA10382; Tue, 22 Jun 1999 11:42:07 +0100 (BST) (envelope-from brian@keep.lan.Awfulhak.org) Received: from keep.lan.Awfulhak.org (localhost [127.0.0.1]) by keep.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id IAA01127; Tue, 22 Jun 1999 08:31:31 +0100 (BST) (envelope-from brian@keep.lan.Awfulhak.org) Message-Id: <199906220731.IAA01127@keep.lan.Awfulhak.org> X-Mailer: exmh version 2.0.2 2/24/98 To: "Brian Zhou" Cc: "Brian Somers" , freebsd-questions@freebsd.org Subject: Re: ssh connection => network connection In-reply-to: Your message of "Mon, 21 Jun 1999 09:52:35 PDT." <004f01bebc06$76c76fc0$ce89090f@hpl.hp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 22 Jun 1999 08:31:31 +0100 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > > If thru a firewall I can remote login from inside-host to outside-host > via > > > socksified ssh, can I somehow turn that connection into a network > > > connection? My goal is to be able to ping outside-host from inside-host. > > > How? The inside-host is FreeBSD/Linux and outside-host is HP-UX. > > > > > > Options such as using socksified application are not feasible since the > > > firewall only allow ssh traffic to a particular outside-host. > > > > If you've got access to an outside machine you can use ppp(8) to > > tunnel through the firewall using something like > > > > set device "!ssh myexternalmachine /usr/sbin/ppp -direct in" > > > > Will that work if each time I need to type a different password for ssh > (securID)? Or do you know a way around? If you run ppp in the background (with -auto or -ddial) with DISPLAY set, ssh will pop up a dialogue (ssh-add style) on your display. > I dual boot FreeBSD/Linux, I couldn't figure out an easy way in Linux to > pty-redir the tty if I have to type in password first, unless I write an > expect chat script. I guess this is quite common practice in establishing > PPP connection. If you need to do it at the chat stage (for login/password w/ securID cards), you can specify your chap password as ``!program'' or specify your chat script password as ``!program''. If ``program'' is x-aware it can look quite pretty. See the tcl examples in /usr/share/examples/ppp. > Thanks, > > -Brian Zhou -- 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