From f2a081589868addc735978c40bc73b51955a877a Mon Sep 17 00:00:00 2001 From: hwdsl2 Date: Sat, 1 Oct 2022 15:36:59 -0500 Subject: [PATCH] Update docs --- README-zh.md | 16 +++++++++++++++- README.md | 16 +++++++++++++++- 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/README-zh.md b/README-zh.md index 340733b..cd5f376 100644 --- a/README-zh.md +++ b/README-zh.md @@ -12,7 +12,16 @@ ## 安装说明 -在你的 Linux 服务器\* 上运行脚本,并按提示操作: +在你的 Linux 服务器\* 上运行脚本,并按提示操作。 + +**选项 1:** 使用默认选项自动安装。 + +```bash +wget https://get.vpnsetup.net/wg -O wireguard.sh +sudo bash wireguard.sh --auto +``` + +**选项 2:** 使用自定义选项进行交互式安装。 ```bash wget https://get.vpnsetup.net/wg -O wireguard.sh @@ -27,7 +36,11 @@ sudo bash wireguard.sh 你也可以使用 `curl` 下载: ```bash +# 下载脚本 curl -fL https://get.vpnsetup.net/wg -o wireguard.sh +# 选项 1: 使用默认选项自动安装 +sudo bash wireguard.sh --auto +# 选项 2: 使用自定义选项进行交互式安装 sudo bash wireguard.sh ``` @@ -72,6 +85,7 @@ https://gitlab.com/hwdsl2/wireguard-install/-/raw/master/wireguard-install.sh - 改进了与 Setup IPsec VPN 的兼容性 - 改进了脚本的可靠性,用户输入和输出 +- 支持使用默认选项自动安装 - 支持列出现有的 VPN 客户端 - 支持为 VPN 客户端自定义 DNS 服务器 - 优化 `sysctl` 设置以提高 VPN 性能 diff --git a/README.md b/README.md index 9183c9c..3db98a0 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,16 @@ A video tutorial in Spanish is available: [Install OpenVPN/WireGuard on Ubuntu 2 ## Installation -Run the script on your Linux server\* and follow the prompts: +Run the script on your Linux server\* and follow the prompts. + +**Option 1:** Auto install using default options. + +```bash +wget https://get.vpnsetup.net/wg -O wireguard.sh +sudo bash wireguard.sh --auto +``` + +**Option 2:** Interactive install using custom options. ```bash wget https://get.vpnsetup.net/wg -O wireguard.sh @@ -27,7 +36,11 @@ Alternative commands. You may also use `curl` to download: ```bash +# Download the script curl -fL https://get.vpnsetup.net/wg -o wireguard.sh +# Option 1: Auto install using default options +sudo bash wireguard.sh --auto +# Option 2: Interactive install using custom options sudo bash wireguard.sh ``` @@ -72,6 +85,7 @@ List of enhancements over Nyr/wireguard-install. - Improved compatibility with Setup IPsec VPN - Improved script reliability, user input and output +- Supports auto install using default options - Supports listing existing VPN clients - Supports custom DNS server(s) for VPN clients - Optimized `sysctl` settings for improved VPN performance