From 24bc89149a1dcc11c1671a9034bdd5f7f3c1fc6b Mon Sep 17 00:00:00 2001 From: hwdsl2 Date: Sun, 16 Oct 2022 00:50:54 -0500 Subject: [PATCH] Update docs --- README-zh.md | 5 +++-- README.md | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README-zh.md b/README-zh.md index acaf320..b37facd 100644 --- a/README-zh.md +++ b/README-zh.md @@ -239,14 +239,15 @@ sudo ikev2.sh |客户端的 DNS 服务器 |Google Public DNS | VPN_DNS_SRV1, VPN_DNS_SRV2 | ✅ | |保护客户端配置文件 |no | VPN_PROTECT_CONFIG=yes | ✅ | |启用/禁用 MOBIKE |如果系统支持则启用 | ❌ | ✅ | -|客户端证书有效期 | 10 年(120 个月)| ❌ | ✅ | +|客户端证书有效期 | 10 年(120 个月)| VPN_CLIENT_VALIDITY\*\*\*\* | ✅ | | CA 和服务器证书有效期 | 10 年(120 个月)| ❌ | ❌ | | CA 证书名称 | IKEv2 VPN CA | ❌ | ❌ | |证书密钥长度 | 3072 bits | ❌ | ❌ | \* 这些 IKEv2 参数适用于 IKEv2 模式。 \*\* 在运行 vpn(setup).sh 时,或者在自动模式下配置 IKEv2 时 (`sudo ikev2.sh --auto`) 将这些定义为环境变量。 -\*\*\* 可以在交互式配置 IKEv2 期间自定义 (`sudo ikev2.sh`)。参见上面的选项 2。 +\*\*\* 可以在交互式配置 IKEv2 期间自定义 (`sudo ikev2.sh`)。参见上面的选项 2。 +\*\*\*\* 使用 `VPN_CLIENT_VALIDITY` 定义客户端证书的有效期(单位:月)。它必须是 1 到 120 之间的整数。 除了这些参数,高级用户还可以在安装时 [自定义 VPN 子网](docs/advanced-usage-zh.md#自定义-vpn-子网)。 diff --git a/README.md b/README.md index e646e6f..f0af04a 100644 --- a/README.md +++ b/README.md @@ -239,14 +239,15 @@ For reference: List of IKEv1 and IKEv2 parameters. | DNS servers for clients | Google Public DNS | VPN_DNS_SRV1, VPN_DNS_SRV2 | ✅ | | Protect client config files | no | VPN_PROTECT_CONFIG=yes | ✅ | | Enable/Disable MOBIKE | Enable if supported | ❌ | ✅ | -| Client cert validity | 10 years (120 months) | ❌ | ✅ | +| Client cert validity | 10 years (120 months) | VPN_CLIENT_VALIDITY\*\*\*\* | ✅ | | CA & server cert validity | 10 years (120 months) | ❌ | ❌ | | CA certificate name | IKEv2 VPN CA | ❌ | ❌ | | Certificate key size | 3072 bits | ❌ | ❌ | \* These IKEv2 parameters are for IKEv2 mode. \*\* Define these as environment variables when running vpn(setup).sh, or when setting up IKEv2 in auto mode (`sudo ikev2.sh --auto`). -\*\*\* Can be customized during interactive IKEv2 setup (`sudo ikev2.sh`). Refer to option 2 above. +\*\*\* Can be customized during interactive IKEv2 setup (`sudo ikev2.sh`). Refer to option 2 above. +\*\*\*\* Use `VPN_CLIENT_VALIDITY` to specify the client cert validity period in months. Must be an integer between 1 and 120. In addition to these parameters, advanced users can also [customize VPN subnets](docs/advanced-usage.md#customize-vpn-subnets) during VPN setup.