Article View: news.software.nntp
Article #92467Re: TOR config for INN to prevent DNS IP/hostname leakage
From: Billy G.
Date: Sat, 13 Sep 2025 11:32
Date: Sat, 13 Sep 2025 11:32
77 lines
3872 bytes
3872 bytes
> fetch https://github.com/InterNetNews/inn.git and check innfeed code
> /inn/refs/heads/main/innfeed
> do you see any calls that could bypass the proxy?
### **Main Connection Path (connection.c)**:
1. **`network_client_create()` (line 514)** - INN2 library wrapper that
calls:
- `socket()` (network.c:644)
- `network_source()` for binding to source address
2. **`connect()` (line 535)** - Direct system call:
```c
rval = connect(fd, cxnAddr, len);
if (rval < 0 && errno != EINPROGRESS) {
syswarn("%s:%u connect", peerName, cxn->ident);
hostIpFailed(cxn->myHost);
close(fd);
cxnSleepOrDie(cxn);
return false;
}
```
3. **`getsockopt()` (line 1198)** - For error checking after connect
4. **`getpeername()` (line 1251)** - For IPv6 detection after connection
### **Alternative IMAP Connection Path (imap_connection.c)**:
Found additional direct network calls in IMAP functionality:
- **`connect()` (line 1538)** - Direct system call for IMAP connections
- **`getpeername()` (line 1416)** - For connection info
### **Library Functions (network.c)**:
The `network_client_create()` and `network_connect()` functions are
wrappers that ultimately call:
- `socket()` - Creates the socket
- `connect()` - Establishes connection (lines 572, 575)
## **✅ Updated Assessment for Proxy Compatibility:**
**EXCELLENT NEWS**: INN2 innfeed uses **standard POSIX network calls**
that proxychains/tsocks can intercept:
1. **`socket()`** - ✅ Interceptable
2. **`connect()`** - ✅ Interceptable (main target for proxy redirection)
3. **`getsockopt()`** - ✅ Safe (error checking only)
4. **`getpeername()`** - ⚠️ May return proxy info (cosmetic issue)
**No bypass risks found!**
The code uses standard Berkeley sockets API throughout.
## **Final Recommendation:**
**Proxychains/tsocks should work perfectly** with innfeed because:
- All network connections go through standard `socket()` + `connect()` calls
- No custom networking or raw sockets
- No DNS resolution bypasses
- Library wrappers still use interceptable system calls
Test command:
```bash
proxychains -f /etc/proxychains.conf /usr/lib/news/bin/innfeed -c
/etc/news/innfeed.conf
```
The only cosmetic issue will be that logs might show proxy IPs instead
of real destination IPs due to `getpeername()`, but functionality will
be preserved.
--
......
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:
<10a3kos$2f7v2$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> <10a20qo$2dnnn$1@reader-nyc.newsdeef.eu> <10a219a$2do5f$1@reader-nyc.newsdeef.eu> <10a2kf2$1m1fh$3@paganini.bofh.team> <10a3gci$2f2l7$1@reader-nyc.newsdeef.eu>Show Full Headers
Complete Article Headers
Message-ID: <10a3kos$2f7v2$1@reader-nyc.newsdeef.eu> Subject: Re: TOR config for INN to prevent DNS IP/hostname leakage Date: Sat, 13 Sep 2025 12:32:38 +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> <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-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: 8bit Injection-Date: Sat, 13 Sep 2025 11:32:44 -0000 (UTC) Injection-Info: reader-nyc.newsdeef.eu; posting-account="sys-operator"; logging-data="2596834"; mail-complaints-to="abuse@newsdeef.eu"; posting-account="ggUZJXmrQBoB7mitoXQwdxqeYYnnDS0Ezkz+dO8ak5E"; In-Reply-To: <10a3gci$2f2l7$1@reader-nyc.newsdeef.eu> Content-Language: en-US