🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.free.newsservers
1 messages
1 total messages Started by TeraNews Staff Wed, 04 Feb 2009 23:29
Tip: How to download at 30mbits/sec on 5mbit line
#111246
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads