Skip to content

[os-tailscale] Support tailscale set arguments#5382

Open
AlexRusbridge wants to merge 5 commits intoopnsense:masterfrom
AlexRusbridge:os-tailscale-set-args
Open

[os-tailscale] Support tailscale set arguments#5382
AlexRusbridge wants to merge 5 commits intoopnsense:masterfrom
AlexRusbridge:os-tailscale-set-args

Conversation

@AlexRusbridge
Copy link
Copy Markdown

Important notices
Before you submit a pull request, we ask you kindly to acknowledge the following:

If AI was used, please disclose:

  • Model used:
    • Claude Opus 4.6
  • Extent of AI involvement:
    • Understanding the plugin architecture and debugging. No LLM generated code was used.

Related issue


Describe the problem

Tailscale have a preference for adding new flags to the tailscale set command, instead of tailscale up.

// When adding new flags, prefer to put them under "tailscale set" instead
// of here. Setting preferences via "tailscale up" is deprecated.

up.go

This means that any new functionality added to tailscale is likely to be configured through set. In the plugins current state, we can't configure these options.

We can already see the impact with the --relay-server-port flag.


Describe the proposed solution

This PR adds a new rc.d script tailscaled_set that will apply tailscale set flags after the tailscaled service has started.

It supports defining arguments via the tailscaled_set_args variable.

For now, we can configure --relay-server-port and --webclient via the UI. But this PR opens up the possibility of more set arguments.


Note: There is another solution, where the FreeBSD port of tailscaled could support tailscaled_set_args alongside it's tailscaled_set_args.

@AlexRusbridge AlexRusbridge marked this pull request as ready for review April 8, 2026 15:48
@sheridans
Copy link
Copy Markdown
Contributor

This looks like a promising idea, let me have a look over it and ensure nothing breaks.

@fichtner fichtner self-assigned this Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Tailscale - add peer relay function

3 participants