<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Control Server on Producthunt daily</title>
        <link>https://producthunt.programnotes.cn/en/tags/control-server/</link>
        <description>Recent content in Control Server on Producthunt daily</description>
        <generator>Hugo -- gohugo.io</generator>
        <language>en</language>
        <lastBuildDate>Tue, 06 May 2025 15:29:52 +0800</lastBuildDate><atom:link href="https://producthunt.programnotes.cn/en/tags/control-server/index.xml" rel="self" type="application/rss+xml" /><item>
        <title>headscale</title>
        <link>https://producthunt.programnotes.cn/en/p/headscale/</link>
        <pubDate>Tue, 06 May 2025 15:29:52 +0800</pubDate>
        
        <guid>https://producthunt.programnotes.cn/en/p/headscale/</guid>
        <description>&lt;img src="https://images.unsplash.com/photo-1642091127753-300f6b462934?ixid=M3w0NjAwMjJ8MHwxfHJhbmRvbXx8fHx8fHx8fDE3NDY1MTY1MTB8&amp;ixlib=rb-4.1.0" alt="Featured image of post headscale" /&gt;&lt;h1 id=&#34;juanfontheadscale&#34;&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/juanfont/headscale&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;juanfont/headscale&lt;/a&gt;
&lt;/h1&gt;&lt;p&gt;&lt;img src=&#34;https://github.com/juanfont/headscale/actions/workflows/test.yml/badge.svg&#34;
	
	
	
	loading=&#34;lazy&#34;
	
		alt=&#34;ci&#34;
	
	
