From 9bd716dda804a3b08b74a94949ed8a22c260682c Mon Sep 17 00:00:00 2001 From: hwdsl2 Date: Mon, 26 Apr 2021 22:59:30 -0500 Subject: [PATCH] Update docs --- README-zh.md | 10 +++++----- README.md | 10 +++++----- docs/ikev2-howto-zh.md | 6 +++--- docs/ikev2-howto.md | 6 +++--- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/README-zh.md b/README-zh.md index 7c993b0..fae17da 100644 --- a/README-zh.md +++ b/README-zh.md @@ -39,7 +39,7 @@ Ubuntu & Debian ```bash -wget https://git.io/vpnsetup -O vpn.sh && sudo sh vpn.sh && sudo bash /opt/src/ikev2.sh --auto +wget https://git.io/vpnsetup -O vpn.sh && sudo sh vpn.sh && sudo /opt/src/ikev2.sh --auto ``` @@ -49,7 +49,7 @@ CentOS & RHEL ```bash -wget https://git.io/vpnsetup-centos -O vpn.sh && sudo sh vpn.sh && sudo bash /opt/src/ikev2.sh --auto +wget https://git.io/vpnsetup-centos -O vpn.sh && sudo sh vpn.sh && sudo /opt/src/ikev2.sh --auto ``` @@ -59,7 +59,7 @@ Amazon Linux 2 ```bash -wget https://git.io/vpnsetup-amzn -O vpn.sh && sudo sh vpn.sh && sudo bash /opt/src/ikev2.sh --auto +wget https://git.io/vpnsetup-amzn -O vpn.sh && sudo sh vpn.sh && sudo /opt/src/ikev2.sh --auto ``` @@ -349,7 +349,7 @@ wget https://git.io/vpnupgrade-amzn -O vpnup.sh && sudo sh vpnup.sh ``` sudo VPN_DNS_SRV1=1.1.1.1 VPN_DNS_SRV2=1.0.0.1 sh vpn.sh -sudo VPN_DNS_SRV1=1.1.1.1 VPN_DNS_SRV2=1.0.0.1 bash ikev2.sh --auto +sudo VPN_DNS_SRV1=1.1.1.1 VPN_DNS_SRV2=1.0.0.1 bash /opt/src/ikev2.sh --auto ``` ### 域名和更改服务器 IP @@ -359,7 +359,7 @@ sudo VPN_DNS_SRV1=1.1.1.1 VPN_DNS_SRV2=1.0.0.1 bash ikev2.sh --auto 对于 `IKEv2` 模式,如果你想要 VPN 在服务器的 IP 更改后继续正常工作,则必须在 配置 IKEv2 时指定一个域名作为 VPN 服务器的地址。该域名必须是一个全称域名(FQDN)。示例如下: ``` -sudo VPN_DNS_NAME='vpn.example.com' bash ikev2.sh --auto +sudo VPN_DNS_NAME='vpn.example.com' bash /opt/src/ikev2.sh --auto ``` 另外,你也可以自定义 IKEv2 安装选项,通过在运行 辅助脚本 时去掉 `--auto` 参数来实现。 diff --git a/README.md b/README.md index dde327d..0932668 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ Ubuntu & Debian ```bash -wget https://git.io/vpnsetup -O vpn.sh && sudo sh vpn.sh && sudo bash /opt/src/ikev2.sh --auto +wget https://git.io/vpnsetup -O vpn.sh && sudo sh vpn.sh && sudo /opt/src/ikev2.sh --auto ``` @@ -49,7 +49,7 @@ CentOS & RHEL ```bash -wget https://git.io/vpnsetup-centos -O vpn.sh && sudo sh vpn.sh && sudo bash /opt/src/ikev2.sh --auto +wget https://git.io/vpnsetup-centos -O vpn.sh && sudo sh vpn.sh && sudo /opt/src/ikev2.sh --auto ``` @@ -59,7 +59,7 @@ Amazon Linux 2 ```bash -wget https://git.io/vpnsetup-amzn -O vpn.sh && sudo sh vpn.sh && sudo bash /opt/src/ikev2.sh --auto +wget https://git.io/vpnsetup-amzn -O vpn.sh && sudo sh vpn.sh && sudo /opt/src/ikev2.sh --auto ``` @@ -349,7 +349,7 @@ Advanced users can define `VPN_DNS_SRV1` and optionally `VPN_DNS_SRV2` when runn ``` sudo VPN_DNS_SRV1=1.1.1.1 VPN_DNS_SRV2=1.0.0.1 sh vpn.sh -sudo VPN_DNS_SRV1=1.1.1.1 VPN_DNS_SRV2=1.0.0.1 bash ikev2.sh --auto +sudo VPN_DNS_SRV1=1.1.1.1 VPN_DNS_SRV2=1.0.0.1 bash /opt/src/ikev2.sh --auto ``` ### DNS name and server IP changes @@ -359,7 +359,7 @@ For `IPsec/L2TP` and `IPsec/XAuth ("Cisco IPsec")` modes, you may use a DNS name For `IKEv2` mode, if you want the VPN to continue to work after server IP changes, you must specify a DNS name to be used as the VPN server's address when setting up IKEv2. The DNS name must be a fully qualified domain name (FQDN). Example: ``` -sudo VPN_DNS_NAME='vpn.example.com' bash ikev2.sh --auto +sudo VPN_DNS_NAME='vpn.example.com' bash /opt/src/ikev2.sh --auto ``` Alternatively, you may customize IKEv2 setup options by running the helper script without the `--auto` parameter. diff --git a/docs/ikev2-howto-zh.md b/docs/ikev2-howto-zh.md index 55ec4b3..4384848 100644 --- a/docs/ikev2-howto-zh.md +++ b/docs/ikev2-howto-zh.md @@ -58,19 +58,19 @@ wget https://git.io/ikev2setup -O /opt/src/ikev2.sh && sudo bash /opt/src/ikev2. 在使用自动模式安装 IKEv2 时,高级用户可以指定一个域名作为 VPN 服务器的地址。这是可选的。该域名必须是一个全称域名(FQDN)。示例如下: ``` -sudo VPN_DNS_NAME='vpn.example.com' bash ikev2.sh --auto +sudo VPN_DNS_NAME='vpn.example.com' bash /opt/src/ikev2.sh --auto ``` 类似地,你可以指定第一个 IKEv2 客户端的名称。这是可选的。如果未指定,则使用默认值 `vpnclient`。 ``` -sudo VPN_CLIENT_NAME='your_client_name' bash ikev2.sh --auto +sudo VPN_CLIENT_NAME='your_client_name' bash /opt/src/ikev2.sh --auto ``` 在 VPN 已连接时,IKEv2 客户端默认配置为使用 Google Public DNS。在使用自动模式安装 IKEv2 时,你可以指定另外的 DNS 服务器。这是可选的。示例如下: ``` -sudo VPN_DNS_SRV1=1.1.1.1 VPN_DNS_SRV2=1.0.0.1 bash ikev2.sh --auto +sudo VPN_DNS_SRV1=1.1.1.1 VPN_DNS_SRV2=1.0.0.1 bash /opt/src/ikev2.sh --auto ```
diff --git a/docs/ikev2-howto.md b/docs/ikev2-howto.md index a2aa128..4ecde33 100644 --- a/docs/ikev2-howto.md +++ b/docs/ikev2-howto.md @@ -58,19 +58,19 @@ You may optionally specify a DNS name, client name and/or custom DNS servers. Cl When running IKEv2 setup in auto mode, advanced users can optionally specify a DNS name to be used as the VPN server's address. The DNS name must be a fully qualified domain name (FQDN). Example: ``` -sudo VPN_DNS_NAME='vpn.example.com' bash ikev2.sh --auto +sudo VPN_DNS_NAME='vpn.example.com' bash /opt/src/ikev2.sh --auto ``` Similarly, you may optionally specify a name for the first IKEv2 client. The default is `vpnclient` if not specified. ``` -sudo VPN_CLIENT_NAME='your_client_name' bash ikev2.sh --auto +sudo VPN_CLIENT_NAME='your_client_name' bash /opt/src/ikev2.sh --auto ``` By default, IKEv2 clients are set to use Google Public DNS when the VPN is active. When running IKEv2 setup in auto mode, you may optionally specify custom DNS server(s). Example: ``` -sudo VPN_DNS_SRV1=1.1.1.1 VPN_DNS_SRV2=1.0.0.1 bash ikev2.sh --auto +sudo VPN_DNS_SRV1=1.1.1.1 VPN_DNS_SRV2=1.0.0.1 bash /opt/src/ikev2.sh --auto ```