← 返回命令列表

Linux command

tailscale-funnel 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Expose a local service

tailscale funnel [8080]

Expose a local HTTPS proxy

tailscale funnel https+insecure://localhost:[8443]

Expose on a specific port

tailscale funnel --serve-port [8443] [3000]

Turn off funnel

tailscale funnel off

Check funnel status

tailscale funnel status

Run in background

tailscale funnel --bg [8080]

说明

tailscale funnel exposes local services to the public internet through your Tailscale node. Unlike tailscale serve which only makes services available within your tailnet, Funnel creates a publicly accessible HTTPS endpoint that anyone on the internet can reach. Tailscale automatically provisions and manages TLS certificates for the endpoint, so traffic is encrypted without manual certificate setup. Services can be mapped to specific URL paths using --set-path, allowing multiple local services to be exposed under different routes. The off subcommand disables the funnel, and status shows the current configuration.

参数

--bg
Run in background.
--serve-port _port_
The public-facing port (443, 8443, or 10000; default 443).
--set-path _path_
Mount the service at a specific URL path.
off
Disable funnel.
status
Show current funnel configuration.
reset
Reset all funnel configuration.

FAQ

What is the tailscale-funnel command used for?

tailscale funnel exposes local services to the public internet through your Tailscale node. Unlike tailscale serve which only makes services available within your tailnet, Funnel creates a publicly accessible HTTPS endpoint that anyone on the internet can reach. Tailscale automatically provisions and manages TLS certificates for the endpoint, so traffic is encrypted without manual certificate setup. Services can be mapped to specific URL paths using --set-path, allowing multiple local services to be exposed under different routes. The off subcommand disables the funnel, and status shows the current configuration.

How do I run a basic tailscale-funnel example?

Run `tailscale funnel [8080]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --bg do in tailscale-funnel?

Run in background.