diff --git a/README-zh.md b/README-zh.md index bab9636..dc94360 100644 --- a/README-zh.md +++ b/README-zh.md @@ -39,14 +39,21 @@ wget https://git.io/vpnsetup -qO vpn.sh && sudo sh vpn.sh
-或者,你也可以使用 curl 下载。 +或者,你也可以使用这些命令。 +你也可以使用 `curl` 下载: + ```bash curl -fsSL https://git.io/vpnsetup -o 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 +``` +
查看 VPN 脚本的示例输出(终端记录)。 @@ -173,6 +180,13 @@ curl -fsSL https://git.io/vpnsetup -o 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` 复制,然后粘贴到你喜欢的编辑器。
@@ -214,6 +228,16 @@ sudo sh vpn.sh wget https://git.io/vpnupgrade -qO vpnup.sh && sudo sh vpnup.sh ``` +
+ +或者,你也可以使用以下命令。 + + +```bash +wget https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/extras/vpnupgrade.sh -qO vpnup.sh && sudo sh vpnup.sh +``` +
+ 当前支持的 Libreswan 最新版本是 `4.6`。查看已安装版本:`ipsec --version`。 **注:** `xl2tpd` 可以使用系统的软件包管理器进行更新,例如 Ubuntu/Debian 上的 `apt-get`。 diff --git a/README.md b/README.md index d1a26d7..05a9855 100644 --- a/README.md +++ b/README.md @@ -39,14 +39,21 @@ Your VPN login details will be randomly generated, and displayed when finished.
-Alternative one-liner using curl. +Alternative one-liners. +You may also use `curl` to download: + ```bash curl -fsSL https://git.io/vpnsetup -o 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 +``` +
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 ``` +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.
@@ -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 ``` +
+ +Alternative one-liner. + + +```bash +wget https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/extras/vpnupgrade.sh -qO vpnup.sh && sudo sh vpnup.sh +``` +
+ 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.