Skip to content

rusty-conduit-ssh v1.1.0

Choose a tag to compare

@github-actions github-actions released this 23 Nov 07:07
· 17 commits to main since this release

Feature release for rusty-conduit-ssh — adding an optional reverse proxy (ssh -R), destination allowlist/blocklist filtering for both forward and reverse paths, and direction tagging in HTTP and SOCKS access logs.


What's Changed

  • Optional Reverse Proxy (ssh -R):
    • Expose an HTTP/HTTPS and/or SOCKS4/4a/5 proxy on the SSH target over the same supervised SSH connection so clients on the remote host can egress through your machine (--reverse-bind, --reverse-http-port, --reverse-socks-port; env RUSTY_CONDUIT_SSH_REVERSE_*; TOML [reverse]).
    • Supports separate ports, first-byte protocol multiplexing when both reverse ports match, or reverse-only mode (--http-port 0 --socks-port 0).
    • Dials directly from the local machine (never looping back through ssh -D), keeps ephemeral local loopback listeners stable across reconnects, enforces --max-connections independently from the forward proxy, supports optional HTTPS MITM with its own certificate cache, and drains cleanly on shutdown.
    • Defaults to 127.0.0.1 on the SSH target and logs a security notice when bound to a non-loopback address.
  • Destination Allowlist & Blocklist Filtering:
    • Added mutually exclusive destination filters independently for the forward proxy (--allow / --block, RUSTY_CONDUIT_SSH_ALLOW / RUSTY_CONDUIT_SSH_BLOCK, TOML allow / block) and reverse proxy (--reverse-allow / --reverse-block, RUSTY_CONDUIT_SSH_REVERSE_ALLOW / RUSTY_CONDUIT_SSH_REVERSE_BLOCK, TOML reverse.allow / reverse.block).
    • Matches IPv4/IPv6 addresses (including IPv4-mapped IPv6), CIDR subnets, exact FQDNs, and *.domain subdomain wildcards; repeatable or comma-separated.
    • On the reverse path, hostnames are resolved locally before connecting so IP/CIDR rules also block DNS-to-loopback / DNS-rebinding bypasses (e.g., blocking 127.0.0.0/8,::1,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16 prevents remote clients from reaching your loopback or LAN). On the forward path, DNS remains remote-only.
    • Rejected requests return HTTP 403 Forbidden, SOCKS5 0x02 (not_allowed), or SOCKS4 0x5B.
  • Access-Log Direction Tagging:
    • Added direction=forward (local → SSH target via -D) and direction=reverse (SSH target → local via -R) to all HTTP (kind=http) and SOCKS (kind=socks) access log records in both text (logfmt) and json (NDJSON) formats.
  • Tests & Documentation:
    • Added end-to-end integration tests for reverse proxying (tests/reverse_proxy.rs) and destination filtering (tests/filter_proxy.rs), and updated README.md and docs/USER-GUIDE.md with full reference tables, examples, and security notes (c7949fd).

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 \
  -v ~/.ssh:/home/rusty-conduit-ssh/.ssh:ro \
  ghcr.io/jpbaking/rusty-conduit-ssh:1.1.0 my-bastion

Available tags: 1.1.0, 1.1, 1, latest (linux/amd64, linux/arm64).


Prebuilt Packages

Each archive includes the rusty-conduit-ssh binary, README.md, LICENSE (BSD-3-Clause), and docs/USER-GUIDE.md.

Platform Architecture Package
Linux x86_64 (amd64) rusty-conduit-ssh-v1.1.0-linux-amd64.tar.gz
Linux ARM64 (arm64) rusty-conduit-ssh-v1.1.0-linux-arm64.tar.gz
macOS Apple Silicon (arm64) rusty-conduit-ssh-v1.1.0-macos-arm64.tar.gz
macOS Intel (amd64) rusty-conduit-ssh-v1.1.0-macos-amd64.tar.gz
Windows x86_64 (amd64) rusty-conduit-ssh-v1.1.0-windows-amd64.zip
Windows ARM64 (arm64) rusty-conduit-ssh-v1.1.0-windows-arm64.zip

Verify downloads with SHA256SUMS.txt:

sha256sum -c SHA256SUMS.txt --ignore-missing

Documentation

Full Changelog: v1.0.1...v1.1.0