🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #204333

Re: TLS and Stunnel server configuration

#204333
From: Anonymous
Date: Wed, 26 Apr 2006 00:43
102 lines
6315 bytes
In article <K80I7CFW38833.2107986111@reece.net.au>
Thrasher Remailer <thrasher@reece.net.au> wrote:
>Send us your config file

The following config will connect with AES256-SHA. If I
remove the Ciphers line altogether it connects with
AES256-SHA.

If I remove the AES256-SHA option from the ciphers line
(leaving DHE-RSA-AES256-SHA as the only cipher option)
the client side says that the server disconnected suddenly,
and the server side log file indicates that there is no shared
cipher. I have tried this with every Stunnel version from 4.10
to 4.15 and with several openssl versions including the most recent.

I can connect (using another stunnel instance running version 4.10
and obviously a different config file) to banana's SMTP service using
TLS.

Here is the server config

#stunnel server setup

CAfile=CAcert.pem
CApath=certificates
cert=server.pem
debug = 7
#verify = 3
output = log.txt
client = no
options = all
RNDbytes = 1024
RNDfile = bananarand.bin
RNDoverwrite = yes
Ciphers = DHE-RSA-AES256-SHA:AES256-SHA

#service level configuration
[vnc]
accept = 0.0.0.0:7443
connect = 127.0.0.1:5900
delay = no



Here is some logging info from banana SMTp to show that my stunnel is working:
I think I have removed all of the real IP addresses except banana's.
Note the "negotiated ciphers" on the second line.


