nylon README

项目的 README,来自 github.com/encodeous/nylon。合并为一个 markdown 文件:README.md。

nylon

Join our Discord Docs

Nylon is a self-healing WireGuard mesh that routes around failures. If a link goes down, nylon reroutes traffic through the next-best path in seconds. No manual intervention, no central coordination servers, just like how a real network should be :)

Under the hood, nylon implements the Babel routing protocol (RFC 8966) on top of a modified wireguard-go, using measured latency as the routing metric.

Nylon targets under 10 seconds of convergence time after a link failure, as you can see in the demo below.

Demo

Main Features

Getting Started

Install the latest release on Linux, along with a systemd service that runs it with the configs in /etc/nylon:

curl -fsSL https://raw.githubusercontent.com/encodeous/nylon/main/install.sh | sh

You can also download binaries directly from the releases page.

Then head to the docs for setup instructions.

Read the full documentation at nylon.jq.ax includes configuration reference, guides for connecting WireGuard clients, port forwarding, and comparisons with Tailscale/Nebula.

Sample systemd service and launchctl plist files can be found under the example directory.

[!NOTE] Stability: I daily-drive nylon on Linux and macOS. The routing protocol has an extensive test suite and integration tests with simulated network conditions. The config format may still change between releases.

Security: Nylon does not modify WireGuard's cryptographic code. All nylon control traffic (route updates, probes) is sent inside the encrypted WireGuard tunnel. For security concerns, contact me directly.

Windows: The Windows client has known issues. For now, I recommend connecting Windows machines as passive WireGuard clients via a Linux/macOS gateway.

Bugs and feature requests welcome via GitHub issues.


Built with sweat and tears (thankfully no blood)

nylon is not an official WireGuard project, and WireGuard is a registered trademark of Jason A. Donenfeld.

nylon (encodeous/nylon)

正在搜索数据库…

534 ·GitHub
这是什么?Nylon 是一个能自愈的 WireGuard 网状网络,可以在几秒内自动绕开故障链路重新路由流量,无需任何中心协调服务器。
这是我可以导入的库,还是需要在服务器上运行的程序?它是一个独立的守护进程,而不是库:一个静态链接的单文件二进制程序,需要在每个节点上运行,用一个 YAML 配置文件进行设置,并监听一个 UDP 端口。
我该怎么让它运行起来?在 Linux 上,可以安装最新版本以及随附的 systemd 服务(它会从 /etc/nylon 读取配置),也可以直接从发布页面下载二进制文件,然后按照 nylon.jq.ax 上的完整安装指南操作。
我需要安装真正的 WireGuard 内核模块或其他任何东西吗?不需要单独设置 WireGuard:数据平面完全运行在一个经过修改的 wireguard-go(polyamide)内部,并已打包进单个 nylon 二进制文件中。
在依赖它之前,有哪些需要注意的坑?Windows 客户端目前存在已知问题,因此作者建议 Windows 设备通过 Linux/macOS 网关,以被动 WireGuard 客户端的方式接入;此外,YAML 配置格式在不同版本之间可能仍会变化。
哪些操作系统真正可以运行 nylon 节点?作者日常将 nylon 作为完整网状网络节点运行在 Linux 和 macOS 上;目前 Windows 最适合仅作为通过网关接入的被动客户端使用。
节点之间的路由和控制流量也是加密的吗?是的。Nylon 不改动 WireGuard 的加密机制,它的所有控制流量,例如路由更新和延迟探测,都在现有的加密 WireGuard 隧道内传输。
这种自愈路由究竟是如何工作的?Nylon 在 wireguard-go 之上实现了 Babel 路由协议(RFC 8966),以节点之间实测的延迟作为路由度量,并目标是在链路故障后 10 秒内完成收敛。
它与 Tailscale、Nebula 或 ZeroTier 有什么不同?与这些工具不同,nylon 不要求所有节点之间都能直接互通,而是会自动沿延迟最低的路径经由中间跳点转发流量,并且完全不依赖协调服务器或 SaaS 服务。
我能否在手机上不安装 nylon,直接用普通的 WireGuard 应用接入?可以。iOS、Android 和 Windows 上的标准 WireGuard 客户端无需任何额外软件即可接入网状网络,而且移动客户端可以在网关节点之间无缝漫游。
这个网状网络能达到多大的吞吐量?由于数据平面原生运行在 wireguard-go 中,且没有改动其加密机制,nylon 能够达到 10 Gbps 以上的吞吐量,接近原生 WireGuard 的速度。
有哪些类似的项目?netbird, tailscale, p2wlan, netmaker, EasyTier, nebula, Xray-core, aivpn
作者
encodeous
大小
7.6 MB
星标
534
时长
1年
提交 · 90 天