tcptun

CLI

Run, check, generate, import.

Run, check, generate, and import tcptun configs from the command line.

run01

Run a config

Load and validate JSON, then start every inbound.

tcptun --config config.json
check02

Validate only

Validate and compile without listening on ports.

tcptun config check --config config.json
generate03

Generate a pair

Generate matching server / client configs with credentials and REALITY keys.

tcptun config native --server proxy.example.com --port 9443 --server-name example.com --dest example.com:443
uri04

Import URI

Build a client config from a native URI.

tcptun uri import --input client.uri --client --output client.json
quic05

Forced QUIC pair

Generate native Reality with carrier.mode=quic (no TCP fallback).

tcptun config native --quic --server proxy.example.com --port 9443
resume06

Resumable auto carriers

After generating a native REALITY pair with carrier.mode=auto, set mux.resume=true on both ends (v0.3.0+).

# on both server inbound and client outbound mux blocks
"mux": {
  "enabled": true,
  "resume": true,
  "resume_timeout": "15s",
  "resume_buffer_size": 4194304
}

tcptun v0.5.0

Download and run.

Download Linux x64