From 9e10fb43bb1861f0c91bf6e6a7d9b501b5ea5a01 Mon Sep 17 00:00:00 2001 From: hwdsl2 Date: Sun, 15 May 2022 00:38:32 -0500 Subject: [PATCH] Update docs --- README-zh.md | 4 ---- README.md | 4 ---- docs/advanced-usage-zh.md | 8 -------- docs/advanced-usage.md | 8 -------- docs/ikev2-howto-zh.md | 18 ------------------ docs/ikev2-howto.md | 18 ------------------ docs/manage-users-zh.md | 12 ------------ docs/manage-users.md | 12 ------------ docs/uninstall-zh.md | 8 -------- docs/uninstall.md | 8 -------- 10 files changed, 100 deletions(-) diff --git a/README-zh.md b/README-zh.md index 39ccdd2..7a3eed5 100644 --- a/README-zh.md +++ b/README-zh.md @@ -38,8 +38,6 @@ curl -fsSL https://get.vpnsetup.net -o vpn.sh && sudo sh vpn.sh ```bash curl -fsSL https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/vpnsetup.sh -o vpn.sh && sudo sh vpn.sh ``` - -如果无法下载,点[这里](https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/vpnsetup.sh)查看脚本。按快捷键 `Ctrl/Cmd+A` 全选,`Ctrl/Cmd+C` 复制,然后粘贴到你喜欢的编辑器。
@@ -231,8 +229,6 @@ curl -fsSL https://get.vpnsetup.net/upg -o vpnup.sh && sudo sh vpnup.sh ```bash curl -fsSL https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/extras/vpnupgrade.sh -o vpnup.sh && sudo sh vpnup.sh ``` - -如果无法下载,点[这里](https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/vpnupgrade.sh)查看脚本。按快捷键 `Ctrl/Cmd+A` 全选,`Ctrl/Cmd+C` 复制,然后粘贴到你喜欢的编辑器。
当前支持的 Libreswan 最新版本是 `4.6`。查看已安装版本:`ipsec --version`。 diff --git a/README.md b/README.md index 866c443..d8f4a66 100644 --- a/README.md +++ b/README.md @@ -38,8 +38,6 @@ Alternative setup URL: ```bash curl -fsSL https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/vpnsetup.sh -o vpn.sh && sudo sh vpn.sh ``` - -If you are unable to download, click [here](https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/vpnsetup.sh) to view the script. Press `Ctrl/Cmd+A` to select all, `Ctrl/Cmd+C` to copy, then paste into your favorite editor.
@@ -231,8 +229,6 @@ Alternative update URL: ```bash curl -fsSL https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/extras/vpnupgrade.sh -o vpnup.sh && sudo sh vpnup.sh ``` - -If you are unable to download, click [here](https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/vpnupgrade.sh) to view the script. Press `Ctrl/Cmd+A` to select all, `Ctrl/Cmd+C` to copy, then paste into your favorite editor.
The latest supported Libreswan version is `4.6`. Check installed version: `ipsec --version`. diff --git a/docs/advanced-usage-zh.md b/docs/advanced-usage-zh.md index 89e90ec..3fd5f15 100644 --- a/docs/advanced-usage-zh.md +++ b/docs/advanced-usage-zh.md @@ -50,14 +50,6 @@ wget -nv -O ikev2onlymode.sh https://get.vpnsetup.net/ikev2only sudo bash ikev2onlymode.sh ``` -
- -如果无法下载,请点这里。 - - -如果无法下载,点[这里](https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/ikev2onlymode.sh)查看脚本。按快捷键 `Ctrl/Cmd+A` 全选,`Ctrl/Cmd+C` 复制,然后粘贴到你喜欢的编辑器。 -
- 要禁用仅限 IKEv2 模式,再次运行辅助脚本并选择适当的选项。
diff --git a/docs/advanced-usage.md b/docs/advanced-usage.md index 8c0f186..efbf179 100644 --- a/docs/advanced-usage.md +++ b/docs/advanced-usage.md @@ -50,14 +50,6 @@ wget -nv -O ikev2onlymode.sh https://get.vpnsetup.net/ikev2only sudo bash ikev2onlymode.sh ``` -
- -Click here if you are unable to download. - - -If you are unable to download, click [here](https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/ikev2onlymode.sh) to view the script. Press `Ctrl/Cmd+A` to select all, `Ctrl/Cmd+C` to copy, then paste into your favorite editor. -
- To disable IKEv2-only mode, run the helper script again and select the appropriate option.
diff --git a/docs/ikev2-howto-zh.md b/docs/ikev2-howto-zh.md index b30f902..72278c2 100644 --- a/docs/ikev2-howto-zh.md +++ b/docs/ikev2-howto-zh.md @@ -62,8 +62,6 @@ chmod +x /opt/src/ikev2.sh && ln -s /opt/src/ikev2.sh /usr/bin ``` 然后按照上面的说明运行脚本。 - -如果无法下载,点[这里](https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/ikev2setup.sh)查看脚本。按快捷键 `Ctrl/Cmd+A` 全选,`Ctrl/Cmd+C` 复制,然后粘贴到你喜欢的编辑器。
@@ -777,14 +775,6 @@ wget -nv -O ikev2changeaddr.sh https://get.vpnsetup.net/ikev2addr sudo bash ikev2changeaddr.sh ``` -
- -如果无法下载,请点这里。 - - -如果无法下载,点[这里](https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/ikev2changeaddr.sh)查看脚本。按快捷键 `Ctrl/Cmd+A` 全选,`Ctrl/Cmd+C` 复制,然后粘贴到你喜欢的编辑器。 -
- **重要:** 运行此脚本后,你必须手动更新任何现有 IKEv2 客户端设备上的服务器地址以及 Remote ID(如果适用)。对于 iOS 客户端,你需要使用 IKEv2 [辅助脚本](#使用辅助脚本配置-ikev2) 导出然后重新导入客户端配置。 ## 更新 IKEv2 辅助脚本 @@ -796,14 +786,6 @@ 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 ``` -
- -如果无法下载,请点这里。 - - -如果无法下载,点[这里](https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/ikev2setup.sh)查看脚本。按快捷键 `Ctrl/Cmd+A` 全选,`Ctrl/Cmd+C` 复制,然后粘贴到你喜欢的编辑器。 -
- ## 手动配置 IKEv2 除了使用 [辅助脚本](#使用辅助脚本配置-ikev2) 之外,高级用户也可以手动在 VPN 服务器上配置 IKEv2。在继续之前,推荐 [升级 Libreswan](../README-zh.md#升级libreswan) 到最新版本。 diff --git a/docs/ikev2-howto.md b/docs/ikev2-howto.md index 8d907c3..ac18d1f 100644 --- a/docs/ikev2-howto.md +++ b/docs/ikev2-howto.md @@ -62,8 +62,6 @@ chmod +x /opt/src/ikev2.sh && ln -s /opt/src/ikev2.sh /usr/bin ``` Then run the script using the instructions above. - -If you are unable to download, click [here](https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/ikev2setup.sh) to view the script. Press `Ctrl/Cmd+A` to select all, `Ctrl/Cmd+C` to copy, then paste into your favorite editor.
@@ -779,14 +777,6 @@ wget -nv -O ikev2changeaddr.sh https://get.vpnsetup.net/ikev2addr sudo bash ikev2changeaddr.sh ``` -
- -Click here if you are unable to download. - - -If you are unable to download, click [here](https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/ikev2changeaddr.sh) to view the script. Press `Ctrl/Cmd+A` to select all, `Ctrl/Cmd+C` to copy, then paste into your favorite editor. -
- **Important:** After running this script, you must manually update the server address (and remote ID, if applicable) on any existing IKEv2 client devices. For iOS clients, you'll need to export and re-import client configuration using the IKEv2 [helper script](#set-up-ikev2-using-helper-script). ## Update IKEv2 helper script @@ -798,14 +788,6 @@ 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 ``` -
- -Click here if you are unable to download. - - -If you are unable to download, click [here](https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/ikev2setup.sh) to view the script. Press `Ctrl/Cmd+A` to select all, `Ctrl/Cmd+C` to copy, then paste into your favorite editor. -
- ## Manually set up IKEv2 As an alternative to using the [helper script](#set-up-ikev2-using-helper-script), advanced users can manually set up IKEv2 on the VPN server. Before continuing, it is recommended to [update Libreswan](../README.md#upgrade-libreswan) to the latest version. diff --git a/docs/manage-users-zh.md b/docs/manage-users-zh.md index 8f27446..b70b25d 100644 --- a/docs/manage-users-zh.md +++ b/docs/manage-users-zh.md @@ -40,8 +40,6 @@ chmod +x /opt/src/addvpnuser.sh && ln -s /opt/src/addvpnuser.sh /usr/bin ``` 然后按照说明运行脚本。 - -如果无法下载,点[这里](https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/add_vpn_user.sh)查看脚本。按快捷键 `Ctrl/Cmd+A` 全选,`Ctrl/Cmd+C` 复制,然后粘贴到你喜欢的编辑器。
另外,你也可以在添加参数的情况下运行脚本: @@ -77,8 +75,6 @@ chmod +x /opt/src/delvpnuser.sh && ln -s /opt/src/delvpnuser.sh /usr/bin ``` 然后按照说明运行脚本。 - -如果无法下载,点[这里](https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/del_vpn_user.sh)查看脚本。按快捷键 `Ctrl/Cmd+A` 全选,`Ctrl/Cmd+C` 复制,然后粘贴到你喜欢的编辑器。
另外,你也可以在添加参数的情况下运行脚本: @@ -99,14 +95,6 @@ sudo delvpnuser.sh '要删除的用户名' wget -nv -O updatevpnusers.sh https://get.vpnsetup.net/updateusers ``` -
- -如果无法下载,请点这里。 - - -如果无法下载,点[这里](https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/update_vpn_users.sh)查看脚本。按快捷键 `Ctrl/Cmd+A` 全选,`Ctrl/Cmd+C` 复制,然后粘贴到你喜欢的编辑器。 -
- 要使用这个脚本,从以下选项中选择一个: **重要:** 这个脚本会将你当前**所有的** VPN 用户移除并替换为你指定的列表中的用户。如果你需要保留已有的 VPN 用户,则必须将它们包含在下面的变量中。 diff --git a/docs/manage-users.md b/docs/manage-users.md index 3547af1..89dc82f 100644 --- a/docs/manage-users.md +++ b/docs/manage-users.md @@ -40,8 +40,6 @@ chmod +x /opt/src/addvpnuser.sh && ln -s /opt/src/addvpnuser.sh /usr/bin ``` Then run the script using the instructions. - -If you are unable to download, click [here](https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/add_vpn_user.sh) to view the script. Press `Ctrl/Cmd+A` to select all, `Ctrl/Cmd+C` to copy, then paste into your favorite editor. Alternatively, you can run the script with arguments: @@ -77,8 +75,6 @@ chmod +x /opt/src/delvpnuser.sh && ln -s /opt/src/delvpnuser.sh /usr/bin ``` Then run the script using the instructions. - -If you are unable to download, click [here](https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/del_vpn_user.sh) to view the script. Press `Ctrl/Cmd+A` to select all, `Ctrl/Cmd+C` to copy, then paste into your favorite editor. Alternatively, you can run the script with arguments: @@ -99,14 +95,6 @@ First, download the script: wget -nv -O updatevpnusers.sh https://get.vpnsetup.net/updateusers ``` -
- -Click here if you are unable to download. - - -If you are unable to download, click [here](https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/update_vpn_users.sh) to view the script. Press `Ctrl/Cmd+A` to select all, `Ctrl/Cmd+C` to copy, then paste into your favorite editor. -
- To use this script, choose one of the following options: **Important:** This script will remove **ALL** existing VPN users and replace them with the list of users you specify. Therefore, you must include any existing user(s) you want to keep in the variables below. diff --git a/docs/uninstall-zh.md b/docs/uninstall-zh.md index 7cc3c54..01aa682 100644 --- a/docs/uninstall-zh.md +++ b/docs/uninstall-zh.md @@ -14,14 +14,6 @@ wget -nv -O vpnunst.sh https://get.vpnsetup.net/unst sudo bash vpnunst.sh ``` -
- -如果无法下载,请点这里。 - - -如果无法下载,点[这里](https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/vpnuninstall.sh)查看脚本。按快捷键 `Ctrl/Cmd+A` 全选,`Ctrl/Cmd+C` 复制,然后粘贴到你喜欢的编辑器。 -
- ## 手动卸载 VPN 另外,你也可以手动卸载 VPN。按照以下步骤操作。这些命令需要用 `root` 账户运行,或者使用 `sudo`。 diff --git a/docs/uninstall.md b/docs/uninstall.md index 7079ae5..1b0f125 100644 --- a/docs/uninstall.md +++ b/docs/uninstall.md @@ -14,14 +14,6 @@ wget -nv -O vpnunst.sh https://get.vpnsetup.net/unst sudo bash vpnunst.sh ``` -
- -Click here if you are unable to download. - - -If you are unable to download, click [here](https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/vpnuninstall.sh) to view the script. Press `Ctrl/Cmd+A` to select all, `Ctrl/Cmd+C` to copy, then paste into your favorite editor. -
- ## Manually uninstall the VPN Alternatively, you may manually uninstall the VPN by following these steps. Commands must be run as `root`, or with `sudo`.