Mixed local proxy
Accepts SOCKS5, SOCKS5 UDP ASSOCIATE, HTTP proxy, and HTTP CONNECT traffic from one local listener.
Go TCP tunnel and mixed proxy
tcptun carries SOCKS5, HTTP CONNECT, and tunnel traffic through native, VLESS, VMess, Trojan, and REALITY/Vision modes with low overhead and production-friendly configuration.
$ tcptun server \
--listen 0.0.0.0:443 \
--tunnel-protocol vless \
--transport raw \
--tunnel-security reality \
--flow xtls-rprx-vision
$ tcptun client \
--listen 127.0.0.1:1080 \
--server-addr proxy.example.com:443
Capabilities
Accepts SOCKS5, SOCKS5 UDP ASSOCIATE, HTTP proxy, and HTTP CONNECT traffic from one local listener.
Use the native protocol for full coverage, or VLESS, VMess, and Trojan for compatible TCP tunneling.
Run VLESS over raw transport with REALITY/Vision for deployments that need realistic TLS behavior.
Carry tunnels over raw TCP, WebSocket, HTTP/2, or HTTP/3, with multiplexing in native mode.
Deploy
Generate ready-to-edit server, client, and route configuration files, then run the matching server and local client commands.
tcptun config --protocol vless \
--server-addr proxy.example.com:443
tcptun server --config server.json
tcptun client --config client.json
Usage Guide
The fastest path is to generate matching JSON files, copy the server file to your VPS, and keep the client file on your computer.
Create server, client, and route files with one shared token.
tcptun config --protocol vless \
--transport raw \
--server-addr proxy.example.com:443
On public servers, tcptun only dials public destination IPs and drops private ranges.
tcptun server --config server.json
The client opens a local mixed proxy endpoint for SOCKS5, HTTP proxy, and CONNECT traffic.
tcptun client --config client.json
Point your browser, app, or CLI tool at the local listener.
curl -x socks5h://127.0.0.1:1080 \
https://ifconfig.me
Use VLESS over raw transport with tunnel_security set
to reality and flow set to
xtls-rprx-vision. The server needs a private key,
allowed server names, and a fallback destination; the client needs
the matching public key, server name, UUID, and short ID.
Use WebSocket transport when placing tcptun behind a standard HTTP reverse proxy. Run the server on loopback and proxy the configured tunnel path to that local port.
Config Generator
Fill in the deployment details and generate matching
server.json, client.json, and
route.json. Tokens and REALITY keys are generated in
your browser.
Click Generate to create config files.
Xray / V2Ray Converter
Paste an Xray or V2Ray JSON config and generate a tcptun
client.json or server.json. Conversion runs
locally in this page; the config never leaves your browser.
Paste a config and click Convert.
Download
Release packages include the binary, English and Chinese README files, docs, and SHA-256 checksum files.