summaryrefslogtreecommitdiffhomepage
path: root/cmd
diff options
context:
space:
mode:
authorMihai Parparita <mihai@tailscale.com>2023-03-17 14:46:52 -0700
committerMihai Parparita <mihai.parparita@gmail.com>2023-03-20 11:52:46 -0700
commite1fb687104f3fc0725eeb47b4f9ac5351f0efb20 (patch)
treefccfd9114388a6acf42afaaaf5bb5e908e837bd0 /cmd
parent654b5a0616f235eb41ccb31fc0c4499b1d952a26 (diff)
downloadtailscale-e1fb687104f3fc0725eeb47b4f9ac5351f0efb20.tar.xz
tailscale-e1fb687104f3fc0725eeb47b4f9ac5351f0efb20.zip
cmd/tailscale/cli: fix inconsistency between serve text and example command
Use the same local port number in both, and be more precise about what is being forwarded Signed-off-by: Mihai Parparita <mihai@tailscale.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/tailscale/cli/serve.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/cmd/tailscale/cli/serve.go b/cmd/tailscale/cli/serve.go
index 509addee7..9ef67cf46 100644
--- a/cmd/tailscale/cli/serve.go
+++ b/cmd/tailscale/cli/serve.go
@@ -45,7 +45,7 @@ serve https:<port> <mount-point> <source> [off]
The 'tailscale serve' set of commands allows you to serve
content and local servers from your Tailscale node to
-your tailnet.
+your tailnet.
You can also choose to enable the Tailscale Funnel with:
'tailscale funnel on'. Funnel allows you to publish
@@ -66,10 +66,12 @@ EXAMPLES
- To serve simple static text:
$ tailscale serve https:8080 / text:"Hello, world!"
- - To forward raw TCP packets to a local TCP server on port 5432:
+ - To forward incoming TCP connections on port 2222 to a local TCP server on
+ port 22 (e.g. to run OpenSSH in parallel with Tailscale SSH):
$ tailscale serve tcp:2222 tcp://localhost:22
- - To forward raw, TLS-terminated TCP packets to a local TCP server on port 80:
+ - To accept TCP TLS connections (terminated within tailscaled) proxied to a
+ local plaintext server on port 80:
$ tailscale serve tls-terminated-tcp:443 tcp://localhost:80
`),
Exec: e.runServe,