Self-hosted mesh network自托管 mesh 网络

Your devices, one private network.你的设备,连成一张私有网络。

Skein Mesh connects your devices directly, encrypted end to end, and coordinated by a control server you run yourself. It is cross-platform and keeps working behind NAT, strict firewalls and networks that throttle UDP. Skein Mesh 让你的设备之间端到端加密直连,由你自己运行的控制服务器统一协调。跨平台,在 NAT、严格的防火墙和限制 UDP 的网络里照样可用。

Noise_IK_25519_ChaChaPoly_BLAKE2s Ed25519 short-lived certificates, renewed automatically短期证书,自动续期 UDP · TLS/443 transports双传输
Features功能

Everything a private network needs, on hardware you own.私有网络需要的一切,跑在你自己的机器上。

Direct, encrypted links端到端加密直连

Each pair of devices talks over its own Noise IK session. Identity comes from short-lived certificates signed by your own CA.每对设备之间都是独立的 Noise IK 会话,身份来自你自己 CA 签发的短期证书。

Through NAT, with a relay behind it穿透 NAT,有中继兜底

Devices connect through a relay right away, then switch to a direct path as soon as hole punching succeeds.设备先经中继立即连通,打洞成功后自动切到直连。

Works over port 443走 443 端口也能用

When UDP is blocked or throttled, traffic moves to TLS on port 443 and the connection stays up.UDP 被封或被限速时,流量自动改走 443 端口的 TLS,连接不中断。

Exit nodes with split routing出口节点与分流

Send traffic for chosen domains or address ranges through an exit node. Everything else stays on its usual path.只把指定域名或地址段的流量交给出口节点,其余流量照常走。

Web dashboardWeb 管理面板

Approve devices, revoke certificates, review routes, follow traffic and read the audit log in one place.审批设备、吊销证书、审核路由、查看流量和审计日志,都在一个地方。

Join with a link or QR code链接或二维码加入

Open a join link or scan a code on the new device, check the verification code, approve it, and it is on the network.在新设备上打开加入链接或扫码,核对验证码并审批,设备就上线了。

How it works工作原理

From a fresh server to a working network in three steps.从一台新服务器到可用的网络,只要三步。

  1. Set up your control server部署控制服务器

    skein-server init asks a few questions, creates your CA and prints the first join link.skein-server init 问几个问题,生成你的 CA,并打印第一个加入链接。

  2. Add your devices加入设备

    Run skein up --join with the link, or scan the QR code in the app.用链接运行 skein up --join,或在 app 里扫二维码。

  3. Approve and connect审批并连通

    Approve the device in the dashboard. It receives a certificate and finds its peers on its own.在管理面板里审批,设备拿到证书后自动找到其他节点。

Get started开始使用

Set up your network.搭建你的网络。

You need one Linux server that your devices can reach, ideally with a public address. Everything else joins it.你需要一台设备都能访问到的 Linux 服务器,最好有公网地址,其他设备都加入它。

Early access早期版本
  1. Install the control server安装控制服务器

    Add the package repository, install skein-server and initialise it. skein-server init asks a few questions, creates your CA and prints a join link for your first device. Open TCP port 443 to the server.添加软件源,安装 skein-server 并初始化。skein-server init 会问几个问题,生成你的 CA,并打印第一台设备的加入链接。服务器需要开放 TCP 443 端口。

    $ echo 'deb [trusted=yes] https://repo.skein.cc/apt/ stable main' \
        | sudo tee /etc/apt/sources.list.d/skein.list
    $ sudo apt update && sudo apt install skein-server
    $ sudo skein-server init && \
        sudo systemctl enable --now skein-server
  2. Join your first device and open the Dashboard加入第一台设备,打开管理面板

    Install Skein on the device you will manage the network from, as in the next step, and join it with the link init printed. It becomes an admin device: open the Dashboard address it shows and sign in.在你用来管理网络的设备上安装 Skein(方法见下一步),用 init 打印的链接加入。它会成为管理设备,打开它显示的管理面板地址并登录。

  3. Add your other devices加入其他设备

    In the Dashboard, Add device creates a join link and the full command for each system. Install, then join:在管理面板里,「添加设备」会生成加入链接和各系统的完整命令。先安装,再加入:

    $ curl -fsSL https://mesh.skein.cc/install.sh | sh
    $ sudo skein up --join 'skein://join?…' --setup-only && \
        sudo systemctl enable --now skein

    On Debian, Ubuntu, Fedora and RHEL the script adds the Skein apt / dnf repository, so apt upgrade / dnf upgrade keep the node up to date. On a node installed earlier, run the script once more to switch.在 Debian、Ubuntu、Fedora 和 RHEL 上,脚本会添加 Skein 的 apt / dnf 软件源,之后 apt upgrade / dnf upgrade 会一并更新节点。之前安装的节点重新运行一次脚本即可切换。

  4. Approve and connect审批并连通

    Check the verification code the new device shows and approve it in the Dashboard. It receives a certificate and connects to its peers on its own.核对新设备显示的验证码,在管理面板里审批。设备拿到证书后会自动连上其他节点。