Skip to content

FR: Make it easier for tailscaled to set --port at startup #5114

Closed

Description

@dblohm7

What are you trying to do?

This came out of a support issue. The user has an uncooperative firewall and ended up running tailscaled --port manually. They would like tailscaled to use the --port option every time it starts.

This is not very intuitive to set up on Windows (though entirely possible if you know the right commands).

How should we solve this?

Their feature request is to be able to save the --port setting persistently (either via command line, GUI, or both) so that tailscaled always uses that preferred setting when it starts.

What is the impact of not solving this?

In this case, the user disabled tailscaled's entry in the service control manager and is instead using the Windows Task Scheduler to start tailscaled automatically with their preferred port configuration.

Anything else?

No response

Activity

  1. DentonGentry commented on Jul 22, 2022

    @DentonGentry
    Contributor

    I think it doesn't store the port in the config now because the config is opened too late. We could try to open the config earlier, or maybe close and reopen the port in question after we've read the config.

    Or I guess add a registry key for the Windows Service port number, though that seems oddly platform specific.

  2. bradfitz commented on Jul 22, 2022

    @bradfitz
    Member

    I thought we already had support for reading a file of env vars or flags from disk for Windows and/or macOS to approximate the Linux /etc/default/tailscaled story. But I sure can't find it. Maybe we'd just talked about it.

  3. added
    OS-windows
    OS-macos
    L3 Some users
    P2 Aggravating
    T0 New feature
    and removed on Jul 24, 2022
  4. 9 remaining items

  5. bradfitz commented on Sep 16, 2022

    @bradfitz
    Member

    I thought we already had support for reading a file of env vars or flags from disk for Windows and/or macOS to approximate the Linux /etc/default/tailscaled story. But I sure can't find it. Maybe we'd just talked about it.

    Ah, yes, I'd done a lot of this already in b03170b for #3688

    But I guess it doesn't work with the envknob package globals, so I'll tie that and 74674b1 together.

    /cc @andrew-d

  6. bradfitz commented on Jan 24, 2023

    @bradfitz
    Member

    Seems like this happened in 1.32.0.

    Put PORT=1234 in C:\ProgramData\Tailscale\tailscaled-env.txt and restart the Tailscale service (net stop Tailscale, net start Tailscale)

  7. meminens commented on Jul 24, 2024

    @meminens

    https://tailscale.com/kb/1011/log-mesh-traffic?tab=macos this page links here for disabling logs using Tailscale on macOS. I don't understand what I should be doing here. Can someone please help?

  8. vickunwu commented on Dec 26, 2024

    @vickunwu

    https://tailscale.com/kb/1011/log-mesh-traffic?tab=macos this page links here for disabling logs using Tailscale on macOS. I don't understand what I should be doing here. Can someone please help?

    @meminens I looked into the code base and found out to right location to put the env file on MacOS. You can check this link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    L3 Some usersOS-macosOS-windowsP2 AggravatingT0 New featurefr

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions