Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
hwdsl2 committed May 1, 2022
1 parent 7ce3c29 commit 368e4c0
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 36 deletions.
12 changes: 0 additions & 12 deletions README-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
12 changes: 0 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion docs/advanced-usage-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down
2 changes: 1 addition & 1 deletion docs/advanced-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down
2 changes: 1 addition & 1 deletion docs/ikev2-howto-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down
2 changes: 1 addition & 1 deletion docs/ikev2-howto.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down
6 changes: 3 additions & 3 deletions docs/manage-users-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down Expand Up @@ -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
```

Expand All @@ -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
```

要使用这个脚本,从以下选项中选择一个:
Expand Down
6 changes: 3 additions & 3 deletions docs/manage-users.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down Expand Up @@ -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
```

Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion docs/uninstall-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
2 changes: 1 addition & 1 deletion docs/uninstall.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down

0 comments on commit 368e4c0

Please sign in to comment.