From owner-ssh@clinet.fi  Wed May 30 17:00:21 2001
Received: from smtp1.clinet.fi (smtp1.clinet.fi [194.100.2.57])
	by hutcs.cs.hut.fi (8.9.3/8.9.3) with ESMTP id RAA11300
	for <ssh-archiver@cs.hut.fi>; Wed, 30 May 2001 17:00:21 +0300 (EET DST)
Received: from mail.clinet.fi (mail.clinet.fi [194.100.0.7])
	by smtp1.clinet.fi (Postfix) with ESMTP
	id 3FB5121139; Wed, 30 May 2001 17:00:21 +0300 (EEST)
Received: (from majordom@localhost)
	by mail.clinet.fi (8.9.3/8.9.3) id QAA23322
	for ssh-outgoing; Wed, 30 May 2001 16:38:34 +0300
Received: from mail.pillory.com (JACK0023.customer.jump.net [216.30.103.11] (may be forged))
	by mail.clinet.fi (8.9.3/8.9.3) with SMTP id QAA23318
	for <ssh@clinet.fi>; Wed, 30 May 2001 16:38:32 +0300
Received: (qmail 24401 invoked by uid 1000); 30 May 2001 13:41:16 -0000
From: "Jack McKinney" <jackmc-openssh@lorentz.com>
Date: Wed, 30 May 2001 08:41:15 -0500
To: ssh@clinet.fi
Subject: ssh -g with -L and -R
Message-ID: <20010530084115.A24275@stocks.pillory.com>
Mail-Followup-To: ssh@clinet.fi
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="ZPt4rx8FFjLCG7dd"
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
Sender: owner-ssh@clinet.fi
Precedence: bulk


--ZPt4rx8FFjLCG7dd
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

     Scenario:

         A------B-----<Internet>-----C-----D

     If I am on B and execute:

ssh C -g -L 6000:D:6000

     Then I can connect to B:6000 from A and reach D:6000

     However, If I am on C and execute:

ssh B -g -R 6000:D:6000

     I should be able to do the same thing: connect to B:6000 from A
and reach D:6000.  However, I cannot.  If I look at netstat -ant on B,
I see:

tcp        0      0 127.0.0.1:6000          0.0.0.0:*               LISTEN =
    =20

     The '-g' flag is getting ignore for '-R', but it works for '-L'.
Am I doing something wrong?

--
JFByers: You're talking about a premeditated crime      Jack McKinney
         against the United States government.          jackmc@lorentz.com
Frohike: Hey, your second one today.  Welcome to the Dark Side.
1024D/D68F2C07 4096g/38AEF076        http://www.lorentz.com

--ZPt4rx8FFjLCG7dd
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjsU+HsACgkQimeon9aPLAdGegCeJsbjVI2jJMCBt4qPWcnCL8aA
I4gAoKKA/nKhGau5QHheUX5cOVJ/YTsz
=m679
-----END PGP SIGNATURE-----

--ZPt4rx8FFjLCG7dd--
