Skip to content

Releases

v1.13.0

v1.13.0 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 11 Oct 13:18
5ee6c74

Chisel 1.13.0 is a prerelease adding SOCKS5 UDP ASSOCIATE through the new
opt-in udpsocks remote type, addressing #189.

SOCKS5 UDP support

  • 1080:udpsocks serves TCP CONNECT and UDP ASSOCIATE on the client.
  • R:1080:udpsocks serves the same commands on the server, with traffic
    exiting through the client.
  • TCP and UDP bind the same configured interface and port. The exposed UDP
    relay does not allocate a random port for each association. Bare udpsocks
    defaults to 127.0.0.1:1080.
  • UDP traffic travels through the encrypted tunnel, with destination DNS
    resolved at the exit. Replies retain their actual source IP and port;
    outgoing source ports remain stable across destination changes, supporting
    protocols such as TFTP.
  • Existing SOCKS permissions apply. Forward mode needs server --socks5;
    reverse mode needs server --reverse.

Upgrade both peers to use UDP ASSOCIATE. Existing socks remotes remain
TCP-only. UDP-capable applications must support SOCKS5 UDP ASSOCIATE and keep
its TCP control connection open. SOCKS BIND and UDP fragmentation are unsupported.

Defaults are 100 associations per listener, 100 destinations per association,
a 15-second destination idle timeout, and 9,012-byte packets including the
SOCKS UDP header. Operating-system UDP limits also apply; macOS's default
9,216-byte send limit accommodates Chisel's default packet size.

See the user guide
for setup, authentication, firewall rules, application examples, and limits.

Other fixes

  • Restrict reverse UDP replies to registered return peers, bound peer state,
    and expire idle peers rather than forwarding packets to arbitrary endpoints.

Validation and performance

Builds and tests pass on Ubuntu, macOS, and Windows. Linux validation also
includes the full race-enabled suite, third-party client interoperability,
resource-limit boundaries, two-block TFTP exchanges, and overload recovery.

In three loopback benchmark runs with 1,200-byte payloads and sixteen clients,
forward UDP delivered 17.17 MB/s (137.4 Mbps) and reverse UDP delivered
16.88 MB/s (135.0 Mbps), with zero loss in all runs. These are local workload
measurements, not WAN throughput guarantees. See the
performance report
for methodology, larger-packet results, overload behavior, and reproduction.

This release is marked prerelease. GitHub's latest stable release and the
Docker latest, 1, and 1.12 tags remain on the existing stable version.
Use the versioned jpillora/chisel:1.13.0 or ghcr.io/jpillora/chisel:1.13.0
image to try it.

v1.12.0

Choose a tag to compare

@github-actions github-actions released this 29 Aug 13:30
fe4f4fe

Chisel 1.12.0 is a reliability and security release focused on recovering
cleanly from network and configuration changes, making failures visible, and
hardening unauthenticated surfaces.

This stable release follows three public release candidates. No 1.12-specific
runtime regressions were reported after rc3. The archive corruption reported
for rc1 was fixed in rc2; release CI now integrity-tests every .gz and
.zip before any asset or image is published.

