🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.privacy.anon-server
19 messages
19 total messages Started by Syber Shock Thu, 28 Sep 2023 06:58
Onion peering between INN and Rocksolid Light
#322722
Author: Syber Shock
Date: Thu, 28 Sep 2023 06:58
42 lines
2912 bytes
I need to be able to explain succinctly how a INN peer should connect
to a Rocksolid Light peer if such is possible.

Rocksolid Light (rslight) peers and syncs using client commands instead
of innfeed. It is very simple to configure. Rocksolid Light will peer
with any NNTP peer that has user account authentication. Enter the
credentials into the rslight config, list the desired newsgroups, and
away we go. Rslight uses client commands to check, push and pull
articles. 

But what if a sysop using INN wants to peer with rslight? Does INN have
facility for this at user level? If I sync rslight with a INN peer, only
the rslight peer is doing the synchronization of articles. Does INN have
the facility to do the inverse with a rslight peer?

I configure the rslight cron job to synchronize at randomized
intervals. Ultimately my strategy is to check and synchronize articles
at random intervals from ten to thirty minutes over a tor hidden onion
circuit. I would expect a remote peer to do similarly. Randomization of
the synchronization times is a hedge against traffic analysis. Delays
of a few minutes before forwarding buffers connecting clients from
message timing correlation. It is not perfect but it helps and it
increases the cost for eavesdroppers.

The hidden onion circuit is an extra layer of security for the
connections. Each peer I link to would use a different hidden onion
address, and I would give a different hidden onion address to each such
peer. This allows every peer to hide physical location. It also allows
every peer to have a secure, private pipe to only one other peer.

Firstly I need to know how, if possible, to configure INN to
synchronize via client authentication and client commands, without
respect to the kind of network transport.

Secondly I need ideas on how to configure INN to use multiple Tor
hidden onion services, and connect INN to unique remote onion services
on a per-peer basis.

Please advise with concrete information.

-- 
3883@sugar.bug | web: sybershock.com | news: alt.sources.crypto
Re: Onion peering between INN and Rocksolid Light
#322723
Author: Retro Guy
Date: Thu, 28 Sep 2023 11:46
52 lines
3658 bytes
On Thu, 28 Sep 2023 01:58:43 -0500
Syber Shock <admin@sybershock.com> wrote:

> I need to be able to explain succinctly how a INN peer should connect
> to a Rocksolid Light peer if such is possible.
> 
> Rocksolid Light (rslight) peers and syncs using client commands instead
> of innfeed. It is very simple to configure. Rocksolid Light will peer
> with any NNTP peer that has user account authentication. Enter the
> credentials into the rslight config, list the desired newsgroups, and
> away we go. Rslight uses client commands to check, push and pull
> articles. 

Correct. rslight acts as a news client (nnrpd client), and also as a nnrpd
server. MODE STREAM is not supported in rslight at this time.

> But what if a sysop using INN wants to peer with rslight? Does INN have
> facility for this at user level? If I sync rslight with a INN peer, only
> the rslight peer is doing the synchronization of articles. Does INN have
> the facility to do the inverse with a rslight peer?

I am not aware of any feature of INN that allows it to act as a nnrpd client.
That doesn't mean there is no such feature, just that I am not aware of it.
 
> I configure the rslight cron job to synchronize at randomized
> intervals. Ultimately my strategy is to check and synchronize articles
> at random intervals from ten to thirty minutes over a tor hidden onion
> circuit. I would expect a remote peer to do similarly. Randomization of
> the synchronization times is a hedge against traffic analysis. Delays
> of a few minutes before forwarding buffers connecting clients from
> message timing correlation. It is not perfect but it helps and it
> increases the cost for eavesdroppers.

This should be simple with just shell scripts.

> The hidden onion circuit is an extra layer of security for the
> connections. Each peer I link to would use a different hidden onion
> address, and I would give a different hidden onion address to each such
> peer. This allows every peer to hide physical location. It also allows
> every peer to have a secure, private pipe to only one other peer.

Makes sense.

> Firstly I need to know how, if possible, to configure INN to
> synchronize via client authentication and client commands, without
> respect to the kind of network transport.
> 
> Secondly I need ideas on how to configure INN to use multiple Tor
> hidden onion services, and connect INN to unique remote onion services
> on a per-peer basis.
> 
> Please advise with concrete information.
Re: Onion peering between INN and Rocksolid Light
#322724
Author: Syber Shock
Date: Thu, 28 Sep 2023 13:16
83 lines
3402 bytes
On Thu, 28 Sep 2023 04:46:51 -0700
Retro Guy <retroguy@novabbs.com> wrote:

> > I configure the rslight cron job to synchronize at randomized
> > intervals. Ultimately my strategy is to check and synchronize
> > articles at random intervals from ten to thirty minutes over a tor
> > hidden onion circuit. I would expect a remote peer to do similarly.
> > Randomization of the synchronization times is a hedge against
> > traffic analysis. Delays of a few minutes before forwarding buffers
> > connecting clients from message timing correlation. It is not
> > perfect but it helps and it increases the cost for eavesdroppers.  
> 
> This should be simple with just shell scripts.

My setup avoids crontab and uses systemd init to spawn. Maybe a little
cleanup for install path vars would make this useful.

$ cat /etc/systemd/system/rslight-cron.service

[Unit]
Description=rslight nntp cron
After=network.target
StartLimitIntervalSec=0
[Service]
User=root
Type=simple
TimeoutSec=0
WorkingDirectory=/home/rslight/cron
PIDFile=/var/run/rslight_cron_service.pid
ExecStart=/bin/bash /home/rslight/cron/rslight.cron.bash
KillMode=process Restart=always
RestartSec=31s
[Install]
WantedBy=multi-user.target

$ cat /home/rslight/cron/rslight.cron.bash

#!/usr/bin/env bash

# Cron loop randomizer for Rocksolid Light. 
# Adjust the paths to match your installation.
# Bundled with a systemd service control script.

counter="0"
crondir="/home/rslight/cron"
cronlog="$crondir/rslight.cron.log"
timelog="$crondir/rslight.cron.timestamp.log"

while :
do

# logging timestamp for begin of cron job
date -u >> "$timelog

counter="$((counter+1))"
echo "$counter" >> "$cronlog"

cd /var/www/public_html/forum/spoolnews
bash -lc "php8.2 /home/rslight/config/scripts/cron.php" >> "$cronlog"
echo "--------" >> "$cronlog"
echo "" >> "$cronlog"

# timestamp for end of cron job in timestamp only file
date -u >> "$timelog"
echo "--------" >> "$timelog"

# rotate log files
tail -c 65536 "$cronlog" > "$cronlog.temp"
mv "$cronlog.temp" "$cronlog"
tail -c 65536 "$timelog" > "$timelog.temp"
mv "$timelog.temp" "$timelog"

# random 10-30 minute pause in loop
randpoz="$RANDOM$RANDOM"
randpoz="$((randpoz%1200))"
randpoz="$((randpoz+600))"
sleep "$randpoz.600600600600600600" # easy to see with ps grep

done # while true

-- 
3883@sugar.bug | web: sybershock.com | news: alt.sources.crypto
Re: Onion peering between INN and Rocksolid Light
#322727
Author: Ivo Gandolfo
Date: Thu, 28 Sep 2023 16:55
59 lines
3644 bytes
On 28/09/2023 13:46, Retro Guy wrote:
> On Thu, 28 Sep 2023 01:58:43 -0500
> Syber Shock <admin@sybershock.com> wrote:
> 
>> But what if a sysop using INN wants to peer with rslight? Does INN have
>> facility for this at user level? If I sync rslight with a INN peer, only
>> the rslight peer is doing the synchronization of articles. Does INN have
>> the facility to do the inverse with a rslight peer?
> 
> I am not aware of any feature of INN that allows it to act as a nnrpd client.
> That doesn't mean there is no such feature, just that I am not aware of it.
>   

You can connect as server (with mode stream) or with client (with IHAVE 
and other permission). You can choose both way.

> 
>> The hidden onion circuit is an extra layer of security for the
>> connections. Each peer I link to would use a different hidden onion
>> address, and I would give a different hidden onion address to each such
>> peer. This allows every peer to hide physical location. It also allows
>> every peer to have a secure, private pipe to only one other peer.
> 
> Makes sense.
> 

Pay attention! run a news server take a lot of bandwich. One peer with 
my server (full feed) take _at least_ 2GB/day in/at least 500MB/day out. 
(all hyearchies, nothing excluded) It's realistic run them over a (poor) 
bandwich network? IMHO no.

>> Firstly I need to know how, if possible, to configure INN to
>> synchronize via client authentication and client commands, without
>> respect to the kind of network transport.
>>
>> Secondly I need ideas on how to configure INN to use multiple Tor
>> hidden onion services, and connect INN to unique remote onion services
>> on a per-peer basis.
>>
>> Please advise with concrete information.

just use correctly the readers.conf permission, or setup the feed. 
innfeed not have much capabilities, but a little setup with sucks or 
other software to jump, or a batch, a feed it's possible.

If you want to test, my server have areally a TOR service active, but 
experimental.

(to all other user's here: WARNING! it's experimental! service are not 
garantuee at this time. If you want to test them, feel free, but 
remember to report to my email any bug/malfunction you found!)

node: bofhteamhroxbmd6pxbjrg6egqrnnu2vj7vlxpcnb3ypk56devuyj6yd.onion


Sincerely

-- 
Ivo Gandolfo
Re: Onion peering between INN and Rocksolid Light
#322729
Author: Anonymous
Date: Thu, 28 Sep 2023 17:26
6 lines
1423 bytes
>My setup avoids crontab and uses systemd init to spawn

What is the reason that you use systemd ? Or just by chance ?

-- 
Posted on Rocksolid Light
Re: Onion peering between INN and Rocksolid Light
#322730
Author: rek2 hispagatos
Date: Thu, 28 Sep 2023 17:46
26 lines
1690 bytes
On 2023-09-28, Anonymous <Anonymous@news.novabbs.org> wrote:
>>My setup avoids crontab and uses systemd init to spawn
>
> What is the reason that you use systemd ? Or just by chance ?

and here comes  the long old with new accents
vim vs emacs
linux vs *bsd 
kde vs gnome
tiling vs non-tiling
....
Systemd vs Initd 
xorg vs wayland 

:D :D 

/me goes to prepare usenet popcorn 

Happy Hacking
ReK2


-- 
- {gemini,https}://{,rek2.}hispagatos.org - mastodon: @rek2@hispagatos.space
- [https|gemini]://2600.Madrid            - https://hispagatos.space/@rek2
- https://keyoxide.org/A31C7CE19D9C58084EA42BA26C0B0D11E9303EC5
Re: Onion peering between INN and Rocksolid Light
#322732
Author: Syber Shock
Date: Thu, 28 Sep 2023 17:54
68 lines
3755 bytes
On Thu, 28 Sep 2023 18:55:26 +0200
Ivo Gandolfo <usenet@bofh.team> wrote:

> On 28/09/2023 13:46, Retro Guy wrote:
> > On Thu, 28 Sep 2023 01:58:43 -0500
> > Syber Shock <admin@sybershock.com> wrote:
> >   
> >> But what if a sysop using INN wants to peer with rslight? Does INN
> >> have facility for this at user level? If I sync rslight with a INN
> >> peer, only the rslight peer is doing the synchronization of
> >> articles. Does INN have the facility to do the inverse with a
> >> rslight peer?  
> > 
> > I am not aware of any feature of INN that allows it to act as a
> > nnrpd client. That doesn't mean there is no such feature, just that
> > I am not aware of it. 
> 
> You can connect as server (with mode stream) or with client (with
> IHAVE and other permission). You can choose both way.

So now to find the instruction manual for that method ...
 
> >> The hidden onion circuit is an extra layer of security for the
> >> connections. Each peer I link to would use a different hidden onion
> >> address, and I would give a different hidden onion address to each
> >> such peer. This allows every peer to hide physical location. It
> >> also allows every peer to have a secure, private pipe to only one
> >> other peer.  
> > 
> > Makes sense.
> >   
> 
> Pay attention! run a news server take a lot of bandwich. One peer
> with my server (full feed) take _at least_ 2GB/day in/at least
> 500MB/day out. (all hyearchies, nothing excluded) It's realistic run
> them over a (poor) bandwich network? IMHO no.

Noted and understood, which is why I only mirror 60 Usenet groups. I
don't think I will ever carry a full feed. The time commitment just to
weeding out abuse would be maddening.

I do plan to mirror groups from all the smolnet hierarchies that I
find.

> >> Firstly I need to know how, if possible, to configure INN to
> >> synchronize via client authentication and client commands, without
> >> respect to the kind of network transport.
> >>
> >> Secondly I need ideas on how to configure INN to use multiple Tor
> >> hidden onion services, and connect INN to unique remote onion
> >> services on a per-peer basis.
> >>
> >> Please advise with concrete information.  
> 
> just use correctly the readers.conf permission, or setup the feed. 
> innfeed not have much capabilities, but a little setup with sucks or 
> other software to jump, or a batch, a feed it's possible.

What about leafnode? Remember, I will be advising other sysops who want
to run INN instead of Rocksolid Light, on how to pull from and push to
a Rocksolid peer. So I'm quite clueless on what would be the best tools
to recommend. I can figure it out, eventually, but I was hoping someone
else already rode this bull.
 
<snip>

-- 
3883@sugar.bug | web: sybershock.com | news: alt.sources.crypto
Re: Onion peering between INN and Rocksolid Light
#322733
Author: candycanearter07
Date: Thu, 28 Sep 2023 18:46
29 lines
1754 bytes
On 9/28/23 12:46, rek2 hispagatos wrote:
> On 2023-09-28, Anonymous <Anonymous@news.novabbs.org> wrote:
>>> My setup avoids crontab and uses systemd init to spawn
>>
>> What is the reason that you use systemd ? Or just by chance ?
> 
> and here comes  the long old with new accents
> vim vs emacs
> linux vs *bsd
> kde vs gnome
> tiling vs non-tiling
> ....
> Systemd vs Initd
> xorg vs wayland
> 
> :D :D
> 
> /me goes to prepare usenet popcorn
> 
> Happy Hacking
> ReK2
> 
> 

Like I have said before, Linux users are really really good at tribalism.

arguably vlc v mpv would fall under this too.
-- 
user <candycane> is generated from /dev/urandom
Re: Onion peering between INN and Rocksolid Light
#322736
Author: Buster Scruggs
Date: Thu, 28 Sep 2023 20:35
13 lines
1665 bytes
On Thu, 28 Sep 2023 17:26:31 +0000
Anonymous@news.novabbs.org (Anonymous) wrote:

> >My setup avoids crontab and uses systemd init to spawn  
> 
> What is the reason that you use systemd ? Or just by chance ?

Buster Scruggs already answered this kreepy kookboi once upon a time.

-- 
    Buster Scruggs
    Manners maketh the mongrel.
    Angels will dance on toilets to celebrate your digestion.
Re: Onion peering between INN and Rocksolid Light
#322737
Author: Retro Guy
Date: Fri, 29 Sep 2023 10:19
29 lines
2412 bytes
Retro Guy wrote:

> On Thu, 28 Sep 2023 01:58:43 -0500
> Syber Shock <admin@sybershock.com> wrote:

>> snip

>> But what if a sysop using INN wants to peer with rslight? Does INN have
>> facility for this at user level? If I sync rslight with a INN peer, only
>> the rslight peer is doing the synchronization of articles. Does INN have
>> the facility to do the inverse with a rslight peer?

> I am not aware of any feature of INN that allows it to act as a nnrpd client.
> That doesn't mean there is no such feature, just that I am not aware of it.

I had forgotten that I used to use 'pullnews' before ever starting on rslight.
I would sort of peer inn servers this way because I had no idea what I was 
doing :)

Anyway, pullnews will allow you to poll a nnrpd server and feed to another, and
it works quite reliably.

https://www.eyrie.org/~eagle/software/inn/docs/pullnews.html

I believe there are other programs that can do this or similar, but I have
not used them.

-- 
Retro Guy
Re: Onion peering between INN and Rocksolid Light
#322738
Author: Retro Guy
Date: Fri, 29 Sep 2023 10:55
31 lines
2359 bytes
Retro Guy wrote:

> On Thu, 28 Sep 2023 01:58:43 -0500
> Syber Shock <admin@sybershock.com> wrote:

>> snip

>> Firstly I need to know how, if possible, to configure INN to
>> synchronize via client authentication and client commands, without
>> respect to the kind of network transport.

See my previous message in this thread (pullnews).
 
>> Secondly I need ideas on how to configure INN to use multiple Tor
>> hidden onion services, and connect INN to unique remote onion services
>> on a per-peer basis.

Multiple instances of pullnews run from however you want (cron, systemd, 
whatever) should do this.

I also have a script provided to me by the co-creator of rocksolid.* that
makes it pretty simple to connect anything to a local port and have it
communicate with a remote .onion address. Just let me know if you'd like
a copy.

>> Please advise with concrete information.

My head is full of concrete, so not a problem.

-- 
Retro Guy
Re: Onion peering between INN and Rocksolid Light
#322741
Author: Julien ÉLIE
Date: Fri, 29 Sep 2023 16:21
14 lines
1895 bytes
Hi Retro Guy,

> Anyway, pullnews will allow you to poll a nnrpd server and feed to 
> another, and it works quite reliably.
> 
> https://www.eyrie.org/~eagle/software/inn/docs/pullnews.html

Yup!  Thanks to recent discussions in news.admin.peering which permitted 
to greatly improve pullnews and fix a few bugs.

-- 
Julien ÉLIE

« Quo vadis ? » (saint Jean)
Re: Onion peering between INN and Rocksolid Light
#322744
Author: Anonymous
Date: Fri, 29 Sep 2023 19:34
6 lines
1462 bytes
Not my intention to bore anybody (or entertain).
Just that I have used cron since forever, and never had reason to change.
Thought I might learn something.

-- 
Posted on Rocksolid Light
Re: Onion peering between INN and Rocksolid Light
#322830
Author: Billy G. (go-while)
Date: Tue, 10 Oct 2023 08:27
13 lines
1489 bytes
On 28.09.23 18:55, Ivo Gandolfo wrote:
> 
> If you want to test, my server have areally a TOR service active, but 
> experimental.
> 
> (to all other user's here: WARNING! it's experimental! service are not 
> garantuee at this time. If you want to test them, feel free, but 
> remember to report to my email any bug/malfunction you found!)

all incoming connections via tor to your inn2 instance appear as if they 
are coming from localhost.
localhost may have some more permissions than usual.
you know or secured this?
Re: Onion peering between INN and Rocksolid Light
#322838
Author: Retro Guy
Date: Tue, 10 Oct 2023 09:59
22 lines
2157 bytes
Billy G. (go-while) wrote:

> On 28.09.23 18:55, Ivo Gandolfo wrote:
>> 
>> If you want to test, my server have areally a TOR service active, but 
>> experimental.
>> 
>> (to all other user's here: WARNING! it's experimental! service are not 
>> garantuee at this time. If you want to test them, feel free, but 
>> remember to report to my email any bug/malfunction you found!)

> all incoming connections via tor to your inn2 instance appear as if they 
> are coming from localhost.
> localhost may have some more permissions than usual.
> you know or secured this?

That's an important point. I personally use a different ip address specifically
for incoming tor connections. All incoming tor connections get the same address,
but it's not localhost.

-- 
Retro Guy
Re: Onion peering between INN and Rocksolid Light
#322836
Author: Ivo Gandolfo
Date: Tue, 10 Oct 2023 11:10
22 lines
1919 bytes
On 10/10/2023 11:59, Retro Guy wrote:
>> all incoming connections via tor to your inn2 instance appear as if 
>> they are coming from localhost.
>> localhost may have some more permissions than usual.
>> you know or secured this?
> 
> That's an important point. I personally use a different ip address 
> specifically
> for incoming tor connections. All incoming tor connections get the same 
> address,
> but it's not localhost.
> 

Exactly. For example, I have set up a virtual ethernet interface with IP 
172.16.x.x, and the connections come from there, so I can do filtering 
and everything that follows.

Sincerely


-- 
Ivo Gandolfo
Re: Onion peering between INN and Rocksolid Light
#322841
Author: Billy G. (go-while)
Date: Tue, 10 Oct 2023 19:24
32 lines
2344 bytes
On 10.10.23 13:10, Ivo Gandolfo wrote:
> On 10/10/2023 11:59, Retro Guy wrote:
>>> all incoming connections via tor to your inn2 instance appear as if 
>>> they are coming from localhost.
>>> localhost may have some more permissions than usual.
>>> you know or secured this?
>>
>> That's an important point. I personally use a different ip address 
>> specifically
>> for incoming tor connections. All incoming tor connections get the 
>> same address,
>> but it's not localhost.
>>
> 
> Exactly. For example, I have set up a virtual ethernet interface with IP 
> 172.16.x.x, and the connections come from there, so I can do filtering 
> and everything that follows.
> 
> Sincerely
> 
> 

great! tor supports a source ip in config per peer/hidden service or 
globally? or you host tor on another vm/docker?

haproxy could work too i guess.
create a tcp frontend -> tcp backend with unique frontend ports and a 
uniq source address in backend part.
if both are on localhost, then one could use 127.10.10.10 as source ip.
every peer would need a front/back tuple for itself and tors hidden 
service would link to haproxy frontend:port, pointing to a backend which 
points to inn2:119. but if tor can have source ip, no need for haproxy.
Re: Onion peering between INN and Rocksolid Light
#322840
Author: Ivo Gandolfo
Date: Tue, 10 Oct 2023 20:42
40 lines
2439 bytes
On 10/10/2023 21:24, Billy G. (go-while) wrote:
> 
> great! tor supports a source ip in config per peer/hidden service or 
> globally? or you host tor on another vm/docker?
> 

Per peer/hs. I created TUN interface with systemd:

/etc/systemd/network/tor1.network

[Match]
Name=tor1

[Network]
Address=172.16.255.254/32

and on torrc:

HiddenServiceDir /var/lib/tor/news_paganini/
HiddenServicePort 119 172.16.255.254:119

Put into the HiddenDir the certificate, all done :)

> haproxy could work too i guess.
> create a tcp frontend -> tcp backend with unique frontend ports and a 
> uniq source address in backend part.
> if both are on localhost, then one could use 127.10.10.10 as source ip.
> every peer would need a front/back tuple for itself and tors hidden 
> service would link to haproxy frontend:port, pointing to a backend which 
> points to inn2:119. but if tor can have source ip, no need for haproxy.

I dont't like use 127.*, it's better a TUN service. But yes, I suppose 
it work.
You can try with docker just for testing.


Sincerely

-- 
Ivo Gandolfo
Re: Onion peering between INN and Rocksolid Light
#322844
Author: Billy G. (go-while)
Date: Wed, 11 Oct 2023 08:53
14 lines
1420 bytes
On 10.10.23 22:42, Ivo Gandolfo wrote:

> Per peer/hs. I created TUN interface with systemd:
> 
> 
> I dont't like use 127.*, it's better a TUN service. But yes, I suppose 
> it work.
> You can try with docker just for testing.
> 
> 
> Sincerely
> 

thank you
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