Package: stunnel4
Version: 3:4.35-2
Severity: important

Stunnel isn't working for me in inetd mode.

I'm using this line as a test in /etc/inetd.conf:
1122    stream  tcp nowait  cyrus.mail  /usr/sbin/tcpd  /usr/bin/stunnel -p 
/etc/ssl/private/ssl-cert-snakeoil.pem -l /bin/cat -- cat

And this to connect:
openssl s_client -connect localhost:1122

This shows up in /var/log/daemon:
May 15 15:23:49 death stunnel: LOG5[29319:140456217454336]: Reading 
configuration from descriptor 3
May 15 15:23:49 death stunnel: LOG5[29319:140456217454336]: Configuration 
successful
May 15 15:23:49 death stunnel: LOG5[29319:140456217454336]: No limit detected 
for the number of clients
May 15 15:23:49 death stunnel: LOG5[29319:140456217454336]: stunnel 4.35 on 
x86_64-pc-linux-gnu with OpenSSL 1.0.0d 8 Feb 2011
May 15 15:23:49 death stunnel: LOG5[29319:140456217454336]: Threading:PTHREAD 
SSL:ENGINE Sockets:POLL,IPv6 Auth:LIBWRAP
May 15 15:23:49 death stunnel: LOG5[29319:140456217454336]: Service stunnel 
accepted connection from 127.0.0.1:40642
May 15 15:23:49 death stunnel: LOG3[29319:140456217454336]: connect: Operation 
now in progress (115)
May 15 15:23:49 death stunnel: LOG5[29319:140456217454336]: Connection reset: 0 
bytes sent to SSL, 0 bytes sent to socket

The line "connect: Operation now in progress (115)" appears to come from
src/client.c:963 in function make_sockets(). It looks like connect() is
returning EINPROGRESS which doesn't really seem like an error to me, but I just
gave a cursory glance at the code so I don't really know what I'm talking about.

If I downgrade to 3:4.29-1 then everything works as I expect. I wasn't able to
find the versions between .29 and .35 so I don't know exactly which version
broke but I suspect it broke in the last couple months.

-David

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.38-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages stunnel4 depends on:
ii  adduser                       3.112+nmu2 add and remove users and groups
ii  libc6                         2.13-4     Embedded GNU C Library: Shared lib
ii  libssl1.0.0                   1.0.0d-2   SSL shared libraries
ii  libwrap0                      7.6.q-19   Wietse Venema's TCP wrappers libra
ii  netbase                       4.45       Basic TCP/IP networking system
ii  openssl                       1.0.0d-2   Secure Socket Layer (SSL) binary a
ii  perl-modules                  5.12.3-6   Core Perl modules

stunnel4 recommends no packages.

Versions of packages stunnel4 suggests:
pn  logcheck-database             <none>     (no description available)

-- Configuration Files:
/etc/ppp/ip-down.d/0stunnel4 [Errno 13] Permission denied: 
u'/etc/ppp/ip-down.d/0stunnel4'
/etc/ppp/ip-up.d/0stunnel4 [Errno 13] Permission denied: 
u'/etc/ppp/ip-up.d/0stunnel4'

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to