Update docs
This commit is contained in:
parent
7ce3c29e15
commit
368e4c0f62
12
README-zh.md
12
README-zh.md
@ -228,18 +228,6 @@ sudo sh vpn.sh
|
||||
wget https://get.vpnsetup.net/upg -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`。
|
||||
|
||||
**注:** `xl2tpd` 可以使用系统的软件包管理器进行更新,例如 Ubuntu/Debian 上的 `apt-get`。
|
||||
|
12
README.md
12
README.md
@ -228,18 +228,6 @@ 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
|
||||
```
|
||||
|
||||
<details>
|
||||
<summary>
|
||||
Alternative one-liner.
|
||||
</summary>
|
||||
|
||||
Alternative update URL:
|
||||
|
||||
```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`.
|
||||
|
||||
**Note:** `xl2tpd` can be updated using your system's package manager, such as `apt-get` on Ubuntu/Debian.
|
||||
|
@ -44,7 +44,7 @@ sudo VPN_DNS_NAME='vpn.example.com' ikev2.sh --auto
|
||||
|
||||
```bash
|
||||
# 下载脚本
|
||||
wget -nv -O ikev2onlymode.sh https://bit.ly/ikev2onlymode
|
||||
wget -nv -O ikev2onlymode.sh https://get.vpnsetup.net/ikev2only
|
||||
# 运行脚本并按提示操作
|
||||
sudo bash ikev2onlymode.sh
|
||||
```
|
||||
|
@ -44,7 +44,7 @@ To enable IKEv2-only mode, first install the VPN server and set up IKEv2 using i
|
||||
|
||||
```bash
|
||||
# Download the script
|
||||
wget -nv -O ikev2onlymode.sh https://bit.ly/ikev2onlymode
|
||||
wget -nv -O ikev2onlymode.sh https://get.vpnsetup.net/ikev2only
|
||||
# Run the script and follow the prompts
|
||||
sudo bash ikev2onlymode.sh
|
||||
```
|
||||
|
@ -764,7 +764,7 @@ REG ADD HKLM\SYSTEM\CurrentControlSet\Services\RasMan\Parameters /v NegotiateDH2
|
||||
|
||||
```bash
|
||||
# 下载脚本
|
||||
wget -nv -O ikev2changeaddr.sh https://bit.ly/ikev2changeaddr
|
||||
wget -nv -O ikev2changeaddr.sh https://get.vpnsetup.net/ikev2addr
|
||||
# 运行脚本并按照提示操作
|
||||
sudo bash ikev2changeaddr.sh
|
||||
```
|
||||
|
@ -766,7 +766,7 @@ To change the server address, run this [helper script](../extras/ikev2changeaddr
|
||||
|
||||
```bash
|
||||
# Download the script
|
||||
wget -nv -O ikev2changeaddr.sh https://bit.ly/ikev2changeaddr
|
||||
wget -nv -O ikev2changeaddr.sh https://get.vpnsetup.net/ikev2addr
|
||||
# Run the script and follow the prompts
|
||||
sudo bash ikev2changeaddr.sh
|
||||
```
|
||||
|
@ -35,7 +35,7 @@ sudo addvpnuser.sh
|
||||
如果你使用了较早版本的 VPN 安装脚本,这是正常的。首先下载辅助脚本:
|
||||
|
||||
```bash
|
||||
wget -nv -O /opt/src/addvpnuser.sh https://bit.ly/addvpnuser
|
||||
wget -nv -O /opt/src/addvpnuser.sh https://get.vpnsetup.net/adduser
|
||||
chmod +x /opt/src/addvpnuser.sh && ln -s /opt/src/addvpnuser.sh /usr/bin
|
||||
```
|
||||
|
||||
@ -70,7 +70,7 @@ sudo delvpnuser.sh
|
||||
如果你使用了较早版本的 VPN 安装脚本,这是正常的。首先下载辅助脚本:
|
||||
|
||||
```bash
|
||||
wget -nv -O /opt/src/delvpnuser.sh https://bit.ly/delvpnuser
|
||||
wget -nv -O /opt/src/delvpnuser.sh https://get.vpnsetup.net/deluser
|
||||
chmod +x /opt/src/delvpnuser.sh && ln -s /opt/src/delvpnuser.sh /usr/bin
|
||||
```
|
||||
|
||||
@ -92,7 +92,7 @@ sudo delvpnuser.sh '要删除的用户名'
|
||||
首先下载脚本:
|
||||
|
||||
```bash
|
||||
wget -nv -O updatevpnusers.sh https://bit.ly/updatevpnusers
|
||||
wget -nv -O updatevpnusers.sh https://get.vpnsetup.net/updateusers
|
||||
```
|
||||
|
||||
要使用这个脚本,从以下选项中选择一个:
|
||||
|
@ -35,7 +35,7 @@ Error: "sudo: addvpnuser.sh: command not found".
|
||||
This is normal if you used an older version of the VPN setup script. First, download the helper script:
|
||||
|
||||
```bash
|
||||
wget -nv -O /opt/src/addvpnuser.sh https://bit.ly/addvpnuser
|
||||
wget -nv -O /opt/src/addvpnuser.sh https://get.vpnsetup.net/adduser
|
||||
chmod +x /opt/src/addvpnuser.sh && ln -s /opt/src/addvpnuser.sh /usr/bin
|
||||
```
|
||||
|
||||
@ -70,7 +70,7 @@ Error: "sudo: delvpnuser.sh: command not found".
|
||||
This is normal if you used an older version of the VPN setup script. First, download the helper script:
|
||||
|
||||
```bash
|
||||
wget -nv -O /opt/src/delvpnuser.sh https://bit.ly/delvpnuser
|
||||
wget -nv -O /opt/src/delvpnuser.sh https://get.vpnsetup.net/deluser
|
||||
chmod +x /opt/src/delvpnuser.sh && ln -s /opt/src/delvpnuser.sh /usr/bin
|
||||
```
|
||||
|
||||
@ -92,7 +92,7 @@ Remove all existing VPN users and replace with the list of users you specify.
|
||||
First, download the script:
|
||||
|
||||
```bash
|
||||
wget -nv -O updatevpnusers.sh https://bit.ly/updatevpnusers
|
||||
wget -nv -O updatevpnusers.sh https://get.vpnsetup.net/updateusers
|
||||
```
|
||||
|
||||
To use this script, choose one of the following options:
|
||||
|
@ -10,7 +10,7 @@
|
||||
**警告:** 此[辅助脚本](../extras/vpnuninstall.sh)将从你的服务器中删除 IPsec VPN。所有的 VPN 配置将被**永久删除**,并且 Libreswan 和 xl2tpd 将被移除。此操作**不可撤销**!
|
||||
|
||||
```bash
|
||||
wget -nv -O vpnunst.sh https://bit.ly/vpnuninstall
|
||||
wget -nv -O vpnunst.sh https://get.vpnsetup.net/unst
|
||||
sudo bash vpnunst.sh
|
||||
```
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
**Warning:** This [helper script](../extras/vpnuninstall.sh) will remove IPsec VPN from your server. All VPN configuration will be **permanently deleted**, and Libreswan and xl2tpd will be removed. This **cannot be undone**!
|
||||
|
||||
```bash
|
||||
wget -nv -O vpnunst.sh https://bit.ly/vpnuninstall
|
||||
wget -nv -O vpnunst.sh https://get.vpnsetup.net/unst
|
||||
sudo bash vpnunst.sh
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user