From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11289 invoked by alias); 24 Jun 2012 18:33:55 -0000 Received: (qmail 11268 invoked by uid 22791); 24 Jun 2012 18:33:54 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from upstrm185.psg-ucsf.org (HELO biostat.ucsf.edu) (38.99.193.74) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 24 Jun 2012 18:33:42 +0000 Received: from ns204-a-650ts.psg.net ([10.0.2.3]:26970 helo=corn.betterworld.us) by biostat.ucsf.edu with esmtpsa (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1Sirce-0001OZ-Kk; Sun, 24 Jun 2012 11:33:20 -0700 Received: from localhost ([127.0.0.1] ident=ross) by corn.betterworld.us with esmtp (Exim 4.69) (envelope-from ) id 1SircY-0004cX-Bv; Sun, 24 Jun 2012 11:33:19 -0700 Subject: Re: cygwin port forwarding From: Ross Boylan To: Andrey Repin Cc: ross@biostat.ucsf.edu In-Reply-To: <1486292945.20120624040757@mtu-net.ru> References: <1340468946.24539.26.camel@corn.betterworld.us> <1486292945.20120624040757@mtu-net.ru> Content-Type: text/plain Date: Sun, 24 Jun 2012 18:33:00 -0000 Message-Id: <1340562793.24539.44.camel@corn.betterworld.us> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam_score: -4.4 X-Spam_score_int: -43 X-Spam_bar: ---- X-Spam_report: (-4.4 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.8 ALL_TRUSTED Passed through trusted hosts only via SMTP -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] 0.0 AWL AWL: From: address is in the auto white-list X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2012-06/txt/msg00436.txt.bz2 On Sun, 2012-06-24 at 04:07 +0400, Andrey Repin wrote: > Greetings, Ross Boylan! > > > Can non-cygwin applications "see" the ports ssh in cygwin sets up for > > forwarding? I did some tests on Windows 7 and found that, although the > > forwarding was clearly in effect for commands I ran in the cygwin shell, > > it did not seem to be accessible to the regular Windows version of > > Thunderbird. > > > The local port I forwarded was not privileged. I used no Windows admin > > privileges. > > netstat -aon > > Curious, what "tests" you did instead of getting the data straight from OS? > And what exactly you've tried to do? If you're looking for proxy through SSH > tunnel, you'd be better off with PuTTY -D 1080 and IE using SOCKS proxy. > I ran netstat, I think in a non-cygwin terminal, and didn't see the ports listed (though I remember doing netstat-an, which seems like Unix options not windows). For thunderbird, I pointed it at localhost and the forwarded port, and was unable to connect. One reason I asked is that I have only middling confidence I know what t-bird is actually doing. On the other hand, inside a cygwin terminal I was able to use openssl to connect via the same port on localhost. The target port is secure IMAP, 993. I'm using ssh in addition to SSL because the tunnel must be though ssh and the server is only serving SSL. The underlying motivation is that we suspect the links used by the regular connection are not reliable. Ross -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple