🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #89340

Re: Usenet peering over Tor

#89340
From: Retro Guy
Date: Wed, 18 May 2022 09:12
44 lines
3045 bytes
Jason Evans wrote:

> I would like to know if anyone here has been experimenting with server to 
> server peering over Tor. 

> From my experience with running Tor onion services, it's quite easy to set up a 
> server that can receive traffic over Tor. However sending traffic over Tor is 
> another issue. It requires either setting up system proxies for outgoing 
> traffic or wrapping the INN binaries in the torsocks application.

> If you've been working on this or are interested in working on this, please 
> reply or shoot me an email.

I have done this and it works fine. My previous partner in this project (rocksolid), trw, wrote a script to handle peering over tor and it works well. I'll post the script below. If you want to test, I'll be happy to test with you. Again, credit to trw for the script.

#!/bin/bash

# wrapper script for socat
# if socat crashes, which it likes to do, we wait for 120 s, and then restart the command
# waiting is neccessary because the port used by socat is not immediatly freed after the crash
# edit the variables below to control the behaviour of the socat command

localport="50119"
# the local port you want socat to listen on
proxyport="9050"
# the port of the proxy used (tor socks proxy)
proxyip="127.0.0.1"
# the ip on which the proxy is running
onion="localonionaddress.onion"
# the onion address of the hidden service you want to connect to
onionport="119"
# the port of the hidden service you want to connect to

while true
# enter eternal loop here
        do
                socat TCP4-LISTEN:"$localport",reuseaddr,fork SOCKS4A:"$proxyip":"$onion":"$onionport",socksport="$proxyport"
                sleep 120
        done
exit 0
# this line should never be reached, but just in case we close properly

-- 
Retro Guy
Technical Details
Message-ID: <04d569cad213f99655ed8364caeb11b7@news.novabbs.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <t60624$94k$1@dont-email.me>

Show Full Headers
Complete Article Headers
Message-ID: <04d569cad213f99655ed8364caeb11b7@news.novabbs.org>
Subject: Re: Usenet peering over Tor
Date: Wed, 18 May 2022 09:12:42 +0000
From: retro.guy@rocksolidbbs.com (Retro Guy)
References: <t60624$94k$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: news.software.nntp
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="19613"; 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$WW9tyvCSs7na4cOMU0F7qOu9vyo6bDKiYOmH4VcxFadzp4yuFeZcK
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|