Set exit node
tailscale_set_exit_nodeRoute this host's internet traffic through a chosen Tailscale exit node, or pass an empty string to stop using one. Requires approval because it redirects all host traffic.
Instructions
Route this host's internet traffic through a tailnet exit node (tailscale set --exit-node). Pass an empty string to CLEAR (stop using an exit node). ⚠ This redirects ALL of this host's traffic through the chosen node, so it requires user approval. Returns the resulting status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exitNode | Yes | Exit node IP or MagicDNS name; "" to clear. | |
| allowLanAccess | No | Allow direct access to the local LAN while using the exit node. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| os | No | ||
| state | Yes | running | running_local_only | stopped | needs_login | starting | no_state | daemon_unreachable | unknown | |
| health | Yes | ||
| authURL | No | ||
| dnsName | No | ||
| version | No | ||
| hostName | No | ||
| connected | Yes | True only when BackendState=Running AND Self.Online. | |
| keyExpiry | No | ||
| keyExpired | Yes | ||
| selfOnline | Yes | ||
| haveNodeKey | Yes | ||
| backendState | Yes | ||
| tailscaleIPs | Yes | ||
| currentTailnet | No |