🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Stunnel Question for Zax

#96816
From: notJoe
Date: Wed, 22 Oct 2003 01:19
67 lines
3288 bytes
In article <41e8492e1b7b6d4520ec411f8e8cc8fc@tatooine.homelinux.net>, 
nobody@tatooine.homelinux.net says...
> Your page for explaining TLS/SSL and stunnel config is a boon and I thank 
> you.  If you could explain what these two lines in your suggested cfg -
> RNDbytes = 2048
> RNDfile = bananarand.bin
> what exactly do they do?  

http://www.stunnel.org/faq/stunnel.html has most of what you want. 
Stunnel will use RNDfile, if it can find the file, as the most preferred 
source of pseudorandom bytes. For ordinary use with you as a client, just 
create any old file with notepad, e.g. Then the first time stunnel runs, 
it will put 1024 pseudorandom bytes into that file.

Use the line debug = 7 in your config file, then look at the log.

RNDbytes determines the max bytes that will be read from the seed file. 
But stunnel will nevertheless write (from what I've seen) only 1024 bytes 
back to the seed file. 

[more below]

>I'm a bit of a dumbass stunnel-wise.  What is the 
> content of bananarand.bin?  Are those two entries what provide the 
> cryptographic EDH seed for the connection?
> 
> And let's suppose I have a stunnel config with multiple entries and 
> protocols e.g.:
> # stunnel client setup
> RNDbytes = 2048
> RNDfile = bananarand.bin
> RNDoverwrite = yes

the above is the default condition anway. I suppose you would disable 
overwrite if you thought you had a better source of pseudorandom bytes 
than what stunnel itself provides. In that case, using RNDbytes > 1K 
would become meaningful.

> client = yes
> options = ALL
> #
> [BANANA_SMTP]
> protocol = smtp
> accept  = 2525
> connect = mail.bananasplit.info:2525
> delay = no
> # other Service-level configurations
> [something1]
> accept = 127.0.0.1:8082
> connect = thing1.wegklhfs.goo:8081
> [something2]
> accept = 127
> connect = thing2.wegklhfs.goo:8081
> 
> do the initial bananafied setup configs (RNDbytes, RNDfile etc.) have any 
> effect on the [something1] and [something2] connects?

well, it would seem logical to assume that the stunnel client gets the 
public key from the stunnel server; and it generates the session key 
which gets sent encrypted to the server. So, yes.

But stunnel only changes the contents of the seed file at each startup.

> 
> Thank you (or anybody) for any thoughts.

HTH and IANAE :)
Technical Details
Message-ID: <MPG.19ffa49b3ab1960c98968e@news.bananasplit.info>
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!text1.nnrp.aus1!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!in.100proofnews.com!in.100proofnews.com!pd7cy1no!shaw.ca!news.alt.net!news.bananasplit.info!not-for-mail
References: <41e8492e1b7b6d4520ec411f8e8cc8fc@tatooine.homelinux.net>

Show Full Headers
Complete Article Headers
Message-ID: <MPG.19ffa49b3ab1960c98968e@news.bananasplit.info>
Subject: Re: Stunnel Question for Zax
Date: Tue, 21 Oct 2003 21:19:47 -0400
From: notJoe <joe@joe.joe>
References: <41e8492e1b7b6d4520ec411f8e8cc8fc@tatooine.homelinux.net>
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!text1.nnrp.aus1!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!in.100proofnews.com!in.100proofnews.com!pd7cy1no!shaw.ca!news.alt.net!news.bananasplit.info!not-for-mail
Newsgroups: alt.privacy.anon-server
Organization: Bananasplit
Lines: 67
X-Complaints-To: abuse@bananasplit.info
NNTP-Posting-Date: Wed, 22 Oct 2003 01:19:49 +0000 (UTC)
X-Newsreader: MicroPlanet Gravity v2.30