Skip to content

rusty-conduit v1.2.0

Choose a tag to compare

@github-actions github-actions released this 24 Nov 14:18
· 14 commits to main since this release

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 60s idle, then every 10s. The connection is closed after 5 unanswered 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_KEEPALIVE tcp_keepalive 60s (0 disables)
      --tcp-keepalive-interval <DURATION> RUSTY_CONDUIT_TCP_KEEPALIVE_INTERVAL tcp_keepalive_interval 10s
      --tcp-keepalive-retries <N> RUSTY_CONDUIT_TCP_KEEPALIVE_RETRIES tcp_keepalive_retries 5
    • Out-of-range values are rejected at startup with exit code 1 (durations 1s–32767s, retries 1–127). The startup config summary now shows the active setting, e.g. tcp_keepalive=1m/10sx5 or tcp_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.0

Available 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-missing

Documentation & Roadmap

Full Changelog: v1.1.0...v1.2.0