&gt;&lt;/p&gt;
&lt;p&gt;An open source, self-hosted implementation of the Tailscale control server.&lt;/p&gt;
&lt;p&gt;Join our &lt;a class=&#34;link&#34; href=&#34;https://discord.gg/c84AZQhmpx&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Discord server&lt;/a&gt; for a chat.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Always select the same GitHub tag as the released version you use
to ensure you have the correct example configuration. The &lt;code&gt;main&lt;/code&gt; branch might
contain unreleased changes. The documentation is available for stable and
development versions:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://headscale.net/stable/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Documentation for the stable version&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://headscale.net/development/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Documentation for the development version&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;what-is-tailscale&#34;&gt;What is Tailscale
&lt;/h2&gt;&lt;p&gt;Tailscale is &lt;a class=&#34;link&#34; href=&#34;https://tailscale.com/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;a modern VPN&lt;/a&gt; built on top of
&lt;a class=&#34;link&#34; href=&#34;https://www.wireguard.com/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Wireguard&lt;/a&gt;.
It &lt;a class=&#34;link&#34; href=&#34;https://tailscale.com/blog/how-tailscale-works/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;works like an overlay network&lt;/a&gt;
between the computers of your networks - using
&lt;a class=&#34;link&#34; href=&#34;https://tailscale.com/blog/how-nat-traversal-works/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;NAT traversal&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Everything in Tailscale is Open Source, except the GUI clients for proprietary OS
(Windows and macOS/iOS), and the control server.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;A &lt;a class=&#34;link&#34; href=&#34;https://tailscale.com/kb/1136/tailnet/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Tailscale network (tailnet)&lt;/a&gt; is private
network which Tailscale assigns to a user in terms of private users or an
organisation.&lt;/p&gt;
&lt;h2 id=&#34;design-goal&#34;&gt;Design goal
&lt;/h2&gt;&lt;p&gt;Headscale aims to implement a self-hosted, open source alternative to the
&lt;a class=&#34;link&#34; href=&#34;https://tailscale.com/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Tailscale&lt;/a&gt; control server. Headscale&amp;rsquo;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 &lt;em&gt;single&lt;/em&gt; Tailscale
network (tailnet), suitable for a personal use, or a small open-source
organisation.&lt;/p&gt;
&lt;h2 id=&#34;supporting-headscale&#34;&gt;Supporting Headscale
&lt;/h2&gt;&lt;p&gt;If you like &lt;code&gt;headscale&lt;/code&gt; and find it useful, there is a sponsorship and donation
buttons available in the repo.&lt;/p&gt;
&lt;h2 id=&#34;features&#34;&gt;Features
&lt;/h2&gt;&lt;p&gt;Please see &lt;a class=&#34;link&#34; href=&#34;https://headscale.net/stable/about/features/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;&amp;ldquo;Features&amp;rdquo; in the documentation&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;client-os-support&#34;&gt;Client OS support
&lt;/h2&gt;&lt;p&gt;Please see &lt;a class=&#34;link&#34; href=&#34;https://headscale.net/stable/about/clients/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;&amp;ldquo;Client and operating system support&amp;rdquo; in the documentation&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;running-headscale&#34;&gt;Running headscale
&lt;/h2&gt;&lt;p&gt;&lt;strong&gt;Please note that we do not support nor encourage the use of reverse proxies
and container to run Headscale.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Please have a look at the &lt;a class=&#34;link&#34; href=&#34;https://headscale.net/stable/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;&lt;code&gt;documentation&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;talks&#34;&gt;Talks
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;Fosdem 2023 (video): &lt;a class=&#34;link&#34; href=&#34;https://fosdem.org/2023/schedule/event/goheadscale/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Headscale: How we are using integration testing to reimplement Tailscale&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;presented by Juan Font Alonso and Kristoffer Dalby&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;disclaimer&#34;&gt;Disclaimer
&lt;/h2&gt;&lt;p&gt;This project is not associated with Tailscale Inc.&lt;/p&gt;
&lt;p&gt;However, one of the active maintainers for Headscale &lt;a class=&#34;link&#34; href=&#34;https://tailscale.com/blog/opensource&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;is employed by Tailscale&lt;/a&gt; and he is allowed to spend work hours contributing to the project. Contributions from this maintainer are reviewed by other maintainers.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;h2 id=&#34;contributing&#34;&gt;Contributing
&lt;/h2&gt;&lt;p&gt;Please read the &lt;a class=&#34;link&#34; href=&#34;./CONTRIBUTING.md&#34; &gt;CONTRIBUTING.md&lt;/a&gt; file.&lt;/p&gt;
&lt;h3 id=&#34;requirements&#34;&gt;Requirements
&lt;/h3&gt;&lt;p&gt;To contribute to headscale you would need the latest version of &lt;a class=&#34;link&#34; href=&#34;https://golang.org&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Go&lt;/a&gt;
and &lt;a class=&#34;link&#34; href=&#34;https://buf.build&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Buf&lt;/a&gt; (Protobuf generator).&lt;/p&gt;
&lt;p&gt;We recommend using &lt;a class=&#34;link&#34; href=&#34;https://nixos.org/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Nix&lt;/a&gt; to setup a development environment. This can
be done with &lt;code&gt;nix develop&lt;/code&gt;, which will install the tools and give you a shell.
This guarantees that you will have the same dev env as &lt;code&gt;headscale&lt;/code&gt; maintainers.&lt;/p&gt;
&lt;h3 id=&#34;code-style&#34;&gt;Code style
&lt;/h3&gt;&lt;p&gt;To ensure we have some consistency with a growing number of contributions,
this project has adopted linting and style/formatting rules:&lt;/p&gt;
&lt;p&gt;The &lt;strong&gt;Go&lt;/strong&gt; code is linted with &lt;a class=&#34;link&#34; href=&#34;https://golangci-lint.run&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;&lt;code&gt;golangci-lint&lt;/code&gt;&lt;/a&gt; and
formatted with &lt;a class=&#34;link&#34; href=&#34;https://github.com/segmentio/golines&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;&lt;code&gt;golines&lt;/code&gt;&lt;/a&gt; (width 88) and
&lt;a class=&#34;link&#34; href=&#34;https://github.com/mvdan/gofumpt&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;&lt;code&gt;gofumpt&lt;/code&gt;&lt;/a&gt;.
Please configure your editor to run the tools while developing and make sure to
run &lt;code&gt;make lint&lt;/code&gt; and &lt;code&gt;make fmt&lt;/code&gt; before committing any code.&lt;/p&gt;
&lt;p&gt;The &lt;strong&gt;Proto&lt;/strong&gt; code is linted with &lt;a class=&#34;link&#34; href=&#34;https://docs.buf.build/lint/overview&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;&lt;code&gt;buf&lt;/code&gt;&lt;/a&gt; and
formatted with &lt;a class=&#34;link&#34; href=&#34;https://clang.llvm.org/docs/ClangFormat.html&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;&lt;code&gt;clang-format&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The &lt;strong&gt;rest&lt;/strong&gt; (Markdown, YAML, etc) is formatted with &lt;a class=&#34;link&#34; href=&#34;https://prettier.io&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;&lt;code&gt;prettier&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Check out the &lt;code&gt;.golangci.yaml&lt;/code&gt; and &lt;code&gt;Makefile&lt;/code&gt; to see the specific configuration.&lt;/p&gt;
&lt;h3 id=&#34;install-development-tools&#34;&gt;Install development tools
&lt;/h3&gt;&lt;ul&gt;
&lt;li&gt;Go&lt;/li&gt;
&lt;li&gt;Buf&lt;/li&gt;
&lt;li&gt;Protobuf tools&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Install and activate:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;
&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-shell&#34; data-lang=&#34;shell&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;nix develop
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;h3 id=&#34;testing-and-building&#34;&gt;Testing and building
&lt;/h3&gt;&lt;p&gt;Some parts of the project require the generation of Go code from Protobuf
(if changes are made in &lt;code&gt;proto/&lt;/code&gt;) and it must be (re-)generated with:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;
&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-shell&#34; data-lang=&#34;shell&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;make generate
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: Please check in changes from &lt;code&gt;gen/&lt;/code&gt; in a separate commit to make it easier to review.&lt;/p&gt;
&lt;p&gt;To run the tests:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;
&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-shell&#34; data-lang=&#34;shell&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;make &lt;span class=&#34;nb&#34;&gt;test&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;To build the program:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;
&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-shell&#34; data-lang=&#34;shell&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;nix build
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;or&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;
&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-shell&#34; data-lang=&#34;shell&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;make build
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;h2 id=&#34;contributors&#34;&gt;Contributors
&lt;/h2&gt;&lt;a href=&#34;https://github.com/juanfont/headscale/graphs/contributors&#34;&gt;
  &lt;img src=&#34;https://contrib.rocks/image?repo=juanfont/headscale&#34; /&gt;
&lt;/a&gt;
&lt;p&gt;Made with &lt;a class=&#34;link&#34; href=&#34;https://contrib.rocks&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;contrib.rocks&lt;/a&gt;.&lt;/p&gt;
</description>
        </item>
        
    </channel>
</rss>
