原文:https://github.com/wgredlong/WireGuard
WireGuard 的立意是创建「 快速、现代、安全的 VPN 隧道 」。
通过 WireGuard 组建起来的 VPN ,借助其中一台可以科学上网的电脑,能使 VPN 内所有其它电脑都具有科学上网的能力。
本文简要介绍 WireGuard 的组网要点及步骤,其它六篇介绍相关的操作方法。
- 用 Linode 主机搭建 WireGuard 网络 ,实例介绍 Linode 服务器与本地 Ubuntu 电脑组建 WireGuard 网络的步骤;
- 用 wg-quick 调用 wg0.conf 管理 WireGuard ,如何配置 wg0.conf 的各项参数;
- 用 wg 在命令行运行 WireGuard ,通过命令行使用 WireGuard 的方法;
- 与配置 WireGuard 有关的 Ubuntu 命令,介绍一些 Ubuntu 命令;
- 多平台访问 WireGuard ,介绍不同平台如何使用 WireGuard ;
- 付费测试 WireGuard ,帮你试用 WireGuard 。
组建一个 WireGuard 网络一般需要以下步骤。
WireGuard 自带的 wg-quick 命令来启动或关闭 WireGuard 网络。好处是操作方便,不足就是调试阶段不够方便(其实也不难)。详细介绍见:“ 2.用 wg-quick 调用 wg0.conf 管理 WireGuard ” 。WireGuard 自带的 wg 命令与系统自有的 ip 及 iptables 命令实现。命令行方式灵活,但如果重复操作或繁琐一些,详细介绍见:“ 3.用 wg 在命令行运行 WireGuard ” 。net.ipv4.ip_forward=1);这时应该能从本地机 Ping 通 Google.com ,并能通过浏览器访问 Google.com 。