vault backup: 2024-06-28 20:06:19
This commit is contained in:
1 parent
e706afe18e
commit
201415e327
1 file changed
+30
-1
@@ -19,7 +19,6 @@ apt install ./headscale.deb
|
|||||||
systemctl enable headscale
|
systemctl enable headscale
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## Config file
|
## Config file
|
||||||
|
|
||||||
```
|
```
|
||||||
@@ -35,3 +34,33 @@ nano /etc/headscale/config.yaml
|
|||||||
headscale users create matthiaspc
|
headscale users create matthiaspc
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Register machine (normal login)
|
||||||
|
|
||||||
|
On client:
|
||||||
|
```
|
||||||
|
tailscale up --login-server http://78.47.220.149:41111
|
||||||
|
```
|
||||||
|
|
||||||
|
On server:
|
||||||
|
```
|
||||||
|
headscale --user myfirstuser nodes register --key <YOUR_MACHINE_KEY>
|
||||||
|
```
|
||||||
|
|
||||||
|
## Register machine with pre auth key
|
||||||
|
|
||||||
|
On server:
|
||||||
|
```
|
||||||
|
headscale --user matthiaspc preauthkeys create --reusable --expiration 24h
|
||||||
|
```
|
||||||
|
|
||||||
|
On client:
|
||||||
|
```
|
||||||
|
tailscale up --login-server <YOUR_HEADSCALE_URL> --authkey <YOUR_AUTH_KEY>
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# Exit Nodes
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Reference in new issue
Block a user