Scroll to navigation

KCPTUN-SERVER(1) User Commands KCPTUN-SERVER(1)

NAME

kcptun-server - Simple UDP Tunnel Based On KCP

DESCRIPTION

NAME:

kcptun - server(with SMUX)

USAGE:

kcptun-server [global options] command [command options] [arguments...]

VERSION:

SELFBUILD

COMMANDS:

Shows a list of commands or help for one command

GLOBAL OPTIONS:

kcp server listen address, eg: "IP:29900" for a single port, "IP:minport-maxport" for port range (default: ":29900")
target server address, or path/to/unix_socket (default: "127.0.0.1:12948")
pre-shared secret between client and server (default: "it's a secrect") [$KCPTUN_KEY]
aes, aes-128, aes-128-gcm, aes-192, salsa20, blowfish, twofish, cast5, 3des, tea, xtea, xor, sm4, none, null (default: "aes")
enable Quantum Permutation Pads(QPP)
the prime number of pads to use for QPP: The more pads you use, the more secure the encryption. Each pad requires 256 bytes. (default: 61)
profiles: fast3, fast2, fast, normal, manual (default: "fast")
set maximum transmission unit for UDP packets (default: 1350)
set maximum outgoing speed (in bytes per second) for a single KCP connection, 0 to disable. Also known as packet pacing. (default: 0)
set send window size(num of packets) (default: 1024)
set receive window size(num of packets) (default: 1024)
set reed-solomon erasure coding - datashard (default: 10)
set reed-solomon erasure coding - parityshard (default: 3)
set DSCP(6bit) (default: 0)
disable compression
per-socket buffer in bytes (default: 4194304)
specify smux version, available 1,2 (default: 2)
the overall de-mux buffer in bytes (default: 4194304)
smux max frame size (default: 8192)
per stream receive buffer in bytes, smux v2+ (default: 2097152)
seconds between heartbeats (default: 10)
the seconds to wait before tearing down a connection (default: 30)
collect snmp to file, aware of timeformat in golang, like: ./snmp-20060102.log
snmp collect period, in seconds (default: 60)
start profiling server on :6060
specify a log file to output, default goes to stderr
to suppress the 'stream open/close' messages
to emulate a TCP connection(linux)
config from json file, which will override the command from shell
show help
print the version
March 2026 kcptun-server 20260314+ds-1~exp1