headscale/README.md
Juan Font Alonso 5da39f9176 Readme improved
2021-02-24 22:23:36 +01:00

72 lines
1.7 KiB
Markdown

# Headscale
An open source implementation of the Tailscale coordination server.
## Status
- [x] Basic functionality (nodes can communicate with each other)
- [x] Node registration through the web flow
- [x] Network changes are relied to the nodes
- [ ] Node registration via pre-auth keys
- [ ] Multiuser support
- [ ] ACLs
- [ ] DNS
... and probably lots of stuff missing
## Roadmap 🤷
Adding multiuser support seems doable. Rather than actual users, this multi-tenancy will probably look more like namespaces in Kubernetes - a logical partitioning of resources created with a CLI.
Pre-auth keys should also be feasible.
Suggestions/PRs welcomed!
## Running it
1. Compile the headscale binary
```shell
go build cmd/headscale/headscale.go
```
2. Get youself a PostgreSQL DB running (yes, [I know](https://tailscale.com/blog/an-unlikely-database-migration/))
```shell
docker run --name headscale -e POSTGRES_DB=headscale -e \
POSTGRES_USER=foo -e POSTGRES_PASSWORD=bar -p 5432:5432 -d postgres
```
3. Sort some stuff up (headscale Wireguard keys & the config.json file)
```shell
wg genkey > private.key
wg pubkey < private.key > public.key # not needed
cp config.json.example config.json
```
4. Run the server
```shell
./headscale serve
```
5. Add your first machine
```shell
tailscale up -login-server YOUR_HEADSCALE_URL
```
6. Navigate to the URL you will get with `tailscale up`, where you'll find your machine key.
7. Register your machine using the headscale CLI
```shell
./headscale register YOURMACHINEKEY
```
## Disclaimer
1. I have nothing to do with Tailscale, or Tailscale Inc.
2. The purpose of writing this was to learn how Tailscale works.
3. I don't use Headscale myself.