fix: 维护一下远古文章们
This commit is contained in:
@@ -13,18 +13,23 @@ date: 2024-08-30 16:44:40
|
||||
---
|
||||
|
||||
1. 安装 wireguard-tools
|
||||
|
||||
```bash
|
||||
sudo apt update
|
||||
sudo apt install wireguard-tools resolvconf
|
||||
```
|
||||
|
||||
2. 编辑隧道文件
|
||||
隧道文件放在 `/etc/wireguard/` 下
|
||||
例如 `/etc/wireguard/wg0.conf`
|
||||
3. 启动隧道
|
||||
隧道文件放在 `/etc/wireguard/` 下
|
||||
例如 `/etc/wireguard/wg0.conf`
|
||||
2. 启动隧道
|
||||
|
||||
```bash
|
||||
sudo wg-quick up <隧道名>
|
||||
```
|
||||
|
||||
4. 停止隧道
|
||||
|
||||
```bash
|
||||
sudo wg-quick down <隧道名>
|
||||
```
|
||||
@@ -32,4 +37,5 @@ sudo wg-quick down <隧道名>
|
||||
隧道名就是 `.conf` 文件的名称
|
||||
|
||||
## 参考资料
|
||||
[如何在 Ubuntu 22.04 上安装 Wireguard VPN](https://cn.linux-console.net/?p=29550)
|
||||
|
||||
[如何在 Ubuntu 22.04 上安装 Wireguard VPN](https://cn.linux-console.net/?p=29550)
|
||||
|
||||
Reference in New Issue
Block a user