2006.04.25 14:24:07 LOG6[1700:2008]: SSL connected: new session negotiated
2006.04.25 14:24:07 LOG6[1700:2008]: Negotiated ciphers: DHE-RSA-AES256-SHA SSLv3 Kx=DH Au=RSA  Enc=AES(256)  Mac=SHA1
2006.04.25 14:24:12 LOG7[1700:2008]: SSL socket closed on SSL_read
2006.04.25 14:24:12 LOG7[1700:2008]: Socket write shutdown
2006.04.25 14:24:12 LOG5[1700:2008]: Connection closed: 28994 bytes sent to SSL, 122 bytes sent to socket
2006.04.25 14:24:12 LOG7[1700:2008]: BANANA_TLS_SMTP finished (0 left)
2006.04.25 14:24:15 LOG7[1700:2460]: BANANA_TLS_SMTP accepted FD=184 from 127.0.0.1:4909
2006.04.25 14:24:15 LOG7[1700:2460]: Creating a new thread
2006.04.25 14:24:15 LOG7[1700:2460]: New thread created
2006.04.25 14:24:15 LOG7[1700:2172]: BANANA_TLS_SMTP started
2006.04.25 14:24:15 LOG7[1700:2172]: FD 184 in non-blocking mode
2006.04.25 14:24:15 LOG5[1700:2172]: BANANA_TLS_SMTP connected from 127.0.0.1:4909
2006.04.25 14:24:15 LOG7[1700:2172]: FD 200 in non-blocking mode
2006.04.25 14:24:15 LOG7[1700:2172]: BANANA_TLS_SMTP connecting 82.133.6.118:2525
2006.04.25 14:24:15 LOG7[1700:2172]: connect_wait: waiting 10 seconds
2006.04.25 14:24:16 LOG7[1700:2172]: connect_wait: connected
2006.04.25 14:24:16 LOG7[1700:2172]: Remote FD=200 initialized
2006.04.25 14:24:16 LOG5[1700:2172]: Negotiations for smtp (client side) started
2006.04.25 14:24:16 LOG7[1700:2172]:  <- 220 fleegle.bananasplit.info ESMTP Postfix (Debian/GNU).
2006.04.25 14:24:16 LOG7[1700:2172]:  -> 220 fleegle.bananasplit.info ESMTP Postfix (Debian/GNU).
2006.04.25 14:24:16 LOG7[1700:2172]:  -> EHLO localhost
2006.04.25 14:24:16 LOG7[1700:2172]:  <- 250-fleegle.bananasplit.info.
2006.04.25 14:24:16 LOG7[1700:2172]:  <- 250-PIPELINING.
2006.04.25 14:24:16 LOG7[1700:2172]:  <- 250-SIZE 10240000.
2006.04.25 14:24:16 LOG7[1700:2172]:  <- 250-ETRN.
2006.04.25 14:24:16 LOG7[1700:2172]:  <- 250-STARTTLS.
2006.04.25 14:24:16 LOG7[1700:2172]:  <- 250 8BITMIME.
2006.04.25 14:24:16 LOG7[1700:2172]:  -> STARTTLS
2006.04.25 14:24:16 LOG7[1700:2172]:  <- 220 Ready to start TLS.
2006.04.25 14:24:16 LOG5[1700:2172]: Protocol negotiation succeded
2006.04.25 14:24:16 LOG7[1700:2172]: SSL state (connect): before/connect initialization
2006.04.25 14:24:16 LOG7[1700:2172]: SSL state (connect): SSLv3 write client hello A
2006.04.25 14:24:16 LOG7[1700:2172]: SSL state (connect): SSLv3 read server hello A
2006.04.25 14:24:16 LOG7[1700:2172]: SSL state (connect): SSLv3 read finished A
2006.04.25 14:24:16 LOG7[1700:2172]: SSL state (connect): SSLv3 write change cipher spec A
2006.04.25 14:24:16 LOG7[1700:2172]: SSL state (connect): SSLv3 write finished A
2006.04.25 14:24:16 LOG7[1700:2172]: SSL state (connect): SSLv3 flush data
2006.04.25 14:24:16 LOG7[1700:2172]:    3 items in the session cache
2006.04.25 14:24:16 LOG7[1700:2172]:    5 client connects (SSL_connect())
2006.04.25 14:24:16 LOG7[1700:2172]:    5 client connects that finished
2006.04.25 14:24:16 LOG7[1700:2172]:    0 client renegotiatations requested
2006.04.25 14:24:16 LOG7[1700:2172]:    0 server connects (SSL_accept())
2006.04.25 14:24:16 LOG7[1700:2172]:    0 server connects that finished
2006.04.25 14:24:16 LOG7[1700:2172]:    0 server renegotiatiations requested
2006.04.25 14:24:16 LOG7[1700:2172]:    2 session cache hits
2006.04.25 14:24:16 LOG7[1700:2172]:    0 session cache misses
2006.04.25 14:24:16 LOG7[1700:2172]:    0 session cache timeouts
2006.04.25 14:24:16 LOG6[1700:2172]: SSL connected: previous session reused
2006.04.25 14:24:20 LOG7[1700:2172]: SSL socket closed on SSL_read
2006.04.25 14:24:20 LOG7[1700:2172]: Socket write shutdown
2006.04.25 14:24:20 LOG5[1700:2172]: Connection closed: 28994 bytes sent to SSL, 122 bytes sent to socket
2006.04.25 14:24:20 LOG7[1700:2172]: BANANA_TLS_SMTP finished (0 left)
Technical Details
Message-ID: <044043b853822a766ca488b599b098d7@anon.mixmaster.mixmin.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.20140712.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!newsfeed-east.nntpserver.com!nntpserver.com!statler.nntpserver.com!newspeer1.nwr.nac.net!newspeer.monmouth.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news.wiretrip.org!news.dizum.com!sewer-output!mail2news-x3!mail2news-x2!mail2news
References: <4ab016325f308c5cdcde012eed382024@anon.mixmaster.mixmin.net> <K80I7CFW38833.2107986111@reece.net.au>

Show Full Headers
Complete Article Headers
Message-ID: <044043b853822a766ca488b599b098d7@anon.mixmaster.mixmin.net>
Subject: Re: TLS and Stunnel server configuration
Date: Wed, 26 Apr 2006 00:43:04 +0000
From: Anonymous <nobody@invalid.org>
References: <4ab016325f308c5cdcde012eed382024@anon.mixmaster.mixmin.net> <K80I7CFW38833.2107986111@reece.net.au>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.20140712.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!newsfeed-east.nntpserver.com!nntpserver.com!statler.nntpserver.com!newspeer1.nwr.nac.net!newspeer.monmouth.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news.wiretrip.org!news.dizum.com!sewer-output!mail2news-x3!mail2news-x2!mail2news
Newsgroups: alt.privacy,alt.privacy.anon-server,alt.privacy.anon-servers
Mail-To-News-Contact: abuse@dizum.com
Organization: mail2news@dizum.com
Lines: 102