1
0
mirror of synced 2024-11-22 13:06:02 +03:00

Update docs

This commit is contained in:
hwdsl2 2021-08-10 03:43:00 -05:00
parent 50053e3be7
commit 6514fa2cd3
2 changed files with 8 additions and 58 deletions

View File

@ -27,39 +27,14 @@ IPsec VPN 可以加密你的网络流量,以防止在通过因特网传送时
## 快速开始
首先,在你的 Linux 服务器\* 上全新安装以下系统之一。
首先,在你的 Linux 服务器\* 上全新安装以下系统之一:
Ubuntu, Debian, CentOS/RHEL, Rocky Linux, AlmaLinux 或者 Amazon Linux 2
使用以下命令快速搭建 IPsec VPN 服务器:
<details open>
<summary>
Ubuntu & Debian
</summary>
```bash
wget https://git.io/vpnsetup -O vpn.sh && sudo sh vpn.sh && sudo ikev2.sh --auto
wget https://git.io/vpnquickstart -O vpn.sh && sudo sh vpn.sh
```
</details>
<details>
<summary>
CentOS/RHEL, Rocky Linux & AlmaLinux
</summary>
```bash
wget https://git.io/vpnsetup-centos -O vpn.sh && sudo sh vpn.sh && sudo ikev2.sh --auto
```
</details>
<details>
<summary>
Amazon Linux 2
</summary>
```bash
wget https://git.io/vpnsetup-amzn -O vpn.sh && sudo sh vpn.sh && sudo ikev2.sh --auto
```
</details>
你的 VPN 登录凭证将会被自动随机生成,并在安装完成后显示在屏幕上。

View File

@ -27,48 +27,23 @@ We will use [Libreswan](https://libreswan.org/) as the IPsec server, and [xl2tpd
## Quick start
First, prepare your Linux server\* with a fresh install of one of the following OS.
First, prepare your Linux server\* with a fresh install of one of the following OS:
Ubuntu, Debian, CentOS/RHEL, Rocky Linux, AlmaLinux or Amazon Linux 2
Use this one-liner to set up an IPsec VPN server:
<details open>
<summary>
Ubuntu & Debian
</summary>
```bash
wget https://git.io/vpnsetup -O vpn.sh && sudo sh vpn.sh && sudo ikev2.sh --auto
wget https://git.io/vpnquickstart -O vpn.sh && sudo sh vpn.sh
```
</details>
<details>
<summary>
CentOS/RHEL, Rocky Linux & AlmaLinux
</summary>
```bash
wget https://git.io/vpnsetup-centos -O vpn.sh && sudo sh vpn.sh && sudo ikev2.sh --auto
```
</details>
<details>
<summary>
Amazon Linux 2
</summary>
```bash
wget https://git.io/vpnsetup-amzn -O vpn.sh && sudo sh vpn.sh && sudo ikev2.sh --auto
```
</details>
Your VPN login details will be randomly generated, and displayed on the screen when finished.
<details>
<summary>
Click here to see the VPN scripts in action (terminal recording).
Click here to see the VPN script in action (terminal recording).
</summary>
**Note:** This recording is for demonstration purposes only. VPN credentials in this recording are **NOT** valid.
**Note:** This recording is for demo purposes only. VPN credentials in this recording are **NOT** valid.
<p align="center"><img src="docs/images/script-demo.svg"></p>
</details>