Repository navigation
rusty-conduit v1.2.0
Feature release for rusty-conduit: adds TCP keepalive on client and upstream sockets, so long-silent connections (AI agents and harnesses waiting on a slow model response, idle SSH sessions over SOCKS, long polls) are no longer dropped by NAT gateways, firewalls, VPNs, or cloud load balancers.
What's Changed
- TCP Keepalive (on by default):
-
Once established, rusty-conduit connections have no idle or total-lifetime timeout. However, devices along the network path (NAT, stateful firewalls, OpenVPN servers, Docker/Kubernetes conntrack, cloud load balancers) silently expire connections that send no packets for a while. Keepalive probes now keep that state alive.
-
Enabled on every accepted client socket (HTTP, SOCKS, and multiplexed listeners) and every upstream connection (plain HTTP forwarding, HTTPS
CONNECT, HTTPS MITM, SOCKS4/4a/5). -
Defaults: first probe after
60sidle, then every10s. The connection is closed after5unanswered probes, so dead peers are detected ~110s after they vanish. -
Probes are empty TCP segments handled by the OS kernel. They are invisible to HTTP, TLS, SOCKS, and any tunneled protocol, and they don't interact with HTTP
Connection: keep-alive. -
Configurable via CLI, environment, or TOML:
CLI Flag Environment Variable TOML Key Default --tcp-keepalive <DURATION>RUSTY_CONDUIT_TCP_KEEPALIVEtcp_keepalive60s(0disables)--tcp-keepalive-interval <DURATION>RUSTY_CONDUIT_TCP_KEEPALIVE_INTERVALtcp_keepalive_interval10s--tcp-keepalive-retries <N>RUSTY_CONDUIT_TCP_KEEPALIVE_RETRIEStcp_keepalive_retries5 -
Out-of-range values are rejected at startup with exit code
1(durations1s–32767s, retries1–127). The startup config summary now shows the active setting, e.g.tcp_keepalive=1m/10sx5ortcp_keepalive=off. -
On platforms without per-socket interval/retry control, only the idle time is applied.
-
- Tests & Documentation:
- Added unit tests for config precedence, disabling, and validation, plus tests that read back the socket options on accepted and dialed sockets.
- New "Connection Lifetime & TCP Keepalive" section in
docs/USER-GUIDE-ADVANCED.md, including guidance for SSH over SOCKS (ServerAliveInterval) and VPN tunnel restarts (642506f).
Upgrade note: Keepalive is enabled by default. To restore v1.1.0 behavior exactly, pass
--tcp-keepalive 0.
Docker Image
# Publish to host loopback only (recommended — v1 has no proxy authentication)
docker run --rm \
-p 127.0.0.1:3128:3128 \
-p 127.0.0.1:1080:1080 \
ghcr.io/jpbaking/rusty-conduit:1.2.0Available tags: 1.2.0, 1.2, 1, latest (linux/amd64, linux/arm64).
Prebuilt Packages
Each archive includes the rusty-conduit binary, README.md, LICENSE (BSD-3-Clause), and docs/MITM-CA-GUIDE.md.
| Platform | Architecture | Package |
|---|---|---|
| Linux | x86_64 (amd64) |
rusty-conduit-v1.2.0-linux-amd64.tar.gz |
| Linux | ARM64 (arm64) |
rusty-conduit-v1.2.0-linux-arm64.tar.gz |
| macOS | Apple Silicon (arm64) |
rusty-conduit-v1.2.0-macos-arm64.tar.gz |
| macOS | Intel (amd64) |
rusty-conduit-v1.2.0-macos-amd64.tar.gz |
| Windows | x86_64 (amd64) |
rusty-conduit-v1.2.0-windows-amd64.zip |
| Windows | ARM64 (arm64) |
rusty-conduit-v1.2.0-windows-arm64.zip |
Verify downloads with SHA256SUMS.txt:
sha256sum -c SHA256SUMS.txt --ignore-missingDocumentation & Roadmap
- Overview & quick start:
README.md - Everyday setup & Docker usage:
docs/USER-GUIDE-BASIC.md - Full CLI/env/TOML & MITM reference:
docs/USER-GUIDE-ADVANCED.md - Footprint,
ulimit -n, and sizing:docs/PERFORMANCE-AND-SIZING.md - Creating and trusting a private MITM CA:
docs/MITM-CA-GUIDE.md - Post-v1 roadmap:
FUTURE-PLANS.md
Full Changelog: v1.1.0...v1.2.0