diff --git a/docs/clients-zh.md b/docs/clients-zh.md index 57f19b3..49a6a65 100644 --- a/docs/clients-zh.md +++ b/docs/clients-zh.md @@ -384,21 +384,21 @@ ipsec whack --trafficstatus ## 使用命令行配置 Linux VPN 客户端 -以下步骤是基于 [Peter Sanford 的工作](https://gist.github.com/psanford/42c550a1a6ad3cb70b13e4aaa94ddb1c)。这些命令必须在你的 VPN 客户端上使用 `root` 账户运行。 +在成功 搭建自己的 VPN 服务器 之后,按照下面的步骤来使用命令行配置 Linux VPN 客户端。另外,你也可以 [使用图形界面](#linux) 配置。以下步骤是基于 [Peter Sanford 的工作](https://gist.github.com/psanford/42c550a1a6ad3cb70b13e4aaa94ddb1c)。这些命令必须在你的 VPN 客户端上使用 `root` 账户运行。 要配置 VPN 客户端,首先安装以下软件包: ```bash # Ubuntu & Debian apt-get update -apt-get -y install strongswan xl2tpd +apt-get -y install strongswan xl2tpd net-tools # CentOS & RHEL yum -y install epel-release -yum --enablerepo=epel -y install strongswan xl2tpd +yum --enablerepo=epel -y install strongswan xl2tpd net-tools # Fedora -yum -y install strongswan xl2tpd +yum -y install strongswan xl2tpd net-tools ``` 创建 VPN 变量 (替换为你自己的值): diff --git a/docs/clients.md b/docs/clients.md index b49c6d3..e85c13c 100644 --- a/docs/clients.md +++ b/docs/clients.md @@ -384,21 +384,21 @@ ipsec whack --trafficstatus ## Configure Linux VPN clients using the command line -Instructions below are based on [the work of Peter Sanford](https://gist.github.com/psanford/42c550a1a6ad3cb70b13e4aaa94ddb1c). Commands must be run as `root` on your VPN client. +After setting up your own VPN server, follow these steps to configure Linux VPN clients using the command line. Alternatively, you may configure [using the GUI](#linux). Instructions below are based on [the work of Peter Sanford](https://gist.github.com/psanford/42c550a1a6ad3cb70b13e4aaa94ddb1c). Commands must be run as `root` on your VPN client. To set up the VPN client, first install the following packages: ```bash # Ubuntu & Debian apt-get update -apt-get -y install strongswan xl2tpd +apt-get -y install strongswan xl2tpd net-tools # CentOS & RHEL yum -y install epel-release -yum --enablerepo=epel -y install strongswan xl2tpd +yum --enablerepo=epel -y install strongswan xl2tpd net-tools # Fedora -yum -y install strongswan xl2tpd +yum -y install strongswan xl2tpd net-tools ``` Create VPN variables (replace with actual values): diff --git a/docs/ikev2-howto-zh.md b/docs/ikev2-howto-zh.md index 469d754..aadbd6d 100644 --- a/docs/ikev2-howto-zh.md +++ b/docs/ikev2-howto-zh.md @@ -109,7 +109,7 @@ Libreswan 支持通过使用 RSA 签名算法的 X.509 Machine Certificates 来 EOF ``` -1. 生成 Certificate Authority (CA) 和 VPN 服务器证书: +1. 生成 Certificate Authority (CA) 和 VPN 服务器证书。 **注:** 使用 "-v" 参数指定证书的有效期(单位:月),例如 "-v 120"。 @@ -152,7 +152,7 @@ Libreswan 支持通过使用 RSA 签名算法的 X.509 Machine Certificates 来 Generating key. This may take a few moments... ``` -1. 生成客户端证书,然后导出 `.p12` 文件,该文件包含客户端证书,私钥以及 CA 证书: +1. 生成客户端证书,然后导出 `.p12` 文件,该文件包含客户端证书,私钥以及 CA 证书。 生成客户端证书: diff --git a/docs/ikev2-howto.md b/docs/ikev2-howto.md index e84000b..9e384ee 100644 --- a/docs/ikev2-howto.md +++ b/docs/ikev2-howto.md @@ -109,7 +109,7 @@ The following example shows how to configure IKEv2 with Libreswan. Commands belo EOF ``` -1. Generate Certificate Authority (CA) and VPN server certificates: +1. Generate Certificate Authority (CA) and VPN server certificates. **Note:** Specify the certificate validity period (in months) with "-v". e.g. "-v 120". @@ -152,7 +152,7 @@ The following example shows how to configure IKEv2 with Libreswan. Commands belo Generating key. This may take a few moments... ``` -1. Generate client certificate(s), then export the `.p12` file that contains the client certificate, private key, and CA certificate: +1. Generate client certificate(s), then export the `.p12` file that contains the client certificate, private key, and CA certificate. Generate client certificate: