1
0
mirror of synced 2025-02-16 20:13:19 +03:00

Update docs

This commit is contained in:
hwdsl2 2020-05-03 01:59:37 -05:00
parent 7076376aac
commit 9e6b26b1b2
4 changed files with 12 additions and 12 deletions

View File

@ -384,21 +384,21 @@ ipsec whack --trafficstatus
## 使用命令行配置 Linux VPN 客户端
以下步骤是基于 [Peter Sanford 的工作](https://gist.github.com/psanford/42c550a1a6ad3cb70b13e4aaa94ddb1c)。这些命令必须在你的 VPN 客户端上使用 `root` 账户运行。
在成功 <a href="../README-zh.md" target="_blank">搭建自己的 VPN 服务器</a> 之后,按照下面的步骤来使用命令行配置 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 变量 (替换为你自己的值):

View File

@ -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 <a href="https://github.com/hwdsl2/setup-ipsec-vpn" target="_blank">setting up your own VPN server</a>, 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):

View File

@ -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 证书
生成客户端证书:

View File

@ -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: