Closed
Labels
L3 Some usersLikelihoodOS-macosIssues involving Tailscale for macOSOS-windowsIssues involving Tailscale for WindowsP2 AggravatingPriority levelT0 New featureIssue typefrFeature request
Description
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
Metadata
Metadata
Assignees
Labels
L3 Some usersLikelihoodOS-macosIssues involving Tailscale for macOSOS-windowsIssues involving Tailscale for WindowsP2 AggravatingPriority levelT0 New featureIssue typefrFeature request
Activity
DentonGentry commentedon Jul 22, 2022
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.
bradfitz commentedon Jul 22, 2022
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/tailscaledstory. But I sure can't find it. Maybe we'd just talked about it.cmd/tailscaled, tailcfg, hostinfo: add flag to disable logging + support
cmd/tailscaled, tailcfg, hostinfo: add flag to disable logging + support
cmd/tailscaled, tailcfg, hostinfo: add flag to disable logging + support
cmd/tailscaled, tailcfg, hostinfo: add flag to disable logging + support
envknob: support changing envknobs post-init
9 remaining items
bradfitz commentedon Sep 16, 2022
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
envknob: generalize Windows tailscaled-env.txt support
envknob: generalize Windows tailscaled-env.txt support
envknob: generalize Windows tailscaled-env.txt support
envknob: generalize Windows tailscaled-env.txt support
envknob: generalize Windows tailscaled-env.txt support
envknob, health: support Synology, show parse errors in status
envknob, health: support Synology, show parse errors in status
envknob, health: support Synology, show parse errors in status
cmd/tailscaled: respect $PORT on all platforms, not just Linux
cmd/tailscaled: respect $PORT on all platforms, not just Linux
bradfitz commentedon Jan 24, 2023
Seems like this happened in 1.32.0.
Put
PORT=1234inC:\ProgramData\Tailscale\tailscaled-env.txtand restart the Tailscale service (net stop Tailscale,net start Tailscale)meminens commentedon Jul 24, 2024
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?
vickunwu commentedon Dec 26, 2024
@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