Article View: alt.privacy.anon-server
Article #255042stunnel config question, weird behavior
From: Nomen Nescio
Date: Sat, 10 Mar 2012 16:40
Date: Sat, 10 Mar 2012 16:40
211 lines
7334 bytes
7334 bytes
After advice from friendly expert Zax in apas and from:
http://www.noreply.org/tls
https://www.banana.mixmin.net/mailtls.html
I am using stunnel on a Win PC to communicate via smtp to the entry
mixmaster remailer.
Installing stunnel and OpenSSL last week seemed to go OK.
I think the stunnel.pem file is the original that came with the stunnel
installation, consisting of only a 1636 byte (NOT 1536) long RSA private
key which begins with MIIEowIBAAKCAQEAp4
Does that seem OK?
On running, stunnel's log file starts with:
Date/Time LOG5[3148:2276]: stunnel 4.52 on x86-pc-mingw32-gnu platform
Date/Time LOG5[3148:2276]: Compiled/running with OpenSSL 0.9.8s-fips 4 Jan
2012
Date/Time LOG5[3148:2276]: Threading:WIN32 SSL:ENGINE,FIPS Auth:none
Sockets:SELECT,IPv6
Date/Time LOG5[3148:2276]: Reading configuration from file
remailer-smtp.cfg
Date/Time LOG5[3148:2276]: FIPS mode is enabled
Date/Time LOG5[3148:2276]: Configuration successful
Date/Time LOG5[3148:2560]: Service BANANA_SMTP accepted connection from
127.0.0.1:3594
Date/Time LOG5[3148:2560]: connect_blocking: connected [an IP address in
Germany, starting with 188]:2525
Date/Time LOG5[3148:2560]: Service BANANA_SMTP connected remote server
from [my local intranet address, starting with 192.168]:3595
Does that seem OK? Is the 188.*.*.* address the Banana server?
Is the reason it defaulting to connecting to BANANA_SMTP because that is
physically the first section in the config file below?
Here is the single stunnel config file I am using, based on the
information at banana.mixmin.net/mailtls.html (I added all the the
remailers that support TLS)
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
RNDbytes = 2048
RNDfile = bananarand.bin
RNDoverwrite = yes
client = yes
options = ALL
#
[BANANA_SMTP]
protocol = smtp
accept = 2525
connect = snorky.mixmin.net:2525
delay = no
#
[FRELL_SMTP]
protocol = smtp
accept = 2526
connect = mail2.frell.eu.org:2525
delay = no
#
[DIZUM_SMTP]
protocol = smtp
accept = 2527
connect = mail.dizum.com:25
delay = no
#
[HERMETIX_SMTP]
protocol = smtp
accept = 2528
connect = mail.hermetix.org:25
delay = no
#
[CRIPTO_SMTP]
protocol = smtp
accept = 2529
connect = www.ecn.org:25
delay = no
#
[AUSTRIA_SMTP]
protocol = smtp
accept = 2530
connect = remailer.privacy.at:25
delay = no
#
[FREIEREDE_SMTP]
protocol = smtp
accept = 2531
connect = mail.freie-re.de:25
delay = no
#
[LULUNGA_SMTP]
protocol = smtp
accept = 2532
connect = remailer.cypherpunks.to:25
delay = no
#
[SLOW_SMTP]
protocol = smtp
accept = 2533
connect = snorky.mixmin.net:2525
delay = no
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
Does that seem OK?
Have I got the :25s and the :2525s correct?
Is it better to use as an entry remailer one that connects on 2525?
I never see a "bananarand.bin" file in the stunnel or any other directory,
so I don't understand that second line of the config file.
The first three [..._SMTP] sections are per the example at
banana.mixmin.net/mailtls.html
Within them, I also don't understand the "connect = mail.dizum.com:25" as
the exchanger for dizum according to noreply.org/tls/ is "smtp.zedz.net"
and not "mail.dizum.com". Maybe the banana.mixmin.net/mailtls.html advice
is not updated. But the "mail.dizum.com" seems to work, as in the message
gets through to the final destination (I've tested using dizum as the
entry remailer).
The rest of the config file I made up looking at noreply.org/tls, using
":25" when there was a "no" in the "2525" column.
Is that correct?
MY USAGE "IN THE FIELD":
First, I set up the Windows remailer client according to
banana.mixmin.net/mailtls.html
Now I start stunnel with the parameter the above config file, and leave it
running.
Then, I start the Windows remailer client with the entry remailer as one
of those specified in the stunnel config file (say, banana).
Then I send the encrypted email or post.
Everything seems to go OK, there are no error messages from stunnel or the
Windows remailer client, and, some time later, the message arrives at the
destination.
Sounds good, BUT....
!! Now, THE WEIRD THING !!
Out of curiosity, I now do the same thing EXCEPT I put as the ENTRY
remailer one of those NOT listed in the stunnel config file (e.g., kulin,
nickserve, bunker, which definitely do not support TLS, rabbi, pobox,
winters which probably do not support TLS).
Say kulin. This remailers does NOT have TLS forward secrecy according to
noreply.org/tls
But I get no error message from stunnel or the Windows remailer client -
AND, SOME TIME LATER, THE MESSAGE ARRIVES AT THE DESTINATION!
How can this happen? stunnel does not know how to connect to them (there
is no "connect = " line in the stunnel config appropriate for them. I am
obviously missing some understanding.
stunnel obviously did not use TLS between "me" and these entry remailers
(e.g. kulin etc) because these remailers do not support TLS.
So the Windows remailer client is connecting to them, presumably using
stunnel, but NOT with TLS. But how? All the client knows about (say) kulin
is its public key(s) and email address remailer@reece.net.au!
Isn't this weird?
The only explanation I can think of is that Banana is somehow acting as a
server and it is doing the hard work. This is consistent with what the
log contains, which, irrespective of which is the entry remailer, each
time I "Send" show lines like:
Date/Time LOG5[3148:2312]: connect_blocking: connected [an IP address in
Germany, starting with 188]:2525
Date/Time LOG5[3148:2312]: Service BANANA_SMTP connected remote server
from [my local intranet address, starting with 192.168]:3767
Date/Time LOG5[3148:2312]: Connection closed: 28xxx bytes sent to SSL, yyy
bytes sent to socket
(((( In fact, the ONLY remailer I could not get working as an entry
remailer is the new one, foo <remailer@foo.asia-king.co.uk> ("no valid
recipients specified" error message). Maybe the Banana server does not yet
know about foo'? )))
THEREFORE MY WORRY OR CONCERN IS THAT TLS IS **NEVER** BEING USED, EVEN IN
THE CASE OF BANANA, DIZUM, FRELL ETC. AS THE ENTRY REMAILER.
Basically, I am looking for reassurance that TLS is actually functioning
in that (vital to forward secrect) first link, if I use the above system
and an entry remailer which is TLS compliant e.g.
BANANA
FRELL
DIZUM
HERMETIX
CRIPTO
AUSTRIA
FREIEREDE
LULUNGA
SLOW
Technical Details
Message-ID:
<df4ff7a778d9c06e1237eaa29d90d7cf@dizum.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news.mixmin.net!news2.arglkargh.de!news.dizum.com!sewer-output!mail2newsShow Full Headers
Complete Article Headers
Message-ID: <df4ff7a778d9c06e1237eaa29d90d7cf@dizum.com> Subject: stunnel config question, weird behavior Date: Sat, 10 Mar 2012 16:40:03 +0000 From: Nomen Nescio <nobody@dizum.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news.mixmin.net!news2.arglkargh.de!news.dizum.com!sewer-output!mail2news Newsgroups: alt.privacy.anon-server X-No-Archive: Yes Mail-To-News-Contact: abuse@dizum.com Organization: mail2news@dizum.com Lines: 210