https://github.com/josh/ts-acl-hosts-gen
Generate Tailscale hosts policy from existing nodes
https://github.com/josh/ts-acl-hosts-gen
tailscale tailscale-acl
Last synced: 3 months ago
JSON representation
Generate Tailscale hosts policy from existing nodes
- Host: GitHub
- URL: https://github.com/josh/ts-acl-hosts-gen
- Owner: josh
- License: mit
- Created: 2025-02-21T20:09:43.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-21T21:34:34.000Z (over 1 year ago)
- Last Synced: 2025-02-21T21:45:05.961Z (over 1 year ago)
- Topics: tailscale, tailscale-acl
- Language: Go
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ts-acl-hosts-gen
Updates a [Tailscale ACL policy](https://tailscale.com/kb/1018/acls) [hosts section](https://tailscale.com/kb/1337/acl-syntax#hosts) with all the nodes on your network. This is best used in a small homelab Tailnet. Keep in mind nodes themselves may manipulate their own hostname and may be able to escalate pervileges by doing so.
## Installation
```sh
go get -tool github.com/josh/ts-acl-hosts-gen@latest
go tool github.com/josh/ts-acl-hosts-gen
```
## Usage
```sh
$ ts-acl-hosts-gen --help
usage: ts-acl-hosts-gen [flags] policy.hujson
-api-key string
Tailscale API key
-oauth-id string
Tailscale OAuth client ID
-oauth-secret string
Tailscale OAuth client secret
-version
print version and exit
```