🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #92466

Re: TOR config for INN to prevent DNS IP/hostname leakage

#92466
From: Soul Patch
Date: Sat, 13 Sep 2025 02:22
27 lines
2843 bytes
On Fri, 12 Sep 2025 21:53:57 +0100
"Billy G." <contact-5c2e-000@pugleaf.net> wrote:

> On 12.09.25 21:46, Billy G. wrote:
> > AI says:
> > ...  
> 
> Hit send but missed some text.
> 
> - iptables won't work: TOR is not a transparent proxy.
> ~ socat: no idea, try it
> + tsocks / pchains: run innfeed via any might be worth a try

I think AI is unable to grok that there are four ports and an extra PREROUTE directive at play:

innd <incoming preroute> [tor hidden service port]
innd <incoming re-route> [port 119]
innd <outgoing preroute> [tor socks proxy]
nnrpd <incoming>         [reader port]

To do the traffic shaping there are probably many possible methods, like the haproxy example. And there are other tricks with firewall directives on purpose-built network interfaces bound to different ports. Everything I have seen so far is very convoluted so I am going to keep experimenting from time to time until I can get the convolution down to a mentally tractible level. When I finally get to the point of making a wizard script I want it to be simple enough that others can maintain and fork it and also so it doesn't break when dependencies are updated.

I was thinking about emailing the maintainer at ISC to see what they think about the possibility of patching INN2 to understand this kind of stuff at the config level. Or maybe I can eventually piece together a decent wizard script that they might include. I don't want to push something until I've tinkered much with it and am fairly certain it will be stable for future package upgrades.

-- 
Soul Patch
Technical Details
Message-ID: <10a2kf2$1m1fh$3@paganini.bofh.team>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.pugleaf.net!ygg-srl.newsdeef.eu!srl.newsdeef.eu!newsfeed.bofh.team!paganini.bofh.team!tor-network!not-for-mail
References: <109teo9$139dq$1@paganini.bofh.team> <109u8af$2afb2$1@reader-nyc.newsdeef.eu> <109vcqa$16jqr$1@paganini.bofh.team> <10a0si3$2co9p$1@reader-nyc.newsdeef.eu> <10a20qo$2dnnn$1@reader-nyc.newsdeef.eu> <10a219a$2do5f$1@reader-nyc.newsdeef.eu>

Show Full Headers
Complete Article Headers
Message-ID: <10a2kf2$1m1fh$3@paganini.bofh.team>
Subject: Re: TOR config for INN to prevent DNS IP/hostname leakage
Date: Fri, 12 Sep 2025 21:22:44 -0500
From: Soul Patch <soul.patch@127.0.0.1>
References: <109teo9$139dq$1@paganini.bofh.team> <109u8af$2afb2$1@reader-nyc.newsdeef.eu> <109vcqa$16jqr$1@paganini.bofh.team> <10a0si3$2co9p$1@reader-nyc.newsdeef.eu> <10a20qo$2dnnn$1@reader-nyc.newsdeef.eu> <10a219a$2do5f$1@reader-nyc.newsdeef.eu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.pugleaf.net!ygg-srl.newsdeef.eu!srl.newsdeef.eu!newsfeed.bofh.team!paganini.bofh.team!tor-network!not-for-mail
Newsgroups: news.software.nntp
Organization: To protect and to server
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 13 Sep 2025 02:21:22 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="1770993"; posting-host="vHZbniadmvagnl3zgXaZ5Q.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
X-TOR-Router: sha256:MTc2LjY1LjE0OS44NA== --
X-Notice: Filtered by postfilter v. 0.9.3