← 返回命令列表

Linux command

tailscale-up 命令

文件

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

常用示例

Connect to Tailscale

tailscale up

Connect with exit node

tailscale up --exit-node=[node]

Connect accepting routes

tailscale up --accept-routes

Connect with SSH enabled

tailscale up --ssh

Advertise as exit node

tailscale up --advertise-exit-node

说明

tailscale up connects the device to a Tailscale network. Authenticates and joins the tailnet. First run opens browser for authentication unless authkey is provided. To change settings on an already-connected device, prefer tailscale set which only updates specified flags, whereas tailscale up applies OS defaults for all unspecified flags.

参数

--accept-routes
Accept advertised routes.
--advertise-exit-node
Offer as exit node.
--exit-node _node_
Route traffic through node.
--hostname _name_
Device hostname.
--shields-up
Block incoming connections.
--ssh
Enable Tailscale SSH.
--login-server _url_
Custom control server.
--authkey _key_
Pre-auth key.
--accept-dns
Accept DNS configuration from the admin console.
--advertise-routes _CIDR_
Expose physical subnet routes to the tailnet.
--advertise-tags _TAGS_
Give tagged permissions to this device.
--force-reauth
Force re-authentication.
--reset
Reset unspecified settings to their defaults.
--qr
Generate a QR code for the login URL.
--exit-node-allow-lan-access
Allow LAN access while using an exit node.
--operator _USER_
Unix username to operate tailscaled without sudo.
--timeout _DURATION_
Maximum wait time for service initialization.

FAQ

What is the tailscale-up command used for?

tailscale up connects the device to a Tailscale network. Authenticates and joins the tailnet. First run opens browser for authentication unless authkey is provided. To change settings on an already-connected device, prefer tailscale set which only updates specified flags, whereas tailscale up applies OS defaults for all unspecified flags.

How do I run a basic tailscale-up example?

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

What does --accept-routes do in tailscale-up?

Accept advertised routes.