X-Recipient: archive-cygwin AT delorie DOT com 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 Subject: Re: cygwin port forwarding From: Ross Boylan To: Andrey Repin Cc: ross AT biostat DOT ucsf DOT edu In-Reply-To: <1486292945.20120624040757@mtu-net.ru> References: <1340468946 DOT 24539 DOT 26 DOT camel AT corn DOT betterworld DOT us> <1486292945 DOT 20120624040757 AT mtu-net DOT ru> Content-Type: text/plain Date: Sun, 24 Jun 2012 11:33:13 -0700 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 AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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