From 7a07f39f1b6e6200a60eb36c72d61c3ec92257db Mon Sep 17 00:00:00 2001 From: mapleafgo Date: Wed, 12 Mar 2025 19:15:19 +0800 Subject: [PATCH] =?UTF-8?q?vpn=20=E9=85=8D=E7=BD=AE=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vpn.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 vpn.md diff --git a/vpn.md b/vpn.md new file mode 100644 index 0000000..9a2c81e --- /dev/null +++ b/vpn.md @@ -0,0 +1,24 @@ +## 安装配置 vpn + +### 安装 wireguard + +```bash +sudo apt install wireguard wireguard-tools -y +``` + +### 配置 wireguard + +从服务器获取配置文件,保存到 `/etc/wireguard/wg0.conf`,并修改配置文件 + +> Interface 的 DNS 移除掉,不要配置 + +```bash +sudo vim /etc/wireguard/wg0.conf +``` + +### 开启 wireguard + +```bash +sudo systemctl enable wg-quick@wg0 +sudo systemctl start wg-quick@wg0 +```