[stunnel-users] Issue with stunnel over squid

Mike McPhee mjmcphee at gmail.com
Tue Aug 30 23:02:25 CEST 2016


I have a windows machine running as a stunnel client that establishes a
session but then, when launching an SSH session to my loopback crashes.
Putty reports that the "Server unexpectedly closed the network connection."
Here are the logs:

2016.08.30 16:06:08 LOG5[main]: Reading configuration from file stunnel.conf
2016.08.30 16:06:08 LOG5[main]: UTF-8 byte order mark detected
2016.08.30 16:06:08 LOG5[main]: FIPS mode disabled
2016.08.30 16:06:08 LOG4[main]: Service [squid] needs authentication to
prevent MITM attacks
2016.08.30 16:06:08 LOG5[main]: Configuration successful
2016.08.30 16:06:17 LOG5[2]: Service [squid] accepted connection from
2016.08.30 16:06:17 LOG5[2]: s_connect: connected
2016.08.30 16:06:17 LOG5[2]: Service [squid] connected remote server from
2016.08.30 16:06:17 LOG5[2]: Connection closed: 28 byte(s) sent to SSL, 0
byte(s) sent to socket

Here is the server-side stunnel.conf:
sslVersion = all
options = NO_SSLv2
client = no
cert = /etc/stunnel/server.pem
pid = /var/run/stunnel.pid
output = /var/log/stunnel
accept = 8888
connect =
cert = /etc/stunnel/stunnel.pem
client = no
accept = 993
connect = 34567

Here is the client side (Windows 7):

cert = stunnel.pem
client = yes
accept =
connect =

I seem to be negotiating all of the appropriate keys, openvpn and squid3
are verified running, and have iptables configured, so I am not sure what I
am missing.  Can anyone assist?

Thanks in advance!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.stunnel.org/pipermail/stunnel-users/attachments/20160830/ffc005da/attachment.html>

More information about the stunnel-users mailing list