1
0
mirror of synced 2024-11-25 14:26:09 +03:00

Update docs

This commit is contained in:
hwdsl2 2022-05-20 01:16:17 -05:00
parent 99f8f1e3d2
commit c983a8d5ba
2 changed files with 8 additions and 92 deletions

View File

@ -22,6 +22,8 @@ wget https://get.vpnsetup.net -qO vpn.sh && sudo sh vpn.sh
你的 VPN 登录凭证将会被自动随机生成,并在安装完成后显示。 你的 VPN 登录凭证将会被自动随机生成,并在安装完成后显示。
安装成功后,你可以在同一台服务器上安装 [OpenVPN](https://github.com/hwdsl2/openvpn-install) 和/或 [WireGuard](https://github.com/hwdsl2/wireguard-install)。这是可选的。
<details> <details>
<summary> <summary>
或者,你也可以使用以下命令。 或者,你也可以使用以下命令。
@ -50,29 +52,6 @@ curl -fsSL https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/vpnsetup.sh -o
<p align="center"><img src="docs/images/script-demo.svg"></p> <p align="center"><img src="docs/images/script-demo.svg"></p>
</details> </details>
<details>
<summary>
可选:搭建 IPsec VPN + OpenVPN + WireGuard 服务器。
</summary>
成功安装 IPsec VPN 后,你可以在同一台服务器上安装 [OpenVPN](https://openvpn.net) 和/或 [WireGuard](https://www.wireguard.com)。这是可选的。
安装 OpenVPN:
```bash
wget https://get.vpnsetup.net/ovpn -nv -O openvpn.sh
sudo bash openvpn.sh
```
安装 WireGuard:
```bash
wget https://get.vpnsetup.net/wg -nv -O wireguard.sh
sudo bash wireguard.sh
```
这些脚本是在 [Nyr/openvpn-install](https://github.com/Nyr/openvpn-install) 和 [wireguard-install](https://github.com/Nyr/wireguard-install) 的基础上稍作改动以提高与 IPsec VPN 的兼容性。你可以在安装后再次运行这些脚本来管理用户或卸载。任何问题请到链接的 GitHub 代码库中报告,而不是这里。
</details>
另外,你也可以使用预构建的 [Docker 镜像](https://github.com/hwdsl2/docker-ipsec-vpn-server/blob/master/README-zh.md)。如需了解其它选项以及客户端配置,请继续阅读以下部分。 另外,你也可以使用预构建的 [Docker 镜像](https://github.com/hwdsl2/docker-ipsec-vpn-server/blob/master/README-zh.md)。如需了解其它选项以及客户端配置,请继续阅读以下部分。
@ -149,6 +128,8 @@ VPN_PASSWORD='你的VPN密码' \
sh vpn.sh sh vpn.sh
``` ```
安装成功后,你可以在同一台服务器上安装 [OpenVPN](https://github.com/hwdsl2/openvpn-install) 和/或 [WireGuard](https://github.com/hwdsl2/wireguard-install)。这是可选的。
<details> <details>
<summary> <summary>
高级用户可以自定义 IKEv2 选项。这是可选的。 高级用户可以自定义 IKEv2 选项。这是可选的。
@ -180,29 +161,6 @@ sudo VPN_PROTECT_CONFIG=yes sh vpn.sh
</details> </details>
<details> <details>
<summary> <summary>
可选:搭建 IPsec VPN + OpenVPN + WireGuard 服务器。
</summary>
成功安装 IPsec VPN 后,你可以在同一台服务器上安装 [OpenVPN](https://openvpn.net) 和/或 [WireGuard](https://www.wireguard.com)。这是可选的。
安装 OpenVPN:
```bash
wget https://get.vpnsetup.net/ovpn -nv -O openvpn.sh
sudo bash openvpn.sh
```
安装 WireGuard:
```bash
wget https://get.vpnsetup.net/wg -nv -O wireguard.sh
sudo bash wireguard.sh
```
这些脚本是在 [Nyr/openvpn-install](https://github.com/Nyr/openvpn-install) 和 [wireguard-install](https://github.com/Nyr/wireguard-install) 的基础上稍作改动以提高与 IPsec VPN 的兼容性。你可以在安装后再次运行这些脚本来管理用户或卸载。任何问题请到链接的 GitHub 代码库中报告,而不是这里。
</details>
<details>
<summary>
如果无法下载,请点这里。 如果无法下载,请点这里。
</summary> </summary>

View File

@ -22,6 +22,8 @@ wget https://get.vpnsetup.net -qO vpn.sh && sudo sh vpn.sh
Your VPN login details will be randomly generated, and displayed when finished. Your VPN login details will be randomly generated, and displayed when finished.
After successful installation, you may optionally install [OpenVPN](https://github.com/hwdsl2/openvpn-install) and/or [WireGuard](https://github.com/hwdsl2/wireguard-install) on the same server.
<details> <details>
<summary> <summary>
Alternative one-liners. Alternative one-liners.
@ -50,29 +52,6 @@ See the VPN script in action (terminal recording).
<p align="center"><img src="docs/images/script-demo.svg"></p> <p align="center"><img src="docs/images/script-demo.svg"></p>
</details> </details>
<details>
<summary>
Optional: Set up an IPsec VPN + OpenVPN + WireGuard server.
</summary>
After successful installation of the IPsec VPN, you may optionally install [OpenVPN](https://openvpn.net) and/or [WireGuard](https://www.wireguard.com) on the same server.
To install OpenVPN:
```bash
wget https://get.vpnsetup.net/ovpn -nv -O openvpn.sh
sudo bash openvpn.sh
```
To install WireGuard:
```bash
wget https://get.vpnsetup.net/wg -nv -O wireguard.sh
sudo bash wireguard.sh
```
These scripts are based on [Nyr/openvpn-install](https://github.com/Nyr/openvpn-install) and [wireguard-install](https://github.com/Nyr/wireguard-install), with minor changes for compatibility with the IPsec VPN. You may run these scripts again after install to manage users or uninstall. Please report any issues to the linked GitHub repositories, not here.
</details>
A pre-built [Docker image](https://github.com/hwdsl2/docker-ipsec-vpn-server) is also available. For other options and client setup, read the sections below. A pre-built [Docker image](https://github.com/hwdsl2/docker-ipsec-vpn-server) is also available. For other options and client setup, read the sections below.
@ -149,6 +128,8 @@ VPN_PASSWORD='your_vpn_password' \
sh vpn.sh sh vpn.sh
``` ```
After successful installation, you may optionally install [OpenVPN](https://github.com/hwdsl2/openvpn-install) and/or [WireGuard](https://github.com/hwdsl2/wireguard-install) on the same server.
<details> <details>
<summary> <summary>
Advanced users can optionally customize IKEv2 options. Advanced users can optionally customize IKEv2 options.
@ -180,29 +161,6 @@ sudo VPN_PROTECT_CONFIG=yes sh vpn.sh
</details> </details>
<details> <details>
<summary> <summary>
Optional: Set up an IPsec VPN + OpenVPN + WireGuard server.
</summary>
After successful installation of the IPsec VPN, you may optionally install [OpenVPN](https://openvpn.net) and/or [WireGuard](https://www.wireguard.com) on the same server.
To install OpenVPN:
```bash
wget https://get.vpnsetup.net/ovpn -nv -O openvpn.sh
sudo bash openvpn.sh
```
To install WireGuard:
```bash
wget https://get.vpnsetup.net/wg -nv -O wireguard.sh
sudo bash wireguard.sh
```
These scripts are based on [Nyr/openvpn-install](https://github.com/Nyr/openvpn-install) and [wireguard-install](https://github.com/Nyr/wireguard-install), with minor changes for compatibility with the IPsec VPN. You may run these scripts again after install to manage users or uninstall. Please report any issues to the linked GitHub repositories, not here.
</details>
<details>
<summary>
Click here if you are unable to download. Click here if you are unable to download.
</summary> </summary>