Article View: news.software.nntp
Article #92461Re: TOR config for INN to prevent DNS IP/hostname leakage
From: Billy G.
Date: Fri, 12 Sep 2025 20:46
Date: Fri, 12 Sep 2025 20:46
101 lines
4099 bytes
4099 bytes
On 12.09.25 11:27, Billy G. wrote: > On 11.09.25 21:54, Soul Patch wrote: >> It is just a matter of figuring out how. > > Setting up incoming "reader" connections via TOR hidden service is easy. > You only have to make sure they arrive via a local ip or interface that > works with ACL and is not 127.0.0.1. > this can be done with haproxy: > ``` haproxy.cfg > frontend nntp1563 > mode tcp > bind :::1119 > bind :::1563 ssl crt /etc/haproxy/fully.pem > default_backend local119b > > backend local119b > mode tcp > source 172.16.9.136 > server reader-nyc-vlan 172.16.9.136:119 maxconn 128 > ``` > EOF haproxy.cfg > > To get incoming peering working you'd have to setup unique hidden > services for every of your peers and route each of them to a unique > haproxy frontend port which maps to a unique backend with a unique > local/vlan as source ip or setting up incoming.conf will not work. > > Now figure out how to connect INNfeed via TOR socks to other peers, > where each of your peers needs it's own .onion address and haproxy setup > to have ACL/incoming.conf working > AI says: **Network-level transparent proxy** Set up iptables rules to redirect traffic: ```bash # Redirect innfeed traffic through a transparent proxy iptables -t nat -A OUTPUT -p tcp --dport 119 -j REDIRECT --to-port 8080 ``` OR **Using socat or ssh tunneling** Create local ports that forward through proxy: ```bash # SSH tunnel example ssh -L 11900:target-news-server:119 proxy-server OR **Using tsocks** Similar to proxychains but older: ```bash # Configure /etc/tsocks.conf server = 127.0.0.1 server_port = 9050 server_type = 5 # Run with tsocks tsocks innfeed -c /etc/news/innfeed.conf ``` OR **Using proxychains or proxychains-ng** This is probably the most straightforward method: ```bash # Install proxychains-ng sudo apt-get install proxychains-ng # Debian/Ubuntu sudo yum install proxychains-ng # RHEL/CentOS # Configure /etc/proxychains.conf [ProxyList] socks5 127.0.0.1 9050 # For Tor # or socks5 proxy.example.com 1080 # For other SOCKS5 proxies # Run innfeed through proxychains proxychains innfeed -c /etc/news/innfeed.conf ``` ## **Recommended approach:** For most use cases, **proxychains-ng** is the easiest and most reliable method. It works transparently with innfeed without requiring any changes to INN2 configuration. The key is to modify your INN2 startup scripts to launch innfeed through the proxy wrapper instead of directly. You'll need to update `/etc/news/newsfeeds` or your init scripts accordingly. Would you like me to elaborate on any of these approaches or help with specific configuration details? -- ...... 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:
<10a20qo$2dnnn$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-lux.newsdeef.eu!lux-feed1.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>Show Full Headers
Complete Article Headers
Message-ID: <10a20qo$2dnnn$1@reader-nyc.newsdeef.eu> Subject: Re: TOR config for INN to prevent DNS IP/hostname leakage Date: Fri, 12 Sep 2025 21:46:16 +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> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.pugleaf.net!ygg-lux.newsdeef.eu!lux-feed1.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: Fri, 12 Sep 2025 20:46:17 -0000 (UTC) Injection-Info: reader-nyc.newsdeef.eu; posting-account="sys-operator"; logging-data="2547447"; mail-complaints-to="abuse@newsdeef.eu"; posting-account="ggUZJXmrQBoB7mitoXQwdxqeYYnnDS0Ezkz+dO8ak5E"; In-Reply-To: <10a0si3$2co9p$1@reader-nyc.newsdeef.eu> Content-Language: en-US