Tailscale控制服务器的一个开源、自托管实现
An open source, self-hosted implementation of the Tailscale control server

原始链接: https://github.com/juanfont/headscale

Headscale 是一个开源的、自托管的 Tailscale 控制服务器实现,专为个人或小型组织设计。Tailscale 本身是一个基于 Wireguard 的 VPN,它创建一个覆盖网络以实现安全通信。虽然 Tailscale 的 GUI 客户端和控制服务器是专有的,但 Headscale 提供了一个开源的控制服务器替代方案,在一个 Tailscale 网络 (tailnet) 中管理 Wireguard 密钥交换、IP 地址分配、用户边界和路由广告。 Headscale 旨在赋能自托管者和爱好者。欢迎贡献代码,需要 Go 和 Buf 语言支持。该项目通过代码检查工具(golangci-lint, buf)、格式化工具(golines, gofumpt, clang-format, prettier)强调代码质量,并强制执行编码风格指南。基于 Nix 的开发环境确保了一致性。虽然 Headscale 与 Tailscale Inc. 没有关联,但 Headscale 的维护者之一在 Tailscale 工作,他们的贡献会由其他维护者审核以服务于社区。

Hacker News 最新 | 过去 | 评论 | 提问 | 展示 | 招聘 | 提交 登录 Tailscale 控制服务器的开源、自托管实现方案 (github.com/juanfont) 20 分,来自 quyleanh,1 小时前 | 隐藏 | 过去 | 收藏 | 1 评论 telotortium 21 分钟前 [–] 应该在标题中添加项目名称 Headscale。Headscale 已经在 HN 上出现很多次了。 回复 加入我们,参加 6 月 16-17 日在旧金山举办的 AI 初创公司学校! 指导原则 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系我们 搜索:
相关文章

原文

headscale logo

ci

An open source, self-hosted implementation of the Tailscale control server.

Join our Discord server for a chat.

Note: Always select the same GitHub tag as the released version you use to ensure you have the correct example configuration and documentation. The main branch might contain unreleased changes.

Tailscale is a modern VPN built on top of Wireguard. It works like an overlay network between the computers of your networks - using NAT traversal.

Everything in Tailscale is Open Source, except the GUI clients for proprietary OS (Windows and macOS/iOS), and the control server.

The control server works as an exchange point of Wireguard public keys for the nodes in the Tailscale network. It assigns the IP addresses of the clients, creates the boundaries between each user, enables sharing machines between users, and exposes the advertised routes of your nodes.

A Tailscale network (tailnet) is private network which Tailscale assigns to a user in terms of private users or an organisation.

Headscale aims to implement a self-hosted, open source alternative to the Tailscale control server. Headscale's goal is to provide self-hosters and hobbyists with an open-source server they can use for their projects and labs. It implements a narrow scope, a single Tailscale network (tailnet), suitable for a personal use, or a small open-source organisation.

If you like headscale and find it useful, there is a sponsorship and donation buttons available in the repo.

Please see "Features" in the documentation.

Please see "Client and operating system support" in the documentation.

Please note that we do not support nor encourage the use of reverse proxies and container to run Headscale.

Please have a look at the documentation.

This project is not associated with Tailscale Inc.

However, one of the active maintainers for Headscale is employed by Tailscale and he is allowed to spend work hours contributing to the project. Contributions from this maintainer are reviewed by other maintainers.

The maintainers work together on setting the direction for the project. The underlying principle is to serve the community of self-hosters, enthusiasts and hobbyists - while having a sustainable project.

Please read the CONTRIBUTING.md file.

To contribute to headscale you would need the latest version of Go and Buf (Protobuf generator).

We recommend using Nix to setup a development environment. This can be done with nix develop, which will install the tools and give you a shell. This guarantees that you will have the same dev env as headscale maintainers.

To ensure we have some consistency with a growing number of contributions, this project has adopted linting and style/formatting rules:

The Go code is linted with golangci-lint and formatted with golines (width 88) and gofumpt. Please configure your editor to run the tools while developing and make sure to run make lint and make fmt before committing any code.

The Proto code is linted with buf and formatted with clang-format.

The rest (Markdown, YAML, etc) is formatted with prettier.

Check out the .golangci.yaml and Makefile to see the specific configuration.

Install development tools

Install and activate:

Some parts of the project require the generation of Go code from Protobuf (if changes are made in proto/) and it must be (re-)generated with:

Note: Please check in changes from gen/ in a separate commit to make it easier to review.

To run the tests:

To build the program:

or

Made with contrib.rocks.

联系我们 contact @ memedata.com