From owner-freebsd-questions Tue Jul 9 8:15:32 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 88F6937B400 for ; Tue, 9 Jul 2002 08:15:29 -0700 (PDT) Received: from dire.bris.ac.uk (dire.bris.ac.uk [137.222.10.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id C3F5943E3B for ; Tue, 9 Jul 2002 08:15:28 -0700 (PDT) (envelope-from Jan.Grant@bristol.ac.uk) Received: from mail.ilrt.bris.ac.uk by dire.bris.ac.uk with SMTP-PRIV with ESMTP; Tue, 9 Jul 2002 16:15:21 +0100 Received: from cmjg (helo=localhost) by mail.ilrt.bris.ac.uk with local-esmtp (Exim 3.16 #1) id 17Rwhu-0001OM-00; Tue, 09 Jul 2002 16:15:14 +0100 Date: Tue, 9 Jul 2002 16:15:14 +0100 (BST) From: Jan Grant X-X-Sender: cmjg@mail.ilrt.bris.ac.uk To: Michael Sharp Cc: freebsd-questions@FreeBSD.ORG Subject: Re: SSH port forwarding In-Reply-To: <20020709022932.3022ac73.freebsd@ec.rr.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, 9 Jul 2002, Michael Sharp wrote: > Ok, I'm sure this thread is gonna elicit alot of humor, but I had to ask. I know how SSH port forwarding works normally using: > > ssh -C -L source-port:remote server:destination-port user@remote.server > > This makes remote server send a encrypted tunnel from destination-port to my local source-port... > > My questions is this, if I did: > > ssh -C -L 12345:freebsd.org:80 me@127.0.0.1 > > and logged in, would the traffic between and from http://127.0.0.1:12345 > be encrypted? Heh, yes, but that's not what you want. Between http://127.0.0.1:12345 and the browser running on your machine, yes. Between your machine and freebsd.org:80, no. There are reasonable pictures that demonstrate what's going on. -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 RFC822 jan.grant@bris.ac.uk "My army boots contain everything not in them." - Russell's pair o' Docs. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message