Skip to main content

tuna tcp

Start a TCP tunnel.

Guide with examples: TCP.

Usage
tuna tcp [port] [flags]
Examples
tuna tcp 5432
tuna tcp 10.0.0.1:5432
tuna tcp 5432 --port=postgres
tuna tcp 5432 --port=35000
tuna tcp unix:///var/run/docker.sock
FlagDescription
--api-key stringYour tuna.am api key with the tunnels:connect scope (env TUNA_API_KEY).
--cidr-allow stringReject connections that do not match the given CIDRs. Can be repeated.
--cidr-deny stringReject connections that match the given CIDRs. Can be repeated.
-p, --port stringPort for incoming connections.
--proxy-protocol stringVersion of PROXY Protocol (1 or 2).
--qrGenerate and show QR code.

Global flags work too.