Highlights

  • Fixes the high-CPU failure after disconnected SSH sessions by updating
    x/crypto/ssh, bounding keepalive requests, and closing dead connections
    promptly (#608).
  • Makes authfile reloads reliable across editor renames and Kubernetes
    ConfigMap swaps. ACL changes apply to new tunnels without interrupting
    established tunnels.
  • Propagates TCP half-close through tunnels, rejects unreachable targets
    instead of presenting dead connections, and recovers UDP exit nodes after
    reaching their flow limit.
  • Adds graceful SIGTERM shutdown with HTTP request draining, safer retry
    behavior, configurable retry intervals, and socks5:// client proxy URLs.
  • Caps pre-authentication WebSocket messages while preserving every valid SSH
    packet, validates auth strings, safely quotes untrusted usernames in logs,
    and requires full fingerprints instead of accepting truncated legacy MD5
    prefixes.
  • Updates x/crypto/ssh to v0.55.0 to address
    GO-2026-6303, with release binaries
    built using Go 1.27.0.
  • Reports real versions for go install builds and adds useful info-level
    session, authentication, and ACL-denial logs.
  • Migrates CLI parsing and help output to opts, including terminal-aware
    formatting and reliable wrapping at narrow widths.
  • Ships verified archives and packages plus ko-built, scratch-based images
    with CA roots for six architectures on Docker Hub and GHCR. Publishing the
    draft release promotes latest, 1, and 1.12 without rebuilding them.

Upgrading from 1.11.x

Four changes may require action:

  1. With --socks5 and --authfile, users who should retain SOCKS5 access need
    an authfile entry matching socks. The wildcard "" continues to match
    everything.
  2. --fingerprint must use the full SHA256 fingerprint, or the full deprecated
    16-octet MD5 colon form. Truncated MD5 prefixes are rejected.
  3. --auth values must use <user>:<pass>; values without a colon now fail at
    startup instead of silently disabling authentication.
  4. A client that exhausts --max-retry-count exits non-zero. Cancellation and
    normal signal-driven shutdown still exit successfully.

The wire protocol remains chisel-v3. Mixed 1.11.x/1.12 deployments continue
to work, with new behavior degrading to the older peer's capabilities.

See Upgrading to 1.12 for
configuration details and the
full 1.12 review
for the complete compatibility analysis.

v1.12.0-rc3

v1.12.0-rc3 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 08 Aug 14:35
c408126

Changelog

v1.12.0-rc2

v1.12.0-rc2 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 18 Jul 14:28
016edaa

Supersedes v1.12.0-rc1, whose linux_amd64.gz and darwin_amd64.gz assets were corrupted by a goreleaser v2.12.7 packaging bug (#610). No chisel code changes — rebuilt with goreleaser v2.17.0, and CI now integrity-tests every archive before a release can ship. All 28 rc2 archives verified.

Release candidate — soaking for community testing before 1.12 becomes latest. Please try it and report anything odd in #610.

Try it:

  • One-line install: curl "https://i.jpillora.com/jpillora/chisel@v1.12.0-rc2!" | bash
  • Docker: docker pull jpillora/chisel:1.12.0-rc2 (or ghcr.io/jpillora/chisel:1.12.0-rc2)
  • Binaries/packages: assets below

Upgrading from 1.11.x? Read the Upgrading to 1.12 README section. What follows is from 1.12-changes.md, the verified UX & compatibility review of this line.


1. Breaking changes for existing users

a. SOCKS + --authfile — already on master, branch adds the missing docs

Enforcement (UserAddr() → "socks", channel-level ACL gate) shipped in v1.11.7 (927abde), so branch-vs-master this is not a new break — but today's released chisel has an undocumented breaking change: its README/--help say nothing about the socks token. The branch fixes that in five places (server help, client help, README auth section, SOCKS guide, 1.12 changelog) including the migration line "existing authfiles which should allow SOCKS5 must add an entry matching socks". This documentation is arguably the most valuable UX content on the branch.

The original review flagged a diagnosability gap here: a denied user's server-side trace was Debugf("Denied connection to socks (ACL)"), invisible without -v, making "socks stopped working after upgrade" the #1 anticipated support ticket. This is now fixed — commit 3c66f9b raised it to Infof("Denied connection to %s (ACL)", hostPort) (share/tunnel/tunnel_out_ssh.go:57), so operators see socks ACL denials at the default log level.

b. Truncated legacy MD5 fingerprints rejected — branch-new, loud

Master's verifyLegacyFingerprint used strings.HasPrefix, so --fingerprint a5:b3 matched any key with that MD5 prefix (~1-in-65k spoof risk). The branch requires the full 16-octet colon form (client/client.go:248). Affected users fail loudly at connect with Invalid fingerprint (...), and the preceding info line helpfully prints the correct SHA256 fingerprint to migrate to. SHA256 fingerprints were always exact-match — only MD5 stragglers with shorthand configs are affected. Documented in README Security, and the 1.12 changelog now lists it as breaking (added in c4038c3).

c. --auth without a colon is now a fatal startup error — branch-new, loud

On master, --auth nocolon silently degraded (server: user never registered → effectively no auth; client: empty credentials). That's a security footgun, and the branch turns it into invalid auth string, expected <user>:<pass> at startup on both sides. Anyone hit by this was already running something other than what they believed. Documented in README, and the 1.12 changelog now lists it as breaking (added in c4038c3).

d. Exit code on --max-retry-count exhaustion: 0 → non-zero — branch-new, silent for automation

client_connect.go now returns connection attempts exhausted on give-up (ctx-cancel/Ctrl-C still exits 0). Correct behavior, but it's the one change scripts and Restart=on-failure units experience with no error message to notice — the semantics of $? just flip. It is in the 1.12 changelog, which is the right mitigation.


2. Quiet behavior changes (non-breaking, but observable)

  • Reconnect pacing: backoff floor moves 100ms → 1s (new --min-retry-interval). Softer thundering-herd on server restarts; individual reconnects marginally slower.
  • Dead connections actually die: pings now time out (CHISEL_PING_TIMEOUT, default = keepalive interval, so ~50s at defaults vs 15–60 min of kernel retransmit limbo on master). Sleep/wake and NAT-timeout hangs become visible reconnects in logs. Old peers reply to pings, so mixed versions are fine.
  • Honest connect failures: exit-side dial now happens before channel accept (CHISEL_DIAL_TIMEOUT 30s). Apps see "connection refused/timeout" instead of master's instant-success-then-EOF. Strictly better UX, but tools that measured "connect success" will notice.
  • Half-close propagation: shutdown(SHUT_WR) traverses the tunnel (share/cio/pipe.go), fixing netcat-style pipelines and rsync. Falls back to full-close against old peers — no hangs, just old behavior.
  • SIGTERM is graceful: first signal drains (HTTP drain CHISEL_SHUTDOWN_GRACE 5s, under docker's 10s default), second forces exit. Master died instantly on SIGTERM.
  • New info-level logs: session Open (user=… addr=… remotes=…) / Close (… duration=…) and Login failed for user X (ip) — failed logins are finally fail2ban-able. Two side effects: log parsers keyed on the old debug Closed connection need updating, and tunnel endpoints now appear in default-level logs (mild privacy consideration for shipped logs).
  • Authfile reloads actually work: the watcher survives vim renames, truncation, and k8s ConfigMap symlink swaps, with 100ms debounce; ACLs re-resolve per new channel; the --auth user is pinned across reloads and wins name clashes; removed users lose new tunnels but established ones aren't cut (documented). Operators who habitually restart after edits will find edits now apply live.
  • Unanchored ACL patterns warn at every load, per pattern, unsuppressible. Common .*-style files keep working but get noisy — the warning is doing its job, since unanchored patterns really do over-match.
  • WS read cap 64KB pre-auth (CHISEL_WS_READ_LIMIT, 0 disables) on both sides. Max legit SSH packet is ~35KB, so ~2× headroom; the only tail risk is a pathological config payload (thousands of remotes on one client), and the env knob is the escape hatch.
  • UDP at the flow cap: master permanently blackholed flows past 100; branch sweeps idle over-cap flows (CHISEL_UDP_DEADLINE 15s), so DNS-heavy exit nodes recover instead of wedging.
  • Nicer failure edges: partial BindRemotes failure now unbinds earlier listeners (no zombie ports); bad --keyfile errors no longer echo raw key material into logs; go install builds report real versions; 3000/UDP uppercase now parses.

3. Library consumers (Go API)

No compile-breaking signature changes in client, server, or share/.... Additive: client.Config.MinRetryInterval, Client.Ready(ctx), Tunnel.Ready, UserIndex.PinUser. Behavioral: NewServer returns errors where master called log.Fatal inside (a win for embedders), Remote.UserAddr() returns "socks" for forward-socks, L4Proto lowercases — only code depending on those exact outputs would notice.


4. Mixed-version deployments

Protocol string is unchanged (chisel-v3), and no handshake changes were found.

  • v1.11.x client ↔ 1.12 server: works. Socks ACL is server-side and already live since v1.11.7; WS cap and ping timeout are old-peer-safe.
  • 1.12 client ↔ v1.11.x server: works, degrading gracefully — no half-close benefit, no dial propagation, no server-side changes; socks5:// proxy scheme is client-local.

Changelog

  • e588d21 1.12: reliability & security pass (#609) — 34 commits, browsable on the PR

v1.12.0-rc1

v1.12.0-rc1 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 17 Jul 22:51
e588d21

⚠️ Superseded by v1.12.0-rc2 — the linux_amd64.gz and darwin_amd64.gz assets below are corrupted (goreleaser v2.12.7 packaging bug, #610); their checksums match because the corruption happened at build time. All other assets and the Docker images are intact, but please use rc2 (identical chisel code, rebuilt + integrity-verified assets).

Release candidate — soaking for community testing before 1.12 becomes latest. Please try it and report anything odd in #610.

Try it:

  • One-line install: curl "https://i.jpillora.com/jpillora/chisel@v1.12.0-rc1!" | bash
  • Docker: docker pull jpillora/chisel:1.12.0-rc1 (or ghcr.io/jpillora/chisel:1.12.0-rc1)
  • Binaries/packages: assets below

Upgrading from 1.11.x? Read the Upgrading to 1.12 README section. What follows is from 1.12-changes.md, the verified UX & compatibility review of this line.


1. Breaking changes for existing users

a. SOCKS + --authfile — already on master, branch adds the missing docs

Enforcement (UserAddr() → "socks", channel-level ACL gate) shipped in v1.11.7 (927abde), so branch-vs-master this is not a new break — but today's released chisel has an undocumented breaking change: its README/--help say nothing about the socks token. The branch fixes that in five places (server help, client help, README auth section, SOCKS guide, 1.12 changelog) including the migration line "existing authfiles which should allow SOCKS5 must add an entry matching socks". This documentation is arguably the most valuable UX content on the branch.

The original review flagged a diagnosability gap here: a denied user's server-side trace was Debugf("Denied connection to socks (ACL)"), invisible without -v, making "socks stopped working after upgrade" the #1 anticipated support ticket. This is now fixed — commit 3c66f9b raised it to Infof("Denied connection to %s (ACL)", hostPort) (share/tunnel/tunnel_out_ssh.go:57), so operators see socks ACL denials at the default log level.

b. Truncated legacy MD5 fingerprints rejected — branch-new, loud

Master's verifyLegacyFingerprint used strings.HasPrefix, so --fingerprint a5:b3 matched any key with that MD5 prefix (~1-in-65k spoof risk). The branch requires the full 16-octet colon form (client/client.go:248). Affected users fail loudly at connect with Invalid fingerprint (...), and the preceding info line helpfully prints the correct SHA256 fingerprint to migrate to. SHA256 fingerprints were always exact-match — only MD5 stragglers with shorthand configs are affected. Documented in README Security, and the 1.12 changelog now lists it as breaking (added in c4038c3).

c. --auth without a colon is now a fatal startup error — branch-new, loud

On master, --auth nocolon silently degraded (server: user never registered → effectively no auth; client: empty credentials). That's a security footgun, and the branch turns it into invalid auth string, expected <user>:<pass> at startup on both sides. Anyone hit by this was already running something other than what they believed. Documented in README, and the 1.12 changelog now lists it as breaking (added in c4038c3).

d. Exit code on --max-retry-count exhaustion: 0 → non-zero — branch-new, silent for automation

client_connect.go now returns connection attempts exhausted on give-up (ctx-cancel/Ctrl-C still exits 0). Correct behavior, but it's the one change scripts and Restart=on-failure units experience with no error message to notice — the semantics of $? just flip. It is in the 1.12 changelog, which is the right mitigation.


2. Quiet behavior changes (non-breaking, but observable)

  • Reconnect pacing: backoff floor moves 100ms → 1s (new --min-retry-interval). Softer thundering-herd on server restarts; individual reconnects marginally slower.
  • Dead connections actually die: pings now time out (CHISEL_PING_TIMEOUT, default = keepalive interval, so ~50s at defaults vs 15–60 min of kernel retransmit limbo on master). Sleep/wake and NAT-timeout hangs become visible reconnects in logs. Old peers reply to pings, so mixed versions are fine.
  • Honest connect failures: exit-side dial now happens before channel accept (CHISEL_DIAL_TIMEOUT 30s). Apps see "connection refused/timeout" instead of master's instant-success-then-EOF. Strictly better UX, but tools that measured "connect success" will notice.
  • Half-close propagation: shutdown(SHUT_WR) traverses the tunnel (share/cio/pipe.go), fixing netcat-style pipelines and rsync. Falls back to full-close against old peers — no hangs, just old behavior.
  • SIGTERM is graceful: first signal drains (HTTP drain CHISEL_SHUTDOWN_GRACE 5s, under docker's 10s default), second forces exit. Master died instantly on SIGTERM.
  • New info-level logs: session Open (user=… addr=… remotes=…) / Close (… duration=…) and Login failed for user X (ip) — failed logins are finally fail2ban-able. Two side effects: log parsers keyed on the old debug Closed connection need updating, and tunnel endpoints now appear in default-level logs (mild privacy consideration for shipped logs).
  • Authfile reloads actually work: the watcher survives vim renames, truncation, and k8s ConfigMap symlink swaps, with 100ms debounce; ACLs re-resolve per new channel; the --auth user is pinned across reloads and wins name clashes; removed users lose new tunnels but established ones aren't cut (documented). Operators who habitually restart after edits will find edits now apply live.
  • Unanchored ACL patterns warn at every load, per pattern, unsuppressible. Common .*-style files keep working but get noisy — the warning is doing its job, since unanchored patterns really do over-match.
  • WS read cap 64KB pre-auth (CHISEL_WS_READ_LIMIT, 0 disables) on both sides. Max legit SSH packet is ~35KB, so ~2× headroom; the only tail risk is a pathological config payload (thousands of remotes on one client), and the env knob is the escape hatch.
  • UDP at the flow cap: master permanently blackholed flows past 100; branch sweeps idle over-cap flows (CHISEL_UDP_DEADLINE 15s), so DNS-heavy exit nodes recover instead of wedging.
  • Nicer failure edges: partial BindRemotes failure now unbinds earlier listeners (no zombie ports); bad --keyfile errors no longer echo raw key material into logs; go install builds report real versions; 3000/UDP uppercase now parses.

3. Library consumers (Go API)

No compile-breaking signature changes in client, server, or share/.... Additive: client.Config.MinRetryInterval, Client.Ready(ctx), Tunnel.Ready, UserIndex.PinUser. Behavioral: NewServer returns errors where master called log.Fatal inside (a win for embedders), Remote.UserAddr() returns "socks" for forward-socks, L4Proto lowercases — only code depending on those exact outputs would notice.


4. Mixed-version deployments

Protocol string is unchanged (chisel-v3), and no handshake changes were found.

  • v1.11.x client ↔ 1.12 server: works. Socks ACL is server-side and already live since v1.11.7; WS cap and ping timeout are old-peer-safe.
  • 1.12 client ↔ v1.11.x server: works, degrading gracefully — no half-close benefit, no dial propagation, no server-side changes; socks5:// proxy scheme is client-local.

Changelog

  • e588d21 1.12: reliability & security pass (#609) — 34 commits, browsable on the PR

v1.11.8

Choose a tag to compare

@jpillora jpillora released this 10 Jul 12:48
310eec3

Changelog

  • 310eec3 Bump golang.org/x/crypto from 0.48.0 to 0.52.0 (#606)

v1.11.7

Choose a tag to compare

@github-actions github-actions released this 28 Jun 10:31
927abde

Changelog

  • 927abde Improve SOCKS auth: enforce per-user ACL on socks channels (#591)

v1.11.5

Choose a tag to compare

@github-actions github-actions released this 09 Mar 12:42
44310b6

Changelog

  • 44310b6 Enforce auth ACL on tunnel channels

v1.11.4

Choose a tag to compare

@github-actions github-actions released this 27 Feb 21:56
4df5fcf

Changelog

  • 57d2249 Update all dependencies
  • 4df5fcf Update deps and fix crypto/tls vulnerability (#578)

v1.11.3

Choose a tag to compare

@jpillora jpillora released this 14 Sep 00:03

Changelog

  • Fix CHISEL_KEY environment variable ignored when --keyfile not set by @Copilot in #571
  • Remove broken Windows ARM32 builds
  • Bump Go version to 1.25.1 and update all dependencies by @Copilot in #568

New Contributors

  • @Copilot made their first contribution in #571
⌂ 换网址