bdy agent tunnel tcp

$bdy agent tunnel tcp|TCP [options] [host:port]

Starts a tunnel which forwards all TCP traffic on a public port to a local address. This is extremely useful for exposing services that run non-HTTP traffic (ssh, sip, rdp, game servers, etc).

ARGUMENTS
host:port
Target address to redirect traffic to. Host is optional and by default local machine. Port is by default 80 (optional)
OPTIONS
-r, --region <region>
override default region ("eu", "us", "as")
-w, --whitelist <cidrs...>
Whitelist provided IP CIDRs. Use "*" to allow all
-n, --name <name>
Name of the tunnel
-t, --timeout <seconds>
Enforce connection timeout in seconds
-f, --follow
Follow tunnel details
-h, --help
display help for command

Documentation for bdy v1.20.0

Last modified on Apr 13, 2026

Examples

Start tcp tunnel on port 22
bdy agent tunnel tcp 22$
Start named tcp tunnel with whitelist
bdy agent tunnel tcp 80 -n name -w 1.1.1.1/27$