0

I want to run tailscale with the --state=mem: flag set on my server in order to gain the feature released in version 1.30.0 that will "delete node immediately if tailscaled exists and was using mem: state storage";

In the tailscale docs it says the following:

Can I create an ephemeral node without an auth key? 

Yes, running Tailscale v1.22 or later. You can run tailscaled with the --state=mem: flag. tailscaled is the Tailscale daemon that runs on devices that have installed the Tailscale client. The --state=mem: flag registers the node as an ephemeral node so that the daemon stores state in memory, instead of writing it to disk.

How do I modify this flag on the tailscale daemon since it's not an option on the normal tailscale CLI?

James Flight
  • 1,424
  • 1
  • 13
  • 21

1 Answers1

0

systemctl edit tailscaled will open an editor to edit an file of customizations for tailscaled.service. You can add a FLAGS environment variable:

[Service]
Environment=FLAGS="--state=mem:"

Then run these commands to make it take effect:

sudo systemctl daemon-reload

sudo systemctl restart tailscaled

DGentry
  • 16,111
  • 8
  • 50
  • 66