1
0
mirror of synced 2024-11-22 04:56:03 +03:00

Update docs

This commit is contained in:
hwdsl2 2022-04-11 22:40:08 -05:00
parent a1ab13d9a9
commit 30c79817d0
2 changed files with 52 additions and 4 deletions

View File

@ -39,14 +39,21 @@ wget https://git.io/vpnsetup -qO vpn.sh && sudo sh vpn.sh
<details> <details>
<summary> <summary>
或者,你也可以使用 curl 下载 或者,你也可以使用这些命令
</summary> </summary>
你也可以使用 `curl` 下载:
```bash ```bash
curl -fsSL https://git.io/vpnsetup -o vpn.sh && sudo sh vpn.sh curl -fsSL https://git.io/vpnsetup -o vpn.sh && sudo sh vpn.sh
``` ```
</details>
或者,你也可以使用这个链接:
```bash
curl -fsSL https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/vpnsetup.sh -o vpn.sh && sudo sh vpn.sh
```
</details>
<details> <details>
<summary> <summary>
查看 VPN 脚本的示例输出(终端记录)。 查看 VPN 脚本的示例输出(终端记录)。
@ -173,6 +180,13 @@ curl -fsSL https://git.io/vpnsetup -o vpn.sh
sudo sh vpn.sh sudo sh vpn.sh
``` ```
或者,你也可以使用这个链接:
```bash
curl -fsSL https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/vpnsetup.sh -o vpn.sh
sudo sh vpn.sh
```
或者,打开 [vpnsetup.sh](vpnsetup.sh) 并点击右方的 `Raw` 按钮。按快捷键 `Ctrl/Cmd+A` 全选,`Ctrl/Cmd+C` 复制,然后粘贴到你喜欢的编辑器。 或者,打开 [vpnsetup.sh](vpnsetup.sh) 并点击右方的 `Raw` 按钮。按快捷键 `Ctrl/Cmd+A` 全选,`Ctrl/Cmd+C` 复制,然后粘贴到你喜欢的编辑器。
</details> </details>
@ -214,6 +228,16 @@ sudo sh vpn.sh
wget https://git.io/vpnupgrade -qO vpnup.sh && sudo sh vpnup.sh wget https://git.io/vpnupgrade -qO vpnup.sh && sudo sh vpnup.sh
``` ```
<details>
<summary>
或者,你也可以使用以下命令。
</summary>
```bash
wget https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/extras/vpnupgrade.sh -qO vpnup.sh && sudo sh vpnup.sh
```
</details>
当前支持的 Libreswan 最新版本是 `4.6`。查看已安装版本:`ipsec --version`。 当前支持的 Libreswan 最新版本是 `4.6`。查看已安装版本:`ipsec --version`。
**注:** `xl2tpd` 可以使用系统的软件包管理器进行更新,例如 Ubuntu/Debian 上的 `apt-get` **注:** `xl2tpd` 可以使用系统的软件包管理器进行更新,例如 Ubuntu/Debian 上的 `apt-get`

View File

@ -39,14 +39,21 @@ Your VPN login details will be randomly generated, and displayed when finished.
<details> <details>
<summary> <summary>
Alternative one-liner using curl. Alternative one-liners.
</summary> </summary>
You may also use `curl` to download:
```bash ```bash
curl -fsSL https://git.io/vpnsetup -o vpn.sh && sudo sh vpn.sh curl -fsSL https://git.io/vpnsetup -o vpn.sh && sudo sh vpn.sh
``` ```
</details>
Alternative setup URL:
```bash
curl -fsSL https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/vpnsetup.sh -o vpn.sh && sudo sh vpn.sh
```
</details>
<details> <details>
<summary> <summary>
See the VPN script in action (terminal recording). See the VPN script in action (terminal recording).
@ -173,6 +180,13 @@ curl -fsSL https://git.io/vpnsetup -o vpn.sh
sudo sh vpn.sh sudo sh vpn.sh
``` ```
Alternative setup URL:
```bash
curl -fsSL https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/vpnsetup.sh -o vpn.sh
sudo sh vpn.sh
```
Alternatively, open [vpnsetup.sh](vpnsetup.sh) and click the `Raw` button on the right. Press `Ctrl/Cmd+A` to select all, `Ctrl/Cmd+C` to copy, then paste into your favorite editor. Alternatively, open [vpnsetup.sh](vpnsetup.sh) and click the `Raw` button on the right. Press `Ctrl/Cmd+A` to select all, `Ctrl/Cmd+C` to copy, then paste into your favorite editor.
</details> </details>
@ -214,6 +228,16 @@ Use this one-liner to update [Libreswan](https://libreswan.org) ([changelog](htt
wget https://git.io/vpnupgrade -qO vpnup.sh && sudo sh vpnup.sh wget https://git.io/vpnupgrade -qO vpnup.sh && sudo sh vpnup.sh
``` ```
<details>
<summary>
Alternative one-liner.
</summary>
```bash
wget https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/extras/vpnupgrade.sh -qO vpnup.sh && sudo sh vpnup.sh
```
</details>
The latest supported Libreswan version is `4.6`. Check installed version: `ipsec --version`. The latest supported Libreswan version is `4.6`. Check installed version: `ipsec --version`.
**Note:** `xl2tpd` can be updated using your system's package manager, such as `apt-get` on Ubuntu/Debian. **Note:** `xl2tpd` can be updated using your system's package manager, such as `apt-get` on Ubuntu/Debian.