Article View: news.software.nntp
Article #92465Re: TOR config for INN to prevent DNS IP/hostname leakage
From: Billy G.
Date: Sat, 13 Sep 2025 10:17
Date: Sat, 13 Sep 2025 10:17
94 lines
3925 bytes
3925 bytes
On 13.09.25 03:22, Soul Patch wrote:
>
> 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]
>
no idea what you're talking about with four ports.
the incoming reader connection is already solved.
missing is the outgoing feeder connection to an onion address.
if an outgoing feed connects via TOR.onion...
the remote incoming ACL needs own local/vlan ips as source.
haproxy works. I have it running for incoming readers.
as source you can use any of 127.0.0.0/8 but idealy not .1.
instead of an interface with a real network ip
or: ip addr add 100.99.12.34/24 dev lo and use this as source?
if TOR allows setting the source-ip directly on the hidden service where
the port gets mapped we could avoid socat/haproxy but I don't know.
claude provided this simple idea below.
outgoing feeds to any clearnet server would no longer work this way.
I have no time to test this weekend. maybe next week(end).
>>> the idea:
innfeed is started in INN2. Looking at your `/etc/news/newsfeeds` entry:
```
# innfeed funnel master.
innfeed!\
:!*\
:Tc,Wnm*:/usr/lib/news/bin/innfeed
```
This is the **funnel master** entry that tells `innd` how to start
innfeed. The key part is:
- `Tc,Wnm*` - flags for the feed type
- `:/usr/lib/news/bin/innfeed` - the actual command to execute
## To add proxy support via proxychains:
You'd modify this line to:
```
# innfeed funnel master with proxy support
innfeed!\
:!*\
:Tc,Wnm*:/usr/bin/proxychains /usr/lib/news/bin/innfeed
```
## Or with environment variables:
```
# innfeed funnel master with proxy via env vars
innfeed!\
:!*\
:Tc,Wnm*:/bin/sh -c "LD_PRELOAD=/usr/lib/libproxychains.so.4
/usr/lib/news/bin/innfeed"
```
## Alternative approach - wrapper script:
Create `/usr/local/bin/innfeed-proxy`:
```bash
#!/bin/bash
exec proxychains /usr/lib/news/bin/innfeed "$@"
```
Then modify newsfeeds:
```
innfeed!\
:!*\
:Tc,Wnm*:/usr/local/bin/innfeed-proxy
```
After modifying `/etc/news/newsfeeds`, you need to:
1. Run `ctlinnd reload newsfeeds 'Added proxy support'`
2. Or restart innd
This way, every time innd spawns innfeed, it will automatically go
through your proxy configuration.
--
......
Billy G. (go-while)
https://pugleaf.net
@Newsgroup: rocksolid.nodes.help
irc.pugleaf.net:6697 (SSL) #lounge
discord: https://discord.gg/rh2tGMJWwV
Technical Details
Message-ID:
<10a3gci$2f2l7$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!reader-nyc.newsdeef.eu!.POSTED!not-for-mailReferences:
<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> <10a2kf2$1m1fh$3@paganini.bofh.team>Show Full Headers
Complete Article Headers
Message-ID: <10a3gci$2f2l7$1@reader-nyc.newsdeef.eu> Subject: Re: TOR config for INN to prevent DNS IP/hostname leakage Date: Sat, 13 Sep 2025 11:17:55 +0100 From: "Billy G." <contact-5c2e-000@pugleaf.net> 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> <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!reader-nyc.newsdeef.eu!.POSTED!not-for-mail Newsgroups: news.software.nntp Organization: github.com/go-while MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Date: Sat, 13 Sep 2025 10:17:55 -0000 (UTC) Injection-Info: reader-nyc.newsdeef.eu; posting-account="sys-operator"; logging-data="2591399"; mail-complaints-to="abuse@newsdeef.eu"; posting-account="ggUZJXmrQBoB7mitoXQwdxqeYYnnDS0Ezkz+dO8ak5E"; In-Reply-To: <10a2kf2$1m1fh$3@paganini.bofh.team> Content-Language: en-US