mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-26 17:03:06 +00:00
1,014 B
1,014 B
Node management
See https://tailscale.com/kb/1099/device-approval for more information.
Setup
1. Change the configuration
-
Change the
config.yaml
to contain the desired records like so:node_management: manual_approve_new_node: true
-
Restart your headscale instance.
Warning
Enabling the node_management.manual_approve_new_node: true
option will allow manual approval of nodes in both cli mode and oidc mode.
Usage
Pre-approve a node using preauthkeys
- Create preauthkey with a pre-approve option
headscale preauthkeys create --user=<USER_NAME> --pre-approved
- Register a node on the headscale using preauthkey (with the pre-approval option enabled)
headscale nodes register --user=<USER_NAME> --mkey=mkey:<MACHINE_KEY> --auth-key=<PREAUTHKEY_PRE_APPROVED>
Node approval after registration without the option to pre-approve the authentication key
headscale nodes approve --identifier=<NODE_ID>