Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 18363 - stunnel 3.22-r2 is unable to create a tunnel, 3.22-r1 works
Summary: stunnel 3.22-r2 is unable to create a tunnel, 3.22-r1 works
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Daniel Ahlberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-28 06:59 UTC by Philipp Schulte
Modified: 2003-10-28 06:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Schulte 2003-03-28 06:59:44 UTC
I am using stunnel to create an encrypted tunnel from localhost:110 to
mailserver:995. I used to pop my mails through this tunnel but with the new
version 3.22-r2 it no longer works altough I didn't change any part of the
configuration besides installing 3.22-r2 over 3.22-r1.

The error message on localhost is:
stunnel[11923]: Unable to get access to the SSL private key.
stunnel[11923]: SSL_get_privatekey: Peer suddenly disconnected

The error message on the mailserver is:
stunnel[14537]: SSL_accept: Peer suddenly disconnected

The mailserver runs stunnel 3.22-1 (Debian package). Absolutely nothing as
changed on the mailserver side in the last months. 
I emerged stunnel-3.22-r1 and everything works fine like it used to.

Reproducible: Always
Steps to Reproduce:
1. /usr/sbin/stunnel -c -s $USER -d 127.0.0.1:110 -r $MAILSERVER:995
2. telnet localhost 110

Actual Results:  
stunnel closes the connection

Expected Results:  
set up the tunnel and let me pop my mails through it

Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4)
=================================================================
System uname: 2.4.20 i686 AMD Athlon(tm) XP 1600+
GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo/ "
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config
/usr/X11R6/lib/X11/xkb:/usr/kde/3.1/share/config:/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/usr/portage/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss 3dnow apm avi crypt cups gif jpeg libg++ mmx mpeg ncurses nls
pdflib png quicktime spell truetype xmms xv zlib gdbm slang readline svga guile
X sdl gpm tcpd pam libwww ssl python imlib oggvorbis gnome opengl aalib acpi
-arts -berkdb cdr dga directfb -encode esd ethereal fbcon -gtk gtk2 gtkhtml ipv6
-java -kde maildir matrox -mikmod -motif mozilla mule perl -qt tetex -xml2"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -Os -pipe -fomit-frame-pointer"
CXXFLAGS="-march=athlon-xp -Os -pipe -fomit-frame-pointer"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 1 Daniel Ahlberg (RETIRED) gentoo-dev 2003-06-13 07:29:46 UTC
Is this still a problem?
Comment 2 Philipp Schulte 2003-06-13 07:48:52 UTC
No, surprisingly it's not but I don't understand why. Since I reported
the bug I didn't try the stunnel-3.22-r2 anymore but when I had it
installed back then I could always reproduce the error. I just emerged
it to test again and it works fine. Strange...
Comment 3 Philipp Schulte 2003-06-14 06:59:45 UTC
Sorry, the problem is still existent. I forgot to close down the tunnel that was established with stunnel-3.22-r1, so obviously -r2 couldn't establish a new one.
Comment 4 Daniel Ahlberg (RETIRED) gentoo-dev 2003-10-28 06:55:18 UTC
Latest stable should be 4.04, is this still a problem on this new version?
 I've also updated the openssl dependency to fix any blinding issues. 

Re-open this bug if there still is a problem.