1
0
mirror of synced 2024-11-27 07:16:05 +03:00

Compare commits

...

2 Commits

Author SHA1 Message Date
hwdsl2
c15d2759c4 Update docs
- Update links due to git.io deprecation.
  Ref: https://github.blog/changelog/2022-04-25-git-io-deprecation/
2022-04-28 08:26:59 -05:00
hwdsl2
cc709766e9 Update links
- Update links due to git.io deprecation.
  Ref: https://github.blog/changelog/2022-04-25-git-io-deprecation/
2022-04-28 08:24:22 -05:00
9 changed files with 25 additions and 25 deletions

View File

@ -32,7 +32,7 @@ IPsec VPN 可以加密你的网络流量,以防止在通过因特网传送时
使用以下命令快速搭建 IPsec VPN 服务器: 使用以下命令快速搭建 IPsec VPN 服务器:
```bash ```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 登录凭证将会被自动随机生成,并在安装完成后显示。 你的 VPN 登录凭证将会被自动随机生成,并在安装完成后显示。
@ -45,7 +45,7 @@ wget https://git.io/vpnsetup -qO vpn.sh && sudo sh vpn.sh
你也可以使用 `curl` 下载: 你也可以使用 `curl` 下载:
```bash ```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 登录凭证(完成后会显示)。 **选项 1:** 使用脚本随机生成的 VPN 登录凭证(完成后会显示)。
```bash ```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 登录凭证。 **选项 2:** 编辑脚本并提供你自己的 VPN 登录凭证。
```bash ```bash
wget https://git.io/vpnsetup -nv -O vpn.sh wget https://get.vpnsetup.net -nv -O vpn.sh
nano -w vpn.sh nano -w vpn.sh
[替换为你自己的值: YOUR_IPSEC_PSK, YOUR_USERNAME 和 YOUR_PASSWORD] [替换为你自己的值: YOUR_IPSEC_PSK, YOUR_USERNAME 和 YOUR_PASSWORD]
sudo sh vpn.sh sudo sh vpn.sh
@ -132,7 +132,7 @@ sudo sh vpn.sh
```bash ```bash
# 所有变量值必须用 '单引号' 括起来 # 所有变量值必须用 '单引号' 括起来
# *不要* 在值中使用这些字符: \ " ' # *不要* 在值中使用这些字符: \ " '
wget https://git.io/vpnsetup -nv -O vpn.sh wget https://get.vpnsetup.net -nv -O vpn.sh
sudo VPN_IPSEC_PSK='你的IPsec预共享密钥' \ sudo VPN_IPSEC_PSK='你的IPsec预共享密钥' \
VPN_USER='你的VPN用户名' \ VPN_USER='你的VPN用户名' \
VPN_PASSWORD='你的VPN密码' \ VPN_PASSWORD='你的VPN密码' \
@ -176,7 +176,7 @@ sudo VPN_PROTECT_CONFIG=yes sh vpn.sh
你也可以使用 `curl` 下载。例如: 你也可以使用 `curl` 下载。例如:
```bash ```bash
curl -fsSL https://git.io/vpnsetup -o vpn.sh curl -fsSL https://get.vpnsetup.net -o vpn.sh
sudo sh 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))。 使用以下命令更新你的 VPN 服务器上的 [Libreswan](https://libreswan.org)[更新日志](https://github.com/libreswan/libreswan/blob/main/CHANGES) | [通知列表](https://lists.libreswan.org/mailman/listinfo/swan-announce))。
```bash ```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> <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: Use this one-liner to set up an IPsec VPN server:
```bash ```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. 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: You may also use `curl` to download:
```bash ```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: 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). **Option 1:** Have the script generate random VPN credentials for you (will be displayed when finished).
```bash ```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. **Option 2:** Edit the script and provide your own VPN credentials.
```bash ```bash
wget https://git.io/vpnsetup -nv -O vpn.sh wget https://get.vpnsetup.net -nv -O vpn.sh
nano -w vpn.sh nano -w vpn.sh
[Replace with your own values: YOUR_IPSEC_PSK, YOUR_USERNAME and YOUR_PASSWORD] [Replace with your own values: YOUR_IPSEC_PSK, YOUR_USERNAME and YOUR_PASSWORD]
sudo sh vpn.sh sudo sh vpn.sh
@ -132,7 +132,7 @@ sudo sh vpn.sh
```bash ```bash
# All values MUST be placed inside 'single quotes' # All values MUST be placed inside 'single quotes'
# DO NOT use these special characters within values: \ " ' # 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' \ sudo VPN_IPSEC_PSK='your_ipsec_pre_shared_key' \
VPN_USER='your_vpn_username' \ VPN_USER='your_vpn_username' \
VPN_PASSWORD='your_vpn_password' \ 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: You may also use `curl` to download. For example:
```bash ```bash
curl -fsSL https://git.io/vpnsetup -o vpn.sh curl -fsSL https://get.vpnsetup.net -o vpn.sh
sudo sh 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. 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 ```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> <details>

View File

@ -4,4 +4,4 @@ export VPN_IPSEC_PSK=$1
export VPN_USER=$2 export VPN_USER=$2
export VPN_PASSWORD=$3 export VPN_PASSWORD=$3
wget -t 3 -T 30 -nv -O vpn.sh https://git.io/vpnsetup && sh vpn.sh wget -t 3 -T 30 -nv -O vpn.sh https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/vpnsetup.sh && sh vpn.sh

View File

@ -55,7 +55,7 @@ sudo ikev2.sh
如果你使用了较早版本的 VPN 安装脚本,这是正常的。首先下载 IKEv2 辅助脚本: 如果你使用了较早版本的 VPN 安装脚本,这是正常的。首先下载 IKEv2 辅助脚本:
```bash ```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 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` IKEv2 辅助脚本会不时更新,以进行错误修复和改进([更新日志](https://github.com/hwdsl2/setup-ipsec-vpn/commits/master/extras/ikev2setup.sh))。 当有新版本可用时,你可以更新服务器上的 IKEv2 辅助脚本。这是可选的。请注意,这些命令将覆盖任何现有的 `ikev2.sh`
```bash ```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 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: This is normal if you used an older version of the VPN setup script. First, download the IKEv2 helper script:
```bash ```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 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`. 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 ```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 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 将被移除。此操作**不可撤销** **警告:** 此[辅助脚本](../extras/vpnuninstall.sh)将从你的服务器中删除 IPsec VPN。所有的 VPN 配置将被**永久删除**,并且 Libreswan 和 xl2tpd 将被移除。此操作**不可撤销**
```bash ```bash
wget https://git.io/vpnuninstall -nv -O vpnunst.sh wget -nv -O vpnunst.sh https://bit.ly/vpnuninstall
sudo bash vpnunst.sh 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**! **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 ```bash
wget https://git.io/vpnuninstall -nv -O vpnunst.sh wget -nv -O vpnunst.sh https://bit.ly/vpnuninstall
sudo bash vpnunst.sh sudo bash vpnunst.sh
``` ```

View File

@ -71,7 +71,7 @@ cat 1>&2 <<EOF
Error: Libreswan version '$swan_ver' is not supported. Error: Libreswan version '$swan_ver' is not supported.
IKEv2-only mode requires Libreswan 4.2 or newer. IKEv2-only mode requires Libreswan 4.2 or newer.
To update Libreswan, run: To update Libreswan, run:
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
EOF EOF
exit 1 exit 1
fi fi

View File

@ -118,7 +118,7 @@ cat 1>&2 <<EOF
Error: Libreswan version '$swan_ver' is not supported. Error: Libreswan version '$swan_ver' is not supported.
This script requires Libreswan 3.23 or newer. This script requires Libreswan 3.23 or newer.
To update Libreswan, run: To update Libreswan, run:
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
EOF EOF
exit 1 exit 1
fi fi
@ -151,7 +151,7 @@ confirm_or_abort() {
show_header() { show_header() {
cat <<'EOF' cat <<'EOF'
IKEv2 Script Copyright (c) 2020-2022 Lin Song 27 Apr 2022 IKEv2 Script Copyright (c) 2020-2022 Lin Song 28 Apr 2022
EOF EOF
} }
@ -1288,7 +1288,7 @@ check_swan_update() {
cat <<EOF cat <<EOF
Note: A newer version of Libreswan ($swan_ver_latest) is available. Note: A newer version of Libreswan ($swan_ver_latest) is available.
To update, run: To update, run:
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
EOF EOF
fi fi