diff --git a/README-zh.md b/README-zh.md index cf0ceed..c921fc5 100644 --- a/README-zh.md +++ b/README-zh.md @@ -228,6 +228,16 @@ sudo sh vpn.sh wget https://get.vpnsetup.net/upg -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 ae87fc6..4855e24 100644 --- a/README.md +++ b/README.md @@ -228,6 +228,16 @@ Use this one-liner to update [Libreswan](https://libreswan.org) ([changelog](htt wget https://get.vpnsetup.net/upg -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. diff --git a/docs/uninstall-zh.md b/docs/uninstall-zh.md index 035187a..eb60aa3 100644 --- a/docs/uninstall-zh.md +++ b/docs/uninstall-zh.md @@ -14,6 +14,17 @@ wget -nv -O vpnunst.sh https://get.vpnsetup.net/unst sudo bash vpnunst.sh ``` +
+ +或者,你也可以使用以下命令。 + + +```bash +wget -nv -O vpnunst.sh https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/extras/vpnuninstall.sh +sudo bash vpnunst.sh +``` +
+ 在完成后重启你的服务器。 ## 手动卸载 VPN diff --git a/docs/uninstall.md b/docs/uninstall.md index 3b4ce16..d35f94d 100644 --- a/docs/uninstall.md +++ b/docs/uninstall.md @@ -14,6 +14,17 @@ wget -nv -O vpnunst.sh https://get.vpnsetup.net/unst sudo bash vpnunst.sh ``` +
+ +Alternative script URL. + + +```bash +wget -nv -O vpnunst.sh https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/extras/vpnuninstall.sh +sudo bash vpnunst.sh +``` +
+ When finished, reboot your server. ## Manually uninstall the VPN