Skip to content

FR: support tailscale up --exit-node=name even when first joining the tailnet #4152

@johannesdrescher

Description

@johannesdrescher

What is the issue?

The --exit-node flag should accept an IP or a node name.

--exit-node string
        Tailscale exit node (IP or base name) for internet traffic, or empty string to not use an exit node

For the initial tailscale up however, the node name option results in an error:

invalid value "my-exit-node" for --exit-node; must be IP or unique node name

After running the initial tailscale up and authenticating, it behaves as it should (the --exit-node flag accepts node names as well as IPs).

Steps to reproduce

On a device with a fresh Tailscale installation (and no user data):

sudo tailscaled
sudo tailscale up --exit-node my-exit-node

Are there any recent changes that introduced the issue?

No response

OS

Linux

OS version

No response

Tailscale version

1.20.4

Bug report

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions