1
0
mirror of synced 2024-11-21 20:46:10 +03:00

Update docs

- Update links due to git.io deprecation.
  Ref: https://github.blog/changelog/2022-04-25-git-io-deprecation/
This commit is contained in:
hwdsl2 2022-04-28 08:26:59 -05:00
parent cc709766e9
commit c15d2759c4
6 changed files with 20 additions and 20 deletions

View File

@ -32,7 +32,7 @@ IPsec VPN 可以加密你的网络流量,以防止在通过因特网传送时
使用以下命令快速搭建 IPsec VPN 服务器:
```bash
wget https://git.io/vpnsetup -qO vpn.sh && sudo sh vpn.sh
wget https://get.vpnsetup.net -qO vpn.sh && sudo sh vpn.sh
```
你的 VPN 登录凭证将会被自动随机生成,并在安装完成后显示。
@ -45,7 +45,7 @@ wget https://git.io/vpnsetup -qO vpn.sh && sudo sh vpn.sh
你也可以使用 `curl` 下载:
```bash
curl -fsSL https://git.io/vpnsetup -o vpn.sh && sudo sh vpn.sh
curl -fsSL https://get.vpnsetup.net -o vpn.sh && sudo sh vpn.sh
```
或者,你也可以使用这个链接:
@ -113,13 +113,13 @@ curl -fsSL https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/vpnsetup.sh -o
**选项 1:** 使用脚本随机生成的 VPN 登录凭证(完成后会显示)。
```bash
wget https://git.io/vpnsetup -qO vpn.sh && sudo sh vpn.sh
wget https://get.vpnsetup.net -qO vpn.sh && sudo sh vpn.sh
```
**选项 2:** 编辑脚本并提供你自己的 VPN 登录凭证。
```bash
wget https://git.io/vpnsetup -nv -O vpn.sh
wget https://get.vpnsetup.net -nv -O vpn.sh
nano -w vpn.sh
[替换为你自己的值: YOUR_IPSEC_PSK, YOUR_USERNAME 和 YOUR_PASSWORD]
sudo sh vpn.sh
@ -132,7 +132,7 @@ sudo sh vpn.sh
```bash
# 所有变量值必须用 '单引号' 括起来
# *不要* 在值中使用这些字符: \ " '
wget https://git.io/vpnsetup -nv -O vpn.sh
wget https://get.vpnsetup.net -nv -O vpn.sh
sudo VPN_IPSEC_PSK='你的IPsec预共享密钥' \
VPN_USER='你的VPN用户名' \
VPN_PASSWORD='你的VPN密码' \
@ -176,7 +176,7 @@ sudo VPN_PROTECT_CONFIG=yes sh vpn.sh
你也可以使用 `curl` 下载。例如:
```bash
curl -fsSL https://git.io/vpnsetup -o vpn.sh
curl -fsSL https://get.vpnsetup.net -o vpn.sh
sudo sh vpn.sh
```
@ -225,7 +225,7 @@ sudo sh vpn.sh
使用以下命令更新你的 VPN 服务器上的 [Libreswan](https://libreswan.org)[更新日志](https://github.com/libreswan/libreswan/blob/main/CHANGES) | [通知列表](https://lists.libreswan.org/mailman/listinfo/swan-announce))。
```bash
wget https://git.io/vpnupgrade -qO vpnup.sh && sudo sh vpnup.sh
wget https://get.vpnsetup.net/upg -qO vpnup.sh && sudo sh vpnup.sh
```
<details>

View File

@ -32,7 +32,7 @@ First, prepare your Linux server\* with a fresh install of Ubuntu, Debian or Cen
Use this one-liner to set up an IPsec VPN server:
```bash
wget https://git.io/vpnsetup -qO vpn.sh && sudo sh vpn.sh
wget https://get.vpnsetup.net -qO vpn.sh && sudo sh vpn.sh
```
Your VPN login details will be randomly generated, and displayed when finished.
@ -45,7 +45,7 @@ Alternative one-liners.
You may also use `curl` to download:
```bash
curl -fsSL https://git.io/vpnsetup -o vpn.sh && sudo sh vpn.sh
curl -fsSL https://get.vpnsetup.net -o vpn.sh && sudo sh vpn.sh
```
Alternative setup URL:
@ -113,13 +113,13 @@ To install the VPN, please choose one of the following options:
**Option 1:** Have the script generate random VPN credentials for you (will be displayed when finished).
```bash
wget https://git.io/vpnsetup -qO vpn.sh && sudo sh vpn.sh
wget https://get.vpnsetup.net -qO vpn.sh && sudo sh vpn.sh
```
**Option 2:** Edit the script and provide your own VPN credentials.
```bash
wget https://git.io/vpnsetup -nv -O vpn.sh
wget https://get.vpnsetup.net -nv -O vpn.sh
nano -w vpn.sh
[Replace with your own values: YOUR_IPSEC_PSK, YOUR_USERNAME and YOUR_PASSWORD]
sudo sh vpn.sh
@ -132,7 +132,7 @@ sudo sh vpn.sh
```bash
# All values MUST be placed inside 'single quotes'
# DO NOT use these special characters within values: \ " '
wget https://git.io/vpnsetup -nv -O vpn.sh
wget https://get.vpnsetup.net -nv -O vpn.sh
sudo VPN_IPSEC_PSK='your_ipsec_pre_shared_key' \
VPN_USER='your_vpn_username' \
VPN_PASSWORD='your_vpn_password' \
@ -176,7 +176,7 @@ Click here if you are unable to download using wget.
You may also use `curl` to download. For example:
```bash
curl -fsSL https://git.io/vpnsetup -o vpn.sh
curl -fsSL https://get.vpnsetup.net -o vpn.sh
sudo sh vpn.sh
```
@ -225,7 +225,7 @@ The scripts will backup existing config files before making changes, with `.old-
Use this one-liner to update [Libreswan](https://libreswan.org) ([changelog](https://github.com/libreswan/libreswan/blob/main/CHANGES) | [announce](https://lists.libreswan.org/mailman/listinfo/swan-announce)) on your VPN server.
```bash
wget https://git.io/vpnupgrade -qO vpnup.sh && sudo sh vpnup.sh
wget https://get.vpnsetup.net/upg -qO vpnup.sh && sudo sh vpnup.sh
```
<details>

View File

@ -55,7 +55,7 @@ sudo ikev2.sh
如果你使用了较早版本的 VPN 安装脚本,这是正常的。首先下载 IKEv2 辅助脚本:
```bash
wget https://git.io/ikev2setup -nv -O /opt/src/ikev2.sh
wget https://get.vpnsetup.net/ikev2 -nv -O /opt/src/ikev2.sh
chmod +x /opt/src/ikev2.sh && ln -s /opt/src/ikev2.sh /usr/bin
```
@ -776,7 +776,7 @@ sudo bash ikev2changeaddr.sh
IKEv2 辅助脚本会不时更新,以进行错误修复和改进([更新日志](https://github.com/hwdsl2/setup-ipsec-vpn/commits/master/extras/ikev2setup.sh))。 当有新版本可用时,你可以更新服务器上的 IKEv2 辅助脚本。这是可选的。请注意,这些命令将覆盖任何现有的 `ikev2.sh`
```bash
wget https://git.io/ikev2setup -nv -O /opt/src/ikev2.sh
wget https://get.vpnsetup.net/ikev2 -nv -O /opt/src/ikev2.sh
chmod +x /opt/src/ikev2.sh && ln -s /opt/src/ikev2.sh /usr/bin 2>/dev/null
```

View File

@ -55,7 +55,7 @@ Error: "sudo: ikev2.sh: command not found".
This is normal if you used an older version of the VPN setup script. First, download the IKEv2 helper script:
```bash
wget https://git.io/ikev2setup -nv -O /opt/src/ikev2.sh
wget https://get.vpnsetup.net/ikev2 -nv -O /opt/src/ikev2.sh
chmod +x /opt/src/ikev2.sh && ln -s /opt/src/ikev2.sh /usr/bin
```
@ -778,7 +778,7 @@ sudo bash ikev2changeaddr.sh
The IKEv2 helper script is updated from time to time for bug fixes and improvements ([commit log](https://github.com/hwdsl2/setup-ipsec-vpn/commits/master/extras/ikev2setup.sh)). When a newer version is available, you may optionally update the IKEv2 helper script on your server. Note that these commands will overwrite any existing `ikev2.sh`.
```bash
wget https://git.io/ikev2setup -nv -O /opt/src/ikev2.sh
wget https://get.vpnsetup.net/ikev2 -nv -O /opt/src/ikev2.sh
chmod +x /opt/src/ikev2.sh && ln -s /opt/src/ikev2.sh /usr/bin 2>/dev/null
```

View File

@ -10,7 +10,7 @@
**警告:** 此[辅助脚本](../extras/vpnuninstall.sh)将从你的服务器中删除 IPsec VPN。所有的 VPN 配置将被**永久删除**,并且 Libreswan 和 xl2tpd 将被移除。此操作**不可撤销**
```bash
wget https://git.io/vpnuninstall -nv -O vpnunst.sh
wget -nv -O vpnunst.sh https://bit.ly/vpnuninstall
sudo bash vpnunst.sh
```

View File

@ -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 https://git.io/vpnuninstall -nv -O vpnunst.sh
wget -nv -O vpnunst.sh https://bit.ly/vpnuninstall
sudo bash vpnunst.sh
```