Article View: alt.privacy.anon-server
Article #278533Re: Socat for Window Help
From: Jack
Date: Tue, 22 Dec 2015 00:47
Date: Tue, 22 Dec 2015 00:47
99 lines
5342 bytes
5342 bytes
On 12/20/2015 6:39 PM, Anonymous Remailer (austria) wrote: > Jack: >> I have downloaded the socat.exe file for windows which includes >> cygwin1.dll and other files in the same directory of socat. How do I get >> socat configured to open up a socks port that will allow >> ruxuklsvo4pk74m5.onion:119 to work with stunnel to encrypt the >> connection after it is accepted by stunnel? >> > > This should prove edifying: > > https://nymphemeral.readthedocs.org/en/latest/install/connections.html > Here is my Shortcut command: "C:\Program Files (x86)\Socat\socat-windows-master\socat.exe" tcp4-LISTEN:9876,reuseaddr,fork,keepalive,bind=127.0.0.1 SOCKS4A:127.0.0.1:ruxuklsvo4pk74m5.onion:563,socksport=9050 I think I have socat running under Windows, but would appreciate feedback on my questions below. My Stunnel Configuration: [nntps] client = yes accept = 127.0.0.1:119 connect = 127.0.0.1:9876 cert = stunnel.pem Here's my stunnel output when Tor is NOT selected inside of AAM: 2015.12.21 11:37:30 LOG5[27]: Service [nntps] accepted connection from 127.0.0.1:65485 2015.12.21 11:37:30 LOG6[27]: failover: round-robin, starting at entry #1 2015.12.21 11:37:30 LOG6[27]: s_connect: connecting 144.76.182.167:563 2015.12.21 11:37:30 LOG5[27]: s_connect: connected 144.76.182.167:563 2015.12.21 11:37:30 LOG5[27]: Service [nntps] connected remote server from 10.1.1.175:65486 2015.12.21 11:37:30 LOG6[27]: SNI: sending servername: 127.0.0.1 2015.12.21 11:37:30 LOG6[27]: Certificate verification disabled 2015.12.21 11:37:30 LOG6[27]: Certificate verification disabled 2015.12.21 11:37:30 LOG6[27]: SSL connected: new session negotiated 2015.12.21 11:37:30 LOG6[27]: Negotiated TLSv1.2 ciphersuite ECDHE-RSA-AES256-GCM-SHA384 (256-bit encryption) 2015.12.21 11:39:03 LOG6[27]: SSL closed (SSL_read) 2015.12.21 11:39:03 LOG6[27]: Read socket closed (readsocket) 2015.12.21 11:39:03 LOG6[27]: SSL_shutdown successfully sent close_notify alert 2015.12.21 11:39:03 LOG5[27]: Connection closed: 1679 byte(s) sent to SSL, 718263 byte(s) sent to socket My AAM setup is: nntp server = 127.0.0.1 Port = 119 Proxy = None Tor is running in the background. I believe socat is running in the background because when I do a netstat -an I see: TCP 127.0.0.1:9876 0.0.0.0:0 LISTENING When I turn on the Proxy in AAM using a Port of 9050 and Socks 4a, AAM gives me an immediate error message. Should the Proxy option be selected within AAM or should I leave it deselected as socat is handling this functionality? It does appear that fleegle.mixmin.net is being connected as 144.76.182.167:563 is its address and 563 is the TLS port. Finally, how can I be assured that I am going through the Tor network as I don't see a connection to port 9050, but I do see 127.0.0.1 Established on ports 9150 and 9151. TCP 127.0.0.1:9150 0.0.0.0:0 LISTENING TCP 127.0.0.1:9150 127.0.0.1:49559 TIME_WAIT TCP 127.0.0.1:9150 127.0.0.1:65356 ESTABLISHED TCP 127.0.0.1:9151 0.0.0.0:0 LISTENING TCP 127.0.0.1:9151 127.0.0.1:65241 ESTABLISHED TCP 127.0.0.1:9151 127.0.0.1:65251 ESTABLISHED TCP 127.0.0.1:9151 127.0.0.1:65255 ESTABLISHED TCP 127.0.0.1:9876 0.0.0.0:0 LISTENING I get this error message in socat when a connection is attempted. 1 [main] socat 13512 find_fast_cwd: WARNING: Couldn't compute FAST_CWD pointer. Please report this problem to the public mailing list cygwin@cygwin.com 2015/12/21 15:49:36 socat[14712] E connect(3, AF=2 127.0.0.1:9050, 16): Connection refused It appears that I cannot connect to port 9050. I have changed the port to 9150 and 9151 and these two settings do not return any error messages. Is there a setting in Tor that needs to be changed in order for port 9050 to work?
Technical Details
Message-ID:
<I_udnXCLpokXAOXLnZ2dnUU7-dudnZ2d@giganews.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!news.usenet.farm!..!..!not-for-mailReferences:
<oc6dnass3P1J1OrLnZ2dnUU7-KmdnZ2d@giganews.com> <n57ooa$hfa$1@news.mixmin.net>Show Full Headers
Complete Article Headers
Message-ID: <I_udnXCLpokXAOXLnZ2dnUU7-dudnZ2d@giganews.com> Subject: Re: Socat for Window Help Date: Mon, 21 Dec 2015 16:47:08 -0800 From: Jack <jack@nowhere.com> References: <oc6dnass3P1J1OrLnZ2dnUU7-KmdnZ2d@giganews.com> <n57ooa$hfa$1@news.mixmin.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!news.usenet.farm!..!..!not-for-mail NNTP-Posting-Date: Mon, 21 Dec 2015 18:47:06 -0600 Newsgroups: alt.privacy.anon-server User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <n57ooa$hfa$1@news.mixmin.net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Lines: 100 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-M1yhK/n+mqLPC0b/3/3Kci0Q72Yuy4oZTa+FFGS2H8NcV8dPn6xMZP514MCwlYZXft443OHmm2wujgj!mpQBez3oR/CA8x30vQxP/l13OhUhNqvxaUzh0n1zdlWbCl+R+AIjOjDH+tkW6JAGrxG6w58= X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 5157