🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #57607

Re: Gravity for Secure News

#57607
From: Guanxi
Date: Tue, 01 Feb 2000 00:00
149 lines
5930 bytes
Thanks for the tip.  I've downloaded it and will give it a try.

For those interested, the manual says, [from 
http://mike.daewoo.com.pl/computer/stunnel/stunnel-3-manual.html]
>>
DESCRIPTION
     The stunnel program is designed to work as SSL encryption 
wrapper between remote client and local (inetd-startable) or 
remote server. The concept is that having non-SSL aware daemons 
running on your system you can easily setup them to communicate 
with clients over secure SSL channel. 
     stunnel can be used to add SSL functionality to commonly 
used inetd daemons like POP-2, POP-3 and IMAP servers as well as 
to standalone daemons like NNTP, SMTP and HTTP without changes to 
the source code. 
<<



In article <20000131063032.26482.qmail@nym.alias.net>, e n t r o 
p I c <entropic@nym.alias.net> says...
> 
> On Thu, 27 Jan 2000, planb@newsreaders.com (J. B. Moreno) wrote:
> 
> >Secure servers communicate over an encrypted connection, most
> >newsreaders don't do that (if someone actually finds this to be a
> >problem, the real solution is to get/write a proxy server, then it can
> >be used with any newsreader -- but I don't know of one, or of anyone
> >writing one, for use with secure servers).
> 
> Thought you might find that interesting:
> 
> ============= CUT HERE =============
> 
> Subject: Re: Why can't this security hole be fixed?
> From: Nemo <nemo@nowhere.invalid>
> Date: 23 Jan 2000 15:30:37 -0600
> Newsgroups: alt.privacy.anon-server
> Message-ID: <mipm8skg4k8e1rrpo20abngbf00ulpq954@4ax.com>
> 
> On 23 Jan 2000 19:09:40 -0000, e n t r o p i c
> <entropic@nym.alias.net>
> wrote:
> 
> >>Doesn't matter.  Go get Stunnel and you can make it work with any
> >>newsreader.
> >>
> >>http://mike.daewoo.com.pl/computer/stunnel/ 
> >
> >Thanks, will check.
> >
> >>If you have linux, I'll share some neat tricks you can do with stunnel and
> >>transparent proxies.
> >
> >Please do, this is very curious indeed.
> 
> One shortcomming of Stunnel is that each instance of it can connect to
> only
> one server.  You run stunnel by entering 
> 
> 	"stunnel -c -d <localport> -r <remotemachine>"
> 
> and stunnel is bound to that one remote server.
> 
> 
> Well, that's not a problem if you have only one server you ever want
> to
> connect to.  However, commercial providers often have multiple servers
> to
> connect to.  Newscene for example, has news1,news2,news3,news4, and
> news-west.
> 
> No problem, I just run multiple stunnels on different local ports.
> Now, I
> can connect to any server, but I have to change the port setting in
> whatever newsreader I'm using.  Some newsreaders, like Agent, only
> support
> changing ports through a setting in their .ini file.  Editing .ini
> files is
> a pain in the ass, and some newsreaders won't let you change the ports
> at
> all.
> 
> Fortunately, linux gives us an ultracool solution.  For this, you'll
> need
> to have transparent proxy support compiled into your kernel and the
> firewall tools (ipfwadm or ipchains).  I don't have ipchains, so the
> following will use ipfwadm.
> 
> First, create the following "virtual" machines by putting them in
> /etc/hosts or making the appropriate DNS changes.
> 
> 	sec-news1	10.100.0.10
> 	sec-news2	10.100.0.20
> 	sec-news3	10.100.0.30
> 	sec-news4	10.100.0.40
> 	sec-news-west	10.100.0.50
> 
> (10.x.x.x is designated for private networks only, so there's no
> problem
> with colliding with real ip addresses)
> 
> Second, run stunnel for each of secure servers you want to use
> 
> 	stunnel -c -d 10001 -r news1.newscene.com:563
> 	stunnel -c -d 10002 -r news2.newscene.com:563
> 	stunnel -c -d 10003 -r news3.newscene.com:563
> 	stunnel -c -d 10004 -r news4.newscene.com:563
> 	stunnel -c -d 10005 -r news-west.newscene.com:563
> 
> The "-d xxx" option is what local port stunnel is listening on.
> 
> Now here's the trick.  We'll use transparent proxy support to route
> traffic
> for the dummy machines we just created to the corresponding local
> ports.
> 
> ipfwadm -I -i a -P tcp -S <your local subnet> -D 10.100.0.10 119 -r
> 10001
> ipfwadm -I -i a -P tcp -S <your local subnet> -D 10.100.0.20 119 -r
> 10002
> ipfwadm -I -i a -P tcp -S <your local subnet> -D 10.100.0.30 119 -r
> 10003
> ipfwadm -I -i a -P tcp -S <your local subnet> -D 10.100.0.40 119 -r
> 10004
> ipfwadm -I -i a -P tcp -S <your local subnet> -D 10.100.0.50 119 -r
> 10005
> 
> Now, what excatly do we gain here:
> 
> 	To make an ecrypted connect to news2.newscene.com, all I have to do
> is tell my newsreader to use the server sec-news2 on port 119 (the
> standard
> nntp port!!).  The linux box routes the traffic to port 10002 which
> stunnel
> is running on, and stunnel makes the encrypted connection to
> news2.newscene.com
> 
> 	I no longer have to change ports, and remembering sec-news2 is alot
> easier than remembering what port the correct stunnel is running on.
> 	
> --
> Nemo  -:-  nemo@redneck.gacracker.org
> 
> ============= CUT HERE =============
> 
> 

Technical Details
Message-ID: <shFl4.1380$sN.67599@typhoon1.rdc-detw.rr.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <1e5397e.7b78sbmokuxbN%planb@newsreaders.com> <20000131063032.26482.qmail@nym.alias.net>

Show Full Headers
Complete Article Headers
Message-ID: <shFl4.1380$sN.67599@typhoon1.rdc-detw.rr.com>
Subject: Re: Gravity for Secure News
Date: Tue, 01 Feb 2000 00:00:00 +0000
From: Guanxi <nospam@yahoo.com>
References: <1e5397e.7b78sbmokuxbN%planb@newsreaders.com> <20000131063032.26482.qmail@nym.alias.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 580435883
X-Complaints-To: abuse@mediaone.net
X-Trace: typhoon1.rdc-detw.rr.com 949428440 24.131.12.76 (Tue, 01 Feb 2000 13:07:20 EST)
NNTP-Posting-Date: Tue, 01 Feb 2000 13:07:20 EST
Newsgroups: alt.usenet.offline-reader,news.software.readers