🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rocksolid.nodes
Article #480

Re: Rocksolid Documentation and Peering Information

#480
From: Retro Guy
Date: Wed, 20 Jul 2022 07:04
76 lines
4614 bytes
Country Bumpkin wrote:

> I downloaded the rslite github repo and poked around the codebase.

> I cannot find documentation on setting up peering with other rslite 
> nodes and INN nodes so I can pull a select few public Usenet groups. 
> Does such documentation exist?

Documentation is severely lacking (it doesn't exist). I've been working
on this project for quite a while but not many have showed interest in 
it, so I just keep working on the code.

But yes, documentation really needs to be written at some point.

> If not, which PHP file(s) handle the peering functionality? I can poke 
> around the source code and try to reason it out. I don't see a config 
> file for peering in the repo, or how to create new groups and local 
> groups. Do I just add new groups to the group list at 
> rslight/rocksolid/groups.txt ?

First, yes, you add groups to groups.txt to add groups.

rslight contains a simple news server that is pretty much what you'd 
connect to if you connect to inn in MODE READER. It does not have as
many commands available, but the ones there are work well. I connect to
rslight servers with several news clients and don't have trouble.

Peering is handled in rslight/scripts/spoolnews.php and send.php

spoolnews.php collects articles from a remote server, and maintains a 
record of what it has pulled, so the next connection it tries to pull
only new articles since last connection.

send.php sends locally posted articles to the remote server. Note that
nntp.php and nntp-ssl.php will try to send articles immediately to the
remote server when posted, but if not, send.php will send them on a 
regular basis.

The remote server can be another rslight instance, or inn2 (and probably
other servers). I've tried it with leafnode and that works.

So two rslight instances can sync with eachother with these features.

> Also I need to figure out how to ensure everything rslite does goes 
> through a Tor hidden service without leaks. Has anyone written anything 
> on that?

trw wrote a simple bash script to 'torify' outgoing rslight connections.
I can dig that up for you if you need it.

> I plan on running rslite on a Debian host with lighttpd web server 
> behind a Tor hidden service with a port also exposed to clearnet for the 
> NNTP server and PHP front end. I want to make sure rslite is not going 
> to leak around the hidden service port for Tor user security.

I've tested on lighttpd and it worked fine for me. rslight should simply
use the connections you configure. It does not have "phone home" features
or any javascript that uses external scripts. Javascript is also very
minimal and not necessary for use.

> Then there is the issue of ensuring a SSL connection for both the PHP 
> web front end and for NNTP client connections, from either clearnet or Tor.

rslight supports SSL for incoming and outgoing connections.

> Where do I need to look?

Configuration is mostly handled in /etc/rslight/rslight.inc.php . If you 
configure at the command line instead of the setup script, you can find
instructions for each config option in /etc/rslight/scripts/setuphelper.php

There are more features to rslight and additional config files for them, but
the above should help get you started.

-- 
Retro Guy
Technical Details
Message-ID: <bd0b6ed365587ecb773cb55680ebff9f@news.novabbs.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf9.newsdeef.eu!i2pn2.org!.POSTED.novabbs-org!not-for-mail
References: <tb7f66$1ueh$1@gioia.aioe.org>

Show Full Headers
Complete Article Headers
Message-ID: <bd0b6ed365587ecb773cb55680ebff9f@news.novabbs.org>
Subject: Re: Rocksolid Documentation and Peering Information
Date: Wed, 20 Jul 2022 07:04:35 +0000
From: retro.guy@rocksolidbbs.com (Retro Guy)
References: <tb7f66$1ueh$1@gioia.aioe.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf9.newsdeef.eu!i2pn2.org!.POSTED.novabbs-org!not-for-mail
Newsgroups: rocksolid.nodes
Organization: Rocksolid Light
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org; posting-account="novabbs.org"; posting-host="novabbs-org:10.136.143.187";
 logging-data="20984"; mail-complaints-to="usenet@i2pn2.org"
User-Agent: Rocksolid Light (www.novabbs.com/getrslight)
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on novabbs.org
X-Rslight-Site: $2y$10$k3Paj2RFUzrGQK.k/FGYEOz9oRtd9lKbSDCBtmllE1QxahWnNHhKK
X-Rslight-Posting-User: 91053d4a47d51b416144568e5a1040f05e31ed1b
X-Face: .&YR-G(w(DZ$$,}%k=]*5*!p'=(anr"IT`wZG'2VWdfl\r)l[42u7JH`n(JUQ*e5*A|XCDf
 ?&\X&uwkl38"CYX3O8m}C8E4p'%N$2#kSTVzx{Ly|DjLT\Vk7NE}NQ(VC$Yq]i:7|z[.9iv^g>*8_B
 H0=hZt'[%)4kG|