X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.9 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
Message-ID: <4FED0028.7070006@biostat.ucsf.edu>
Date: Thu, 28 Jun 2012 18:08:56 -0700
From: Ross Boylan <ross@biostat.ucsf.edu>
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:13.0) Gecko/20120614 Thunderbird/13.0.1
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: cygwin port forwarding [working]
References: <1340468946.24539.26.camel@corn.betterworld.us>
In-Reply-To: <1340468946.24539.26.camel@corn.betterworld.us>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

I have some updates and successes.

First, I do see the forwarded ports with netstat -aon in a windows 
command prompt:
   TCP    [::1]:2525             [::]:0 LISTENING       388
   TCP    [::1]:9933             [::]:0 LISTENING       388
I may have missed them because I didn't look at the ::1 addresses or 
because the destination host and port is oddly blank.

 From within a cygwin terminal I did
  openssl s_client -connect localhost:9933
which showed me the certificate of the mail server I was trying to reach.

Finally, when I switched thunderbird to use localhost at port 9933 (with 
connection security set to SSL/TLS) it did make contact.  As René 
indicated, T-bird complained about the certificate (which has also 
expired).  Then I ran into what seems like a T-bird bug: every time I 
hit "accept certificate" it brought the same dialogue asking for 
confirmation up.  Eventually I closed it by hitting the red x on the 
window (though it took a couple of tries).  It seems to be working.  
Even if it's not, it seems clear the port forwarding is working.

I'm not sure why it didn't work the first time.

Thanks to René, Andrey, and Karl for their help.

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

