Skip to content

v0.4.0-beta

Choose a tag to compare

@romanrublev romanrublev released this 16 Sep 20:37
· 15 commits to main since this release

Beta release. Transport resilience and exit-mode security.

Transport

  • Adaptive block FEC over the KCP pipe: parity tracks the measured loss, so a
    clean path pays no overhead while a lossy one is protected, with no KCP
    reconnect. Eliminates the variable relay loss that capped throughput.
  • Health-based worker pool: each worker's relay RTT and loss are measured from
    the probe the exit server already echoes; the supervisor retires the single
    worst relay when it is a genuine outlier and re-allocates a fresh one from the
    credential pool. Path-wide loss no longer triggers churn, and a per-relay
    cooldown avoids landing back on a bad relay.
  • Telemetry: status --json and the tray now show live active workers,
    cumulative evictions, worst-worker loss and mean relay RTT.

Security

  • Exit-mode DTLS can now be authenticated by pinning the server's certificate
    fingerprint (server_fingerprint in the profile / outbound; run
    turnrelay-server -cert <path> to persist a certificate and print its
    SHA-256). This closes an on-path MITM against the exit and preserves the
    WebRTC call-media disguise. Without a fingerprint the legacy behaviour is
    kept.
  • The exit server bounds each DTLS handshake with a timeout, only starts a
    session on a real DTLS record, and frees a failed handshake's state at once,
    so a scan or spoofed source can no longer leak goroutines and buffers.
  • turnrelay install copies the daemon binary to a root-owned location and
    points the service there, instead of running whatever user-writable path the
    binary was launched from (a local root-escalation risk).

App

  • The native client supports exit mode in the profile (server_type: "exit",
    password, server_fingerprint).

Install (macOS Apple Silicon)

brew tap romanrublev/turnrelay
brew upgrade romanrublev/turnrelay/turnrelay