Skip to content

Instantly share code, notes, and snippets.

@bradfitz
Created June 10, 2021 16:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bradfitz/bd7bd930b8c8b71076ca0a45f6b57bd0 to your computer and use it in GitHub Desktop.
Save bradfitz/bd7bd930b8c8b71076ca0a45f6b57bd0 to your computer and use it in GitHub Desktop.
tailscale up
tailscale up --auth-key=xxxx
FIX:
tailscale up --advertise-tags=tag:foo
tailscale up --advertise-tags=tag:foo --shields-up=true
tailscale up --advertise-tags= --shields-up=true # explicitly mentioned good
tailscale up --shields-up=true # ERROR: unmentioned thing is changing value
tailscale up [--init] --advertise-tags= --shields-up=true # init is fine
tailscale up
ERROR: tailscale already running with settings that differ from those not mentioned (sldkjfslkdjf)
run with --init to
tailscale set --shields-up
tailscale set --shields-up=false
tailscale get
tailscale get shields-up
tailscale set shields-up
tailscale set shields-up=true
tailscale set shields-up=false
tailscale set [--account=NAME] shields-up=false
tailscale set [--account=NAME] alias=home
tailscale set advertise-tags+=tag:foo
tailscale set advertise-tags+=tag:foo
tailscale set shields-up=false advertise-tags+=tag:foo
tailscale down
tailscale up (no args after ==> edit prefs.wantrunning=true, login as necessary)
tailscale up --init (like today: all prefs to implicit flag values)
tailscale up --auth-key=....
tailscale login [--auth-key=] (does not imply --init; use `tailscale set --init`)
tailscale set [--init] shields-up=true
#### Multi-accounts
tailscale account list
tailscale account add [--control-server=http://localhost:123123]
tailscale account remove bradfitz@gmail.com
tailscale account switch bradfitz@gmail.com
tailscale account bradfitz@gmail.com
tailscale up -a home
tailscale up -a work # work now ALSO logged in
tailscale down -a work # now just home
tailscale switch home # disable all but home
tailscale switch work # disable all but work
tailscale login # always means force-reauth, used to add a new account
=> same login as now? no change.
=> new login? future => interactive prompt, new account / switch to it
=> new login? now => reset all settings
tailscale get login
# v1.8 new user docs/flow
## Easy mode:
tailscale up # login as needed, then bring engine up
## More verbose way:
tailscale login
tailscale set shields-up=true
tailscale up
tailscale logout =>
- down
- tell control to drop association (see Direct.TryLogout TODO)
- does NOT delete prefs (like advertised tags, slksjdlfkj)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment