macOS
brew install wireguard-golocal Homebrew formula metadata
sudo port install wireguard-goMacPorts ports tree · net/wireguard-go/Portfile · 来源: api.github.com
安装
brew install wireguard-golocal Homebrew formula metadata
sudo port install wireguard-goMacPorts ports tree · net/wireguard-go/Portfile · 来源: api.github.com
sudo apk add wireguard-goAlpine Linux edge package indexes · wireguard-go · 来源: dl-cdn.alpinelinux.org
sudo apt install wireguard-goDebian stable package indexes · wireguard-go · 来源: deb.debian.org
nix profile install nixpkgs#wireguard-gonixpkgs package indexes · pkgs/by-name/wi/wireguard-go/package.nix · 来源: api.github.com
概览
Userspace Go implementation of WireGuard
历史
wireguard-go is the official Go userspace implementation of WireGuard, the modern encrypted layer-3 VPN protocol created by Jason A. Donenfeld. It exists alongside the Linux kernel implementation and is most useful where a kernel driver is unavailable, undesirable, or less portable than a userspace tunnel process.
WireGuard itself was designed as a small, auditable alternative to IPsec and OpenVPN, with a public technical paper describing it as a secure network tunnel implemented as a Linux kernel virtual network interface. The WireGuard project later organized several official implementation repositories, including the kernel implementation, cross-platform tools, and wireguard-go as a cross-platform userspace implementation maintained by Donenfeld.
The role of wireguard-go became clearer after WireGuard entered the Linux kernel line: Linux users are generally expected to use the kernel module for performance and integration, while wireguard-go remains the portable fallback for platforms and situations where a userspace TUN implementation is the practical route. Its README explicitly tells Linux users that the kernel module is faster and better integrated, which gives the package a deliberately narrow but important niche.
WireGuard's wider adoption accelerated when it was merged for Linux 5.6 in 2020, turning the protocol from an out-of-tree module plus tools into a standard Linux networking feature. That made userspace implementations less central on modern Linux but more valuable as cross-platform compatibility pieces for macOS, BSD-derived systems, containers, embedded environments, and application stacks that need a WireGuard tunnel without depending on a kernel module.
In package-manager culture, wireguard-go is commonly installed with wireguard-tools or used by higher-level products that need an implementation of the WireGuard protocol in userspace. It is not the glamorous default path on current Linux, but it is the package that makes the same protocol available when the native interface is missing.
A typical invocation creates a WireGuard-style network interface by running a command such as `wireguard-go wg0`; the interface can then be configured with `wg(8)` plus ordinary platform networking tools. The upstream README describes it as creating the interface and then forking into the background, with a foreground mode available for supervision and logging.
The package is usually part of a larger WireGuard setup rather than a complete VPN product by itself. Users still need keys, peers, allowed IPs, routing, and address configuration, usually handled through `wg`, `wg-quick`, system network managers, or application-specific wrappers.
For package maintainers, wireguard-go is the portability valve in the WireGuard ecosystem: small, official, and intentionally less preferred than the kernel implementation on Linux, but essential when kernels, operating systems, or sandboxed deployments cannot provide a native WireGuard device.
Its significance is mostly negative space: if the platform has first-class WireGuard support, users may never notice it; when it does not, this package is often the thing that lets the rest of the WireGuard tooling keep working.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
wireguard-go | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:wireguard-go |
|---|---|
| 版本 | 0.0.20250522 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/wireguard-go |
| 主页 | https://www.wireguard.com/ |
| 仓库 | https://git.zx2c4.com/wireguard-go |
| 上游文档 | https://git.zx2c4.com/wireguard-go/about |
| 许可证 | MIT |
| 源码归档 | https://git.zx2c4.com/wireguard-go/snapshot/wireguard-go-0.0.20250522.tar.xz |
| 构建依赖 | go |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | wireguard-go |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
golang-golang.zx2c4-wireguard-dev 0.0.20231211-1
Userspace implementation of WireGuard in Go (library)
https://git.zx2c4.com/wireguard-go/about/
sudo apt install golang-golang.zx2c4-wireguard-devwireguard-go 0.0.20231211-1+b9
Userspace implementation of WireGuard in Go (program)
https://git.zx2c4.com/wireguard-go/about/
sudo apt install wireguard-gowireguard-go
nix profile install nixpkgs#wireguard-gogolang-golang.zx2c4-wireguard-dev 0.0.20230223-1
Userspace implementation of WireGuard in Go (library)
https://git.zx2c4.com/wireguard-go/about/
sudo apt install golang-golang.zx2c4-wireguard-devwireguard-go 0.0.20230223-1
Userspace implementation of WireGuard in Go (program)
https://git.zx2c4.com/wireguard-go/about/
sudo apt install wireguard-gowireguard-go 0.0.20250522-r9
Next generation secure network tunnel: userspace implementation in go
sudo apk add wireguard-gowireguard-go-doc 0.0.20250522-r9
Next generation secure network tunnel: userspace implementation in go (documentation)
sudo apk add wireguard-go-docwireguard-go
sudo port install wireguard-go来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.