Compare commits
2 Commits
cd9fddaa0d
...
85c47b25cb
Author | SHA1 | Date | |
---|---|---|---|
|
85c47b25cb | ||
|
6bc472e9d6 |
25
README-zh.md
25
README-zh.md
@ -39,7 +39,7 @@ wget https://get.vpnsetup.net -qO vpn.sh && sudo sh vpn.sh
|
|||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>
|
<summary>
|
||||||
或者,你也可以使用这些命令。
|
或者,你也可以使用以下命令。
|
||||||
</summary>
|
</summary>
|
||||||
|
|
||||||
你也可以使用 `curl` 下载:
|
你也可以使用 `curl` 下载:
|
||||||
@ -48,11 +48,7 @@ wget https://get.vpnsetup.net -qO vpn.sh && sudo sh vpn.sh
|
|||||||
curl -fsSL https://get.vpnsetup.net -o vpn.sh && sudo sh vpn.sh
|
curl -fsSL https://get.vpnsetup.net -o vpn.sh && sudo sh vpn.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
或者,你也可以使用这个链接:
|
如果无法下载,点[这里](https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/vpnsetup.sh)查看脚本。按快捷键 `Ctrl/Cmd+A` 全选,`Ctrl/Cmd+C` 复制,然后粘贴到你喜欢的编辑器。
|
||||||
|
|
||||||
```bash
|
|
||||||
curl -fsSL https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/vpnsetup.sh -o vpn.sh && sudo sh vpn.sh
|
|
||||||
```
|
|
||||||
</details>
|
</details>
|
||||||
<details>
|
<details>
|
||||||
<summary>
|
<summary>
|
||||||
@ -170,7 +166,7 @@ sudo VPN_PROTECT_CONFIG=yes sh vpn.sh
|
|||||||
</details>
|
</details>
|
||||||
<details>
|
<details>
|
||||||
<summary>
|
<summary>
|
||||||
如果无法通过 wget 下载,点这里查看解决方案。
|
如果无法使用 wget 下载,请点这里。
|
||||||
</summary>
|
</summary>
|
||||||
|
|
||||||
你也可以使用 `curl` 下载。例如:
|
你也可以使用 `curl` 下载。例如:
|
||||||
@ -180,14 +176,7 @@ curl -fL https://get.vpnsetup.net -o vpn.sh
|
|||||||
sudo sh vpn.sh
|
sudo sh vpn.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
或者,你也可以使用这个链接:
|
如果无法下载,点[这里](https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/vpnsetup.sh)查看脚本。按快捷键 `Ctrl/Cmd+A` 全选,`Ctrl/Cmd+C` 复制,然后粘贴到你喜欢的编辑器。
|
||||||
|
|
||||||
```bash
|
|
||||||
curl -fL https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/vpnsetup.sh -o vpn.sh
|
|
||||||
sudo sh vpn.sh
|
|
||||||
```
|
|
||||||
|
|
||||||
或者,打开 [vpnsetup.sh](vpnsetup.sh) 并点击右方的 `Raw` 按钮。按快捷键 `Ctrl/Cmd+A` 全选,`Ctrl/Cmd+C` 复制,然后粘贴到你喜欢的编辑器。
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
## 下一步
|
## 下一步
|
||||||
@ -233,9 +222,13 @@ wget https://get.vpnsetup.net/upg -qO vpnup.sh && sudo sh vpnup.sh
|
|||||||
或者,你也可以使用以下命令。
|
或者,你也可以使用以下命令。
|
||||||
</summary>
|
</summary>
|
||||||
|
|
||||||
|
你也可以使用 `curl` 下载:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
wget https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/extras/vpnupgrade.sh -qO vpnup.sh && sudo sh vpnup.sh
|
curl -fsSL https://get.vpnsetup.net/upg -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` 复制,然后粘贴到你喜欢的编辑器。
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
当前支持的 Libreswan 最新版本是 `4.6`。查看已安装版本:`ipsec --version`。
|
当前支持的 Libreswan 最新版本是 `4.6`。查看已安装版本:`ipsec --version`。
|
||||||
|
23
README.md
23
README.md
@ -39,7 +39,7 @@ Your VPN login details will be randomly generated, and displayed when finished.
|
|||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>
|
<summary>
|
||||||
Alternative one-liners.
|
Alternative one-liner.
|
||||||
</summary>
|
</summary>
|
||||||
|
|
||||||
You may also use `curl` to download:
|
You may also use `curl` to download:
|
||||||
@ -48,11 +48,7 @@ You may also use `curl` to download:
|
|||||||
curl -fsSL https://get.vpnsetup.net -o vpn.sh && sudo sh vpn.sh
|
curl -fsSL https://get.vpnsetup.net -o vpn.sh && sudo sh vpn.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
Alternative setup URL:
|
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.
|
||||||
|
|
||||||
```bash
|
|
||||||
curl -fsSL https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/vpnsetup.sh -o vpn.sh && sudo sh vpn.sh
|
|
||||||
```
|
|
||||||
</details>
|
</details>
|
||||||
<details>
|
<details>
|
||||||
<summary>
|
<summary>
|
||||||
@ -180,14 +176,7 @@ curl -fL https://get.vpnsetup.net -o vpn.sh
|
|||||||
sudo sh vpn.sh
|
sudo sh vpn.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
Alternative setup URL:
|
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.
|
||||||
|
|
||||||
```bash
|
|
||||||
curl -fL https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/vpnsetup.sh -o vpn.sh
|
|
||||||
sudo sh vpn.sh
|
|
||||||
```
|
|
||||||
|
|
||||||
Alternatively, open [vpnsetup.sh](vpnsetup.sh) and click the `Raw` button on the right. Press `Ctrl/Cmd+A` to select all, `Ctrl/Cmd+C` to copy, then paste into your favorite editor.
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
## Next steps
|
## Next steps
|
||||||
@ -233,9 +222,13 @@ wget https://get.vpnsetup.net/upg -qO vpnup.sh && sudo sh vpnup.sh
|
|||||||
Alternative one-liner.
|
Alternative one-liner.
|
||||||
</summary>
|
</summary>
|
||||||
|
|
||||||
|
You may also use `curl` to download:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
wget https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/extras/vpnupgrade.sh -qO vpnup.sh && sudo sh vpnup.sh
|
curl -fsSL https://get.vpnsetup.net/upg -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.
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
The latest supported Libreswan version is `4.6`. Check installed version: `ipsec --version`.
|
The latest supported Libreswan version is `4.6`. Check installed version: `ipsec --version`.
|
||||||
|
@ -51,15 +51,10 @@ sudo bash ikev2onlymode.sh
|
|||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>
|
<summary>
|
||||||
或者,你也可以使用以下命令。
|
如果无法下载,请点这里。
|
||||||
</summary>
|
</summary>
|
||||||
|
|
||||||
```bash
|
如果无法下载,点[这里](https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/ikev2onlymode.sh)查看脚本。按快捷键 `Ctrl/Cmd+A` 全选,`Ctrl/Cmd+C` 复制,然后粘贴到你喜欢的编辑器。
|
||||||
# 下载脚本
|
|
||||||
wget -nv -O ikev2onlymode.sh https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/extras/ikev2onlymode.sh
|
|
||||||
# 运行脚本并按提示操作
|
|
||||||
sudo bash ikev2onlymode.sh
|
|
||||||
```
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
要禁用仅限 IKEv2 模式,再次运行辅助脚本并选择适当的选项。
|
要禁用仅限 IKEv2 模式,再次运行辅助脚本并选择适当的选项。
|
||||||
|
@ -51,15 +51,10 @@ sudo bash ikev2onlymode.sh
|
|||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>
|
<summary>
|
||||||
Alternative script URL.
|
Click here if you are unable to download.
|
||||||
</summary>
|
</summary>
|
||||||
|
|
||||||
```bash
|
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.
|
||||||
# Download the script
|
|
||||||
wget -nv -O ikev2onlymode.sh https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/extras/ikev2onlymode.sh
|
|
||||||
# Run the script and follow the prompts
|
|
||||||
sudo bash ikev2onlymode.sh
|
|
||||||
```
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
To disable IKEv2-only mode, run the helper script again and select the appropriate option.
|
To disable IKEv2-only mode, run the helper script again and select the appropriate option.
|
||||||
|
@ -61,18 +61,9 @@ 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
|
||||||
```
|
```
|
||||||
|
|
||||||
<details>
|
|
||||||
<summary>
|
|
||||||
或者,你也可以使用以下命令。
|
|
||||||
</summary>
|
|
||||||
|
|
||||||
```bash
|
|
||||||
wget https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/extras/ikev2setup.sh -nv -O /opt/src/ikev2.sh
|
|
||||||
chmod +x /opt/src/ikev2.sh && ln -s /opt/src/ikev2.sh /usr/bin
|
|
||||||
```
|
|
||||||
</details>
|
|
||||||
|
|
||||||
然后按照上面的说明运行脚本。
|
然后按照上面的说明运行脚本。
|
||||||
|
|
||||||
|
如果无法下载,点[这里](https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/ikev2setup.sh)查看脚本。按快捷键 `Ctrl/Cmd+A` 全选,`Ctrl/Cmd+C` 复制,然后粘贴到你喜欢的编辑器。
|
||||||
</details>
|
</details>
|
||||||
<details>
|
<details>
|
||||||
<summary>
|
<summary>
|
||||||
@ -576,7 +567,10 @@ sudo ikev2.sh --exportclient [client name]
|
|||||||
sudo ikev2.sh --deleteclient [client name]
|
sudo ikev2.sh --deleteclient [client name]
|
||||||
```
|
```
|
||||||
|
|
||||||
或者,你也可以手动删除一个客户端证书:
|
<details>
|
||||||
|
<summary>
|
||||||
|
或者,你也可以手动删除一个客户端证书。
|
||||||
|
</summary>
|
||||||
|
|
||||||
1. 列出 IPsec 证书数据库中的证书:
|
1. 列出 IPsec 证书数据库中的证书:
|
||||||
|
|
||||||
@ -604,6 +598,7 @@ sudo ikev2.sh --deleteclient [client name]
|
|||||||
|
|
||||||
1. (可选步骤)删除之前为该客户端生成的配置文件(`.p12`, `.mobileconfig` 和 `.sswan` 文件),如果存在。
|
1. (可选步骤)删除之前为该客户端生成的配置文件(`.p12`, `.mobileconfig` 和 `.sswan` 文件),如果存在。
|
||||||
</details>
|
</details>
|
||||||
|
</details>
|
||||||
|
|
||||||
### 吊销客户端证书
|
### 吊销客户端证书
|
||||||
|
|
||||||
@ -784,15 +779,10 @@ sudo bash ikev2changeaddr.sh
|
|||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>
|
<summary>
|
||||||
或者,你也可以使用以下命令。
|
如果无法下载,请点这里。
|
||||||
</summary>
|
</summary>
|
||||||
|
|
||||||
```bash
|
如果无法下载,点[这里](https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/ikev2changeaddr.sh)查看脚本。按快捷键 `Ctrl/Cmd+A` 全选,`Ctrl/Cmd+C` 复制,然后粘贴到你喜欢的编辑器。
|
||||||
# 下载脚本
|
|
||||||
wget -nv -O ikev2changeaddr.sh https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/extras/ikev2changeaddr.sh
|
|
||||||
# 运行脚本并按照提示操作
|
|
||||||
sudo bash ikev2changeaddr.sh
|
|
||||||
```
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
**重要:** 运行此脚本后,你必须手动更新任何现有 IKEv2 客户端设备上的服务器地址以及 Remote ID(如果适用)。对于 iOS 客户端,你需要使用 IKEv2 [辅助脚本](#使用辅助脚本配置-ikev2) 导出然后重新导入客户端配置。
|
**重要:** 运行此脚本后,你必须手动更新任何现有 IKEv2 客户端设备上的服务器地址以及 Remote ID(如果适用)。对于 iOS 客户端,你需要使用 IKEv2 [辅助脚本](#使用辅助脚本配置-ikev2) 导出然后重新导入客户端配置。
|
||||||
@ -808,13 +798,10 @@ chmod +x /opt/src/ikev2.sh && ln -s /opt/src/ikev2.sh /usr/bin 2>/dev/null
|
|||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>
|
<summary>
|
||||||
或者,你也可以使用以下命令。
|
如果无法下载,请点这里。
|
||||||
</summary>
|
</summary>
|
||||||
|
|
||||||
```bash
|
如果无法下载,点[这里](https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/ikev2setup.sh)查看脚本。按快捷键 `Ctrl/Cmd+A` 全选,`Ctrl/Cmd+C` 复制,然后粘贴到你喜欢的编辑器。
|
||||||
wget https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/extras/ikev2setup.sh -nv -O /opt/src/ikev2.sh
|
|
||||||
chmod +x /opt/src/ikev2.sh && ln -s /opt/src/ikev2.sh /usr/bin 2>/dev/null
|
|
||||||
```
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
## 手动配置 IKEv2
|
## 手动配置 IKEv2
|
||||||
|
@ -61,18 +61,9 @@ 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
|
||||||
```
|
```
|
||||||
|
|
||||||
<details>
|
|
||||||
<summary>
|
|
||||||
Alternative script URL.
|
|
||||||
</summary>
|
|
||||||
|
|
||||||
```bash
|
|
||||||
wget https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/extras/ikev2setup.sh -nv -O /opt/src/ikev2.sh
|
|
||||||
chmod +x /opt/src/ikev2.sh && ln -s /opt/src/ikev2.sh /usr/bin
|
|
||||||
```
|
|
||||||
</details>
|
|
||||||
|
|
||||||
Then run the script using the instructions above.
|
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.
|
||||||
</details>
|
</details>
|
||||||
<details>
|
<details>
|
||||||
<summary>
|
<summary>
|
||||||
@ -578,7 +569,10 @@ To delete a client certificate:
|
|||||||
sudo ikev2.sh --deleteclient [client name]
|
sudo ikev2.sh --deleteclient [client name]
|
||||||
```
|
```
|
||||||
|
|
||||||
Alternatively, you can manually delete a client certificate:
|
<details>
|
||||||
|
<summary>
|
||||||
|
Alternatively, you can manually delete a client certificate.
|
||||||
|
</summary>
|
||||||
|
|
||||||
1. List certificates in the IPsec database:
|
1. List certificates in the IPsec database:
|
||||||
|
|
||||||
@ -606,6 +600,7 @@ Alternatively, you can manually delete a client certificate:
|
|||||||
|
|
||||||
1. (Optional) Delete the previously generated client configuration files (`.p12`, `.mobileconfig` and `.sswan` files) for this VPN client, if any.
|
1. (Optional) Delete the previously generated client configuration files (`.p12`, `.mobileconfig` and `.sswan` files) for this VPN client, if any.
|
||||||
</details>
|
</details>
|
||||||
|
</details>
|
||||||
|
|
||||||
### Revoke a client certificate
|
### Revoke a client certificate
|
||||||
|
|
||||||
@ -786,15 +781,10 @@ sudo bash ikev2changeaddr.sh
|
|||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>
|
<summary>
|
||||||
Alternative script URL.
|
Click here if you are unable to download.
|
||||||
</summary>
|
</summary>
|
||||||
|
|
||||||
```bash
|
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.
|
||||||
# Download the script
|
|
||||||
wget -nv -O ikev2changeaddr.sh https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/extras/ikev2changeaddr.sh
|
|
||||||
# Run the script and follow the prompts
|
|
||||||
sudo bash ikev2changeaddr.sh
|
|
||||||
```
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
**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).
|
**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).
|
||||||
@ -810,13 +800,10 @@ chmod +x /opt/src/ikev2.sh && ln -s /opt/src/ikev2.sh /usr/bin 2>/dev/null
|
|||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>
|
<summary>
|
||||||
Alternative script URL.
|
Click here if you are unable to download.
|
||||||
</summary>
|
</summary>
|
||||||
|
|
||||||
```bash
|
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.
|
||||||
wget https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/extras/ikev2setup.sh -nv -O /opt/src/ikev2.sh
|
|
||||||
chmod +x /opt/src/ikev2.sh && ln -s /opt/src/ikev2.sh /usr/bin 2>/dev/null
|
|
||||||
```
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
## Manually set up IKEv2
|
## Manually set up IKEv2
|
||||||
|
@ -39,18 +39,9 @@ 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
|
chmod +x /opt/src/addvpnuser.sh && ln -s /opt/src/addvpnuser.sh /usr/bin
|
||||||
```
|
```
|
||||||
|
|
||||||
<details>
|
|
||||||
<summary>
|
|
||||||
或者,你也可以使用以下命令。
|
|
||||||
</summary>
|
|
||||||
|
|
||||||
```bash
|
|
||||||
wget -nv -O /opt/src/addvpnuser.sh https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/extras/add_vpn_user.sh
|
|
||||||
chmod +x /opt/src/addvpnuser.sh && ln -s /opt/src/addvpnuser.sh /usr/bin
|
|
||||||
```
|
|
||||||
</details>
|
|
||||||
|
|
||||||
然后按照说明运行脚本。
|
然后按照说明运行脚本。
|
||||||
|
|
||||||
|
如果无法下载,点[这里](https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/add_vpn_user.sh)查看脚本。按快捷键 `Ctrl/Cmd+A` 全选,`Ctrl/Cmd+C` 复制,然后粘贴到你喜欢的编辑器。
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
另外,你也可以在添加参数的情况下运行脚本:
|
另外,你也可以在添加参数的情况下运行脚本:
|
||||||
@ -85,18 +76,9 @@ 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
|
chmod +x /opt/src/delvpnuser.sh && ln -s /opt/src/delvpnuser.sh /usr/bin
|
||||||
```
|
```
|
||||||
|
|
||||||
<details>
|
|
||||||
<summary>
|
|
||||||
或者,你也可以使用以下命令。
|
|
||||||
</summary>
|
|
||||||
|
|
||||||
```bash
|
|
||||||
wget -nv -O /opt/src/delvpnuser.sh https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/extras/del_vpn_user.sh
|
|
||||||
chmod +x /opt/src/delvpnuser.sh && ln -s /opt/src/delvpnuser.sh /usr/bin
|
|
||||||
```
|
|
||||||
</details>
|
|
||||||
|
|
||||||
然后按照说明运行脚本。
|
然后按照说明运行脚本。
|
||||||
|
|
||||||
|
如果无法下载,点[这里](https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/del_vpn_user.sh)查看脚本。按快捷键 `Ctrl/Cmd+A` 全选,`Ctrl/Cmd+C` 复制,然后粘贴到你喜欢的编辑器。
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
另外,你也可以在添加参数的情况下运行脚本:
|
另外,你也可以在添加参数的情况下运行脚本:
|
||||||
@ -119,12 +101,10 @@ wget -nv -O updatevpnusers.sh https://get.vpnsetup.net/updateusers
|
|||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>
|
<summary>
|
||||||
或者,你也可以使用以下命令。
|
如果无法下载,请点这里。
|
||||||
</summary>
|
</summary>
|
||||||
|
|
||||||
```bash
|
如果无法下载,点[这里](https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/update_vpn_users.sh)查看脚本。按快捷键 `Ctrl/Cmd+A` 全选,`Ctrl/Cmd+C` 复制,然后粘贴到你喜欢的编辑器。
|
||||||
wget -nv -O updatevpnusers.sh https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/extras/update_vpn_users.sh
|
|
||||||
```
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
要使用这个脚本,从以下选项中选择一个:
|
要使用这个脚本,从以下选项中选择一个:
|
||||||
|
@ -39,18 +39,9 @@ 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
|
chmod +x /opt/src/addvpnuser.sh && ln -s /opt/src/addvpnuser.sh /usr/bin
|
||||||
```
|
```
|
||||||
|
|
||||||
<details>
|
|
||||||
<summary>
|
|
||||||
Alternative script URL.
|
|
||||||
</summary>
|
|
||||||
|
|
||||||
```bash
|
|
||||||
wget -nv -O /opt/src/addvpnuser.sh https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/extras/add_vpn_user.sh
|
|
||||||
chmod +x /opt/src/addvpnuser.sh && ln -s /opt/src/addvpnuser.sh /usr/bin
|
|
||||||
```
|
|
||||||
</details>
|
|
||||||
|
|
||||||
Then run the script using the instructions.
|
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.
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
Alternatively, you can run the script with arguments:
|
Alternatively, you can run the script with arguments:
|
||||||
@ -85,18 +76,9 @@ 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
|
chmod +x /opt/src/delvpnuser.sh && ln -s /opt/src/delvpnuser.sh /usr/bin
|
||||||
```
|
```
|
||||||
|
|
||||||
<details>
|
|
||||||
<summary>
|
|
||||||
Alternative script URL.
|
|
||||||
</summary>
|
|
||||||
|
|
||||||
```bash
|
|
||||||
wget -nv -O /opt/src/delvpnuser.sh https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/extras/del_vpn_user.sh
|
|
||||||
chmod +x /opt/src/delvpnuser.sh && ln -s /opt/src/delvpnuser.sh /usr/bin
|
|
||||||
```
|
|
||||||
</details>
|
|
||||||
|
|
||||||
Then run the script using the instructions.
|
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.
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
Alternatively, you can run the script with arguments:
|
Alternatively, you can run the script with arguments:
|
||||||
@ -119,12 +101,10 @@ wget -nv -O updatevpnusers.sh https://get.vpnsetup.net/updateusers
|
|||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>
|
<summary>
|
||||||
Alternative script URL.
|
Click here if you are unable to download.
|
||||||
</summary>
|
</summary>
|
||||||
|
|
||||||
```bash
|
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.
|
||||||
wget -nv -O updatevpnusers.sh https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/extras/update_vpn_users.sh
|
|
||||||
```
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
To use this script, choose one of the following options:
|
To use this script, choose one of the following options:
|
||||||
|
@ -16,13 +16,10 @@ sudo bash vpnunst.sh
|
|||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>
|
<summary>
|
||||||
或者,你也可以使用以下命令。
|
如果无法下载,请点这里。
|
||||||
</summary>
|
</summary>
|
||||||
|
|
||||||
```bash
|
如果无法下载,点[这里](https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/vpnuninstall.sh)查看脚本。按快捷键 `Ctrl/Cmd+A` 全选,`Ctrl/Cmd+C` 复制,然后粘贴到你喜欢的编辑器。
|
||||||
wget -nv -O vpnunst.sh https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/extras/vpnuninstall.sh
|
|
||||||
sudo bash vpnunst.sh
|
|
||||||
```
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
在完成后重启你的服务器。
|
在完成后重启你的服务器。
|
||||||
|
@ -16,13 +16,10 @@ sudo bash vpnunst.sh
|
|||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>
|
<summary>
|
||||||
Alternative script URL.
|
Click here if you are unable to download.
|
||||||
</summary>
|
</summary>
|
||||||
|
|
||||||
```bash
|
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.
|
||||||
wget -nv -O vpnunst.sh https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/extras/vpnuninstall.sh
|
|
||||||
sudo bash vpnunst.sh
|
|
||||||
```
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
When finished, reboot your server.
|
When finished, reboot your server.
|
||||||
|
Loading…
Reference in New Issue
Block a user