🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.privacy.anon-server
2 messages
2 total messages Started by Billy G. Thu, 18 Sep 2025 10:22
tcp2tor
#331309
Author: Billy G.
Date: Thu, 18 Sep 2025 10:22
47 lines
2693 bytes
// tcp2tor - General TCP proxy tool for go-pugleaf
// This tool creates a local TCP listener that forwards raw TCP
connections through a SOCKS5 proxy

https://github.com/go-while/go-pugleaf/tree/testing-001/cmd/tcp2tor

./tcp2tor -target
peannyjkqwqfynd24p6dszvtchkq7hfkwymi5by5y332wmosy5dwfaqd.onion:119
-listen-host 127.2.3.4 -listen-port 11119

2025/09/18 01:27:02 Starting tcp2tor (version dev-20250918)
2025/09/18 01:27:02 Configuration:
2025/09/18 01:27:02   Listen: 127.2.3.4:11119
2025/09/18 01:27:02   Target:
peannyjkqwqfynd24p6dszvtchkq7hfkwymi5by5y332wmosy5dwfaqd.onion:119
2025/09/18 01:27:02   SOCKS5 Proxy: 127.0.0.1:9050
2025/09/18 01:27:02   Timeout: 30 seconds
2025/09/18 01:27:02 ✓ SOCKS5 proxy connection test successful
2025/09/18 01:27:02 tcp2tor proxy listening on 127.2.3.4:11119
2025/09/18 01:27:02 Forwarding connections to
peannyjkqwqfynd24p6dszvtchkq7hfkwymi5by5y332wmosy5dwfaqd.onion:119
through SOCKS5 proxy 127.0.0.1:9050

telnet 127.2.3.4 11119
Trying 127.2.3.4...
Connected to 127.2.3.4.
Escape character is '^]'.
200 news.tcpreset.net InterNetNews server INN 2.6.4 ready (transit mode)
quit
205 Bye!
Connection closed by foreign host.

testing executable (LINUX x86_64):
https://reader-nyc.newsdeef.eu/storage/tcp2tor
https://reader-nyc.newsdeef.eu/storage/tcp2tor.sha256
sha256: 5fb1f9e10e7042d3baa264ac6086a9a00f07d95d50ed21bfd4cf1b6677c3d035
bytes: 2412836 (du -b tcp2tor)

https://web.archive.org/web/20250918013736/https://reader-nyc.newsdeef.eu/storage/tcp2tor

-- 
......
Billy G. (go-while)
https://pugleaf.net
@Newsgroup: rocksolid.nodes.help
irc.pugleaf.net:6697 (SSL) #lounge
discord: https://discord.gg/rh2tGMJWwV
Re: tcp2tor build in go-pugleaf v0.4.7-1
#331403
Author: Billy G.
Date: Sat, 20 Sep 2025 14:32
81 lines
4087 bytes
On 18.09.25, Billy G. wrote:
> // tcp2tor - General TCP proxy tool for go-pugleaf
> // This tool creates a local TCP listener that forwards raw TCP
> connections through a SOCKS5 proxy
> 

Automated release build:
no changes in tcp2tor source code since previous testing release
but compiled with debug symbols and not stripped nor trimmed
+ https://github.com/go-while/go-pugleaf/releases/tag/v0.4.7-1

tcp2tor source (main.go) & build script:
+ https://github.com/go-while/go-pugleaf/tree/main/cmd/tcp2tor

main.go
sha256: cc4e0df954102b0af622d4baa04f3fda6cc7f40d9adf72cb453f1b4397d5b8bf
+
https://web.archive.org/web/20250920142611/https://raw.githubusercontent.com/go-while/go-pugleaf/refs/heads/main/cmd/tcp2tor/main.go

Stick to "main" branch for building.
use go 1.25.1 or later.
:~# go build -trimpath -ldflags "-w -s -X main.appVersion=0" -o tcp2tor

I'll add unstable patches to testing-001 branch like:
 - configs to setup more listener targets
 - debug output, counter, rate limits
 - client authorization if possible
 - a simple local web interface


extracted executables:
+ https://pugleaf.net/storage/go-pugleaf/v0.4.7-1/

tcp2tor linux-amd64:
3594953 Bytes
sha256: 712069845bccc98c4fa88a32c5a8de32e888469e23646ca80f73899b2d45f98f
+ https://pugleaf.net/storage/go-pugleaf/v0.4.7-1/linux-amd64/build/tcp2tor
+
https://web.archive.org/web/20250920131827/https://pugleaf.net/storage/go-pugleaf/v0.4.7-1/linux-amd64/build/tcp2tor


tcp2tor linux-arm64:
3448025 Bytes
sha256: d6008addc7b3be126d40ed9aeaa1a691f7e00662fa39e54f1aa49e115c232b93
+ https://pugleaf.net/storage/go-pugleaf/v0.4.7-1/linux-arm64/build/tcp2tor
+
https://web.archive.org/web/20250920131945/https://pugleaf.net/storage/go-pugleaf/v0.4.7-1/linux-arm64/build/tcp2tor


tcp2tor darwin-amd64:
3628192 Bytes
sha256: 8f5eb315c90aa21b7d740594085557c51bf8192a6981209258e2af29ffb6a620
+ https://pugleaf.net/storage/go-pugleaf/v0.4.7-1/darwin-amd64/build/tcp2tor
+
https://web.archive.org/web/20250920131451/https://pugleaf.net/storage/go-pugleaf/v0.4.7-1/darwin-amd64/build/tcp2tor


tcp2tor darwin-arm64:
3553266 Bytes
sha256: 64da2af1866615cf1efc535b14ca4bf32cec0f07a750e09677946fe01525f403
+ https://pugleaf.net/storage/go-pugleaf/v0.4.7-1/darwin-arm64/build/tcp2tor
+
https://web.archive.org/web/20250920131714/https://pugleaf.net/storage/go-pugleaf/v0.4.7-1/darwin-arm64/build/tcp2tor


tcp2tor windows-amd64:
3641344 Bytes
sha256: 83dbbd1ba006a8e960fb77e8967c1b4ec76ffc1194a2b4c0de6f198aad613c1a
+
https://pugleaf.net/storage/go-pugleaf/v0.4.7-1/windows-amd64/build/tcp2tor.exe
+
https://web.archive.org/web/20250920131253/https://pugleaf.net/storage/go-pugleaf/v0.4.7-1/windows-amd64/build/tcp2tor.exe


-- 
......
Billy G. (go-while)
https://pugleaf.net
@Newsgroup: rocksolid.nodes.help
irc.pugleaf.net:6697 (SSL) #lounge
TOR-IRC: ij7fmstcudrwyty5p6iloodeenur4wksovlhbyrfubat7eixplmrxvqd.onion:6667
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads