🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.free.newsservers
Article #111246

Tip: How to download at 30mbits/sec on 5mbit line

#111246
From: TeraNews Staff
Date: Wed, 04 Feb 2009 23:29
93 lines
4274 bytes
For those who can use ssl with compression you can download headers 5-
10x the normal speed.  I have downloaded xover/headers at 40 mbits/sec 
on a line that normally gets about 5 mbits.  When compressing 
xover/header/text bodies you get 80-90% compression.  I think all users 
should consider switching to using ssl servers that have compression 
enabled (public.teranews.com, does btw).  Even binary users get a big 
speed boost when downloading xover data or non yEnc'ed binaries. 

I haven't tested the built-in ssl support in clients like 
outlook/windows mail/thunderbird, but I know the recent version of 
newsbin has it built in.  Even if you client doesn't support ssl you can 
run stunnel with any client and get compression.

Here is a mini howto guide for windows users (unix users should already 
know this stuff):

Go to http://stunnel.org and download:

http://www.stunnel.org/download/stunnel/win32/stunnel-4.26-installer.exe
http://www.stunnel.org/download/stunnel/win32/openssl-0.9.7f-
zlib/openssl.zip

(the above url is really one line...)

Unzip the openssl.zip into C:\Windows\System32
Run the stunnel-4.26-installer.exe to install stunnel

You can use the included stunnel.pem file if you just want compression 
and weak encryption or you can generate your own key files for better 
encryption.

You can use the website http://www.stunnel.org/pem/ to make a 
stunnel.pem file for you or you can open a dos window and type the 
following:

cd "C:\Program Files\stunnel"
openssl.exe req -new -x509 -days 999 -nodes >stunnel.pem

The above command will generate two files stunnel.pem and privkey.pem. 
If you use the website it will combine the files into one (stunnel.pem) 
and you should then comment out the key = privkey.pem line below.

[ While re-reading it occurred to me that you may not even need a 
certificate (stunnel.pem) to use stunnel in client mode, but it can't 
hurt. ]

Edit the stunnel.conf file in the stunnel directory. Here is an example 
that will work and connect you to public.teranews.com (yes we run nntps 
on port 80 so isp's don't traffic shape).  Replace to connect=ip:port 
with any ssl enabled server of your choice that supports zlib 
compression.

cert = stunnel.pem
key = privkey.pem

; Some performance tunings
socket = l:TCP_NODELAY=1
socket = r:TCP_NODELAY=1

; Some debugging stuff useful for troubleshooting
;debug = 7
;output = stunnel.log

; Use it for client mode
client = yes

; Service-level configuration

[nntps]
accept = 127.0.0.1:119
connect = public.teranews.com:80


Then just configure any news client to use the server 127.0.0.1 and port 
119.  Instant 5-10x speed increase when downloading headers and text 
articles.

Want several servers at once?  Just use a different port for each by 
just adding a new entry at the bottom:

[nntps2]
accept = 127.0.0.1:120
connect = ssl.teranews.com:563

Then you can add a second server 127.0.0.1 port 120 to your news client.

If you don't put the 127.0.0.1: in the accept line stunnel will accept 
connections from anywhere, for example another computer on your lan or 
if your firewall is open you may find others using "your" news server. 
:)

TN
Technical Details
Message-ID: <Xns9BA8BC24432FBnospamteranewscom@69.16.185.250>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20150605.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.freenet.de!newsfeed0.kamp.net!newsfeed.kamp.net!209.197.12.242.MISMATCH!nx01.iad.newshosting.com!newshosting.com!69.16.185.11.MISMATCH!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe08.iad.POSTED!f0bc693b!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <Xns9BA8BC24432FBnospamteranewscom@69.16.185.250>
Subject: Tip: How to download at 30mbits/sec on 5mbit line
Date: Wed, 04 Feb 2009 23:29:43 GMT
From: TeraNews Staff <nospam@teranews.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20150605.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.freenet.de!newsfeed0.kamp.net!newsfeed.kamp.net!209.197.12.242.MISMATCH!nx01.iad.newshosting.com!newshosting.com!69.16.185.11.MISMATCH!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe08.iad.POSTED!f0bc693b!not-for-mail
Newsgroups: alt.free.newsservers,teranews.support
Organization: www.teranews.com
User-Agent: Xnews/5.04.25
Lines: 93
X-Complaints-To: abuse@teranews.com
NNTP-Posting-Date: Wed, 04 Feb 2009 23:29:43 UTC