安全与隐私mikkel.hoegh.org
用 WireGuard 搭建家庭 VPN 服务器
Setting up a home VPN server with WireGuard
2019 — 2025,它一次次回到首页
黑点是上首页(≥ 50 分)的那次投稿,空心点是没冲上去的投稿,点越大分数越高。
导读
一篇手把手教程,讲解如何用 WireGuard 在自建服务器(或家用设备)上搭建个人 VPN:生成密钥、写配置文件、设置转发与防火墙、给手机扫码连入。文中强调 WireGuard 比 OpenVPN/IPSec 配置更简单、性能更好。
为什么经久不衰:WireGuard 已进入 Linux 内核并成为事实标准,这篇是最早一批清晰可复现的从零配置指南,今天照着做仍然管用。
HN 评论精选
推荐 Subspace 工具简化 WireGuard 配置与移动端接入。
这里还没人提过,对刚上手 WireGuard 的人可能有用:subspacecloud/subspace 这个工具可以生成和管理 WireGuard 配置、为移动设备生成配置二维码,甚至集成 SAML 认证。它不如其他 VPN 管理工具花哨,但能让你少折腾配置文件就搭好 WireGuard。
jeroenhd查看英文原文
Haven't seen it mentioned here yet, so this might be useful to someone getting into WireGuard: https://github.com/subspacecloud/subspace This is a tool that helps you generate and manage configurations for WireGuard, generate qr code for configuring mobile devices and it even integrates into SAML for authentication. It's not as fancy as some other VPN management tools but this is an easy way to get WireGuard set up without too much messing with configs
云主机上 MTU 过大导致性能问题,降到 1360 可解决。
我在 Scaleway 实例上跑 WireGuard 服务器时遇到速度极慢,有些网页完全打不开,而服务器负载并不高。把客户端和服务端的 MTU 从 1500 降到 1360 就解决了。供参考。
valkum查看英文原文
Hosting my Wireguard server on a scaleway instance, I encountered a very slow performance. Some web pages didn't load at all. Server was under no load. Lowering the MTU on the client and the server from 1500 to 1360 solved the problem. FYI
推荐自动化部署工具 Algo,作者也打算从 IPSec 迁移到 WireGuard。
很高兴看到这种手工配置的做法。我在 Edgerouter 上跑 IPSec,正打算重做家庭网络和实验环境,很可能改用 WireGuard。另外还有个更开箱即用的工具 Algo,口碑很好,能自动完成很多步骤:github.com/trailofbits/algo。
whalesalad查看英文原文
Cool to see this done by hand. I’m running IPSec on my Edgerouter but am about to redo my home network and lab environment and will likely implement WireGuard. There’s also a more plug-n-play tool called Algo that is highly spoken of, which automates a lot of this: https://github.com/trailofbits/algo
分享自写的 WireGuard 配置分发小工具。
我在多台服务器上用 WireGuard 做个人 VPN,为了让部署省事,我写了个小工具:gitlab.com/vsviridov/wg-provision。
vsviridov查看英文原文
I use wireguard for personal VPN on multiple servers, and to make things a bit easier for provisioning I wrote this simple tool: https://gitlab.com/vsviridov/wg-provision
历次讨论
同类还值得读
非法素数
Illegal prime
维基百科条目,介绍“非法素数”:某些素数之所以被称为“非法”,是因为它们经特定编码后,恰好对应一段被法律禁止传播的数据——最著名的是 DVD 解密程序 DeCSS 的代码,有人把…
安全与隐私上首页 5 次 · 2010–2021en.wikipedia.org编辑精选关于 /dev/urandom 的常见误区
Myths about /dev/urandom
(Thomas Hühn 撰写,2014 年首发并持续更新)逐条反驳关于 /dev/urandom 的常见误解:它与 /dev/random 使用的是同一个 CSPRNG,一旦完…
安全与隐私上首页 5 次 · 2014–20202uo.de编辑精选AES 高级加密标准火柴人图解
A Stick Figure Guide to the Advanced Encryption Standard (AES)
一篇用火柴人漫画形式讲解 AES(高级加密标准)算法的经典科普文章。
安全与隐私上首页 5 次 · 2009–2022moserware.com编辑精选指纹是用户名,不是密码
Fingerprints are Usernames, not Passwords
作者(eCryptfs 维护者、Ubuntu 安全工程师)认为指纹等生物特征是公开、不可更改的标识,应视作用户名而非密码,不能当作秘密凭据用于认证。
安全与隐私上首页 4 次 · 2013–2017blog.dustinkirkland.comHTTPS 连接的最初几毫秒(2009)
The First Few Milliseconds of an HTTPS Connection (2009)
逐毫秒拆解一次 HTTPS 连接建立时发生了什么,重点讲 TLS 握手、证书验证、RSA 签名与密钥协商等机制,面向不熟悉该领域的读者。
安全与隐私上首页 4 次 · 2009–2020moserware.com编辑精选