Repository navigation
rusty-conduit-ssh v1.1.0
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; envRUSTY_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-connectionsindependently from the forward proxy, supports optional HTTPS MITM with its own certificate cache, and drains cleanly on shutdown. - Defaults to
127.0.0.1on the SSH target and logs a security notice when bound to a non-loopback address.
- 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 (
- Destination Allowlist & Blocklist Filtering:
- Added mutually exclusive destination filters independently for the forward proxy (
--allow/--block,RUSTY_CONDUIT_SSH_ALLOW/RUSTY_CONDUIT_SSH_BLOCK, TOMLallow/block) and reverse proxy (--reverse-allow/--reverse-block,RUSTY_CONDUIT_SSH_REVERSE_ALLOW/RUSTY_CONDUIT_SSH_REVERSE_BLOCK, TOMLreverse.allow/reverse.block). - Matches IPv4/IPv6 addresses (including IPv4-mapped IPv6), CIDR subnets, exact FQDNs, and
*.domainsubdomain 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/16prevents remote clients from reaching your loopback or LAN). On the forward path, DNS remains remote-only. - Rejected requests return HTTP
403 Forbidden, SOCKS50x02(not_allowed), or SOCKS40x5B.
- Added mutually exclusive destination filters independently for the forward proxy (
- Access-Log Direction Tagging:
- Added
direction=forward(local → SSH target via-D) anddirection=reverse(SSH target → local via-R) to all HTTP (kind=http) and SOCKS (kind=socks) access log records in bothtext(logfmt) andjson(NDJSON) formats.
- Added
- Tests & Documentation:
- Added end-to-end integration tests for reverse proxying (
tests/reverse_proxy.rs) and destination filtering (tests/filter_proxy.rs), and updatedREADME.mdanddocs/USER-GUIDE.mdwith full reference tables, examples, and security notes (c7949fd).
- Added end-to-end integration tests for reverse proxying (
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-bastionAvailable 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-missingDocumentation
- Overview & quick start:
README.md - Full CLI, environment, TOML, SSH, reverse proxy, filtering, and MITM reference:
docs/USER-GUIDE.md
Full Changelog: v1.0.1...v1.1.0