Update docs
This commit is contained in:
parent
1da1493f53
commit
80af7a35f3
10
README-zh.md
10
README-zh.md
@ -33,7 +33,7 @@ Ubuntu, Debian, CentOS/RHEL, Rocky Linux, AlmaLinux, Amazon Linux 2 或者 Alpin
|
||||
使用以下命令快速搭建 IPsec VPN 服务器:
|
||||
|
||||
```bash
|
||||
wget https://git.io/vpnquickstart -O vpn.sh && sudo sh vpn.sh
|
||||
wget https://git.io/vpnstart -qO vpn.sh && sudo sh vpn.sh
|
||||
```
|
||||
|
||||
你的 VPN 登录凭证将会被自动随机生成,并在安装完成后显示在屏幕上。
|
||||
@ -95,7 +95,7 @@ wget https://git.io/vpnquickstart -O vpn.sh && sudo sh vpn.sh
|
||||
**选项 1:** 使用脚本随机生成的 VPN 登录凭证(完成后会在屏幕上显示):
|
||||
|
||||
```bash
|
||||
wget https://git.io/vpnsetup -O vpn.sh && sudo sh vpn.sh
|
||||
wget https://git.io/vpnsetup -qO vpn.sh && sudo sh vpn.sh
|
||||
```
|
||||
|
||||
<a name="ikev2-setup-note"></a>
|
||||
@ -111,7 +111,7 @@ sudo ikev2.sh
|
||||
**选项 2:** 编辑脚本并提供你自己的 VPN 登录凭证:
|
||||
|
||||
```bash
|
||||
wget https://git.io/vpnsetup -O vpn.sh
|
||||
wget https://git.io/vpnsetup -qO vpn.sh
|
||||
nano -w vpn.sh
|
||||
[替换为你自己的值: YOUR_IPSEC_PSK, YOUR_USERNAME 和 YOUR_PASSWORD]
|
||||
sudo sh vpn.sh
|
||||
@ -126,7 +126,7 @@ sudo sh vpn.sh
|
||||
```bash
|
||||
# 所有变量值必须用 '单引号' 括起来
|
||||
# *不要* 在值中使用这些字符: \ " '
|
||||
wget https://git.io/vpnsetup -O vpn.sh
|
||||
wget https://git.io/vpnsetup -qO vpn.sh
|
||||
sudo VPN_IPSEC_PSK='你的IPsec预共享密钥' \
|
||||
VPN_USER='你的VPN用户名' \
|
||||
VPN_PASSWORD='你的VPN密码' \
|
||||
@ -174,7 +174,7 @@ 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 -O vpnup.sh && sudo sh vpnup.sh
|
||||
wget https://git.io/vpnupgrade -qO vpnup.sh && sudo sh vpnup.sh
|
||||
```
|
||||
|
||||
当前支持的 Libreswan 最新版本是 `4.6`。查看已安装版本:`ipsec --version`。
|
||||
|
10
README.md
10
README.md
@ -33,7 +33,7 @@ Ubuntu, Debian, CentOS/RHEL, Rocky Linux, AlmaLinux, Amazon Linux 2 or Alpine Li
|
||||
Use this one-liner to set up an IPsec VPN server:
|
||||
|
||||
```bash
|
||||
wget https://git.io/vpnquickstart -O vpn.sh && sudo sh vpn.sh
|
||||
wget https://git.io/vpnstart -qO vpn.sh && sudo sh vpn.sh
|
||||
```
|
||||
|
||||
Your VPN login details will be randomly generated, and displayed on the screen when finished.
|
||||
@ -95,7 +95,7 @@ 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 -O vpn.sh && sudo sh vpn.sh
|
||||
wget https://git.io/vpnsetup -qO vpn.sh && sudo sh vpn.sh
|
||||
```
|
||||
|
||||
<a name="ikev2-setup-note"></a>
|
||||
@ -111,7 +111,7 @@ sudo ikev2.sh
|
||||
**Option 2:** Edit the script and provide your own VPN credentials:
|
||||
|
||||
```bash
|
||||
wget https://git.io/vpnsetup -O vpn.sh
|
||||
wget https://git.io/vpnsetup -qO vpn.sh
|
||||
nano -w vpn.sh
|
||||
[Replace with your own values: YOUR_IPSEC_PSK, YOUR_USERNAME and YOUR_PASSWORD]
|
||||
sudo sh vpn.sh
|
||||
@ -126,7 +126,7 @@ After successful installation, it is recommended to [set up IKEv2](#ikev2-setup-
|
||||
```bash
|
||||
# All values MUST be placed inside 'single quotes'
|
||||
# DO NOT use these special characters within values: \ " '
|
||||
wget https://git.io/vpnsetup -O vpn.sh
|
||||
wget https://git.io/vpnsetup -qO vpn.sh
|
||||
sudo VPN_IPSEC_PSK='your_ipsec_pre_shared_key' \
|
||||
VPN_USER='your_vpn_username' \
|
||||
VPN_PASSWORD='your_vpn_password' \
|
||||
@ -174,7 +174,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 -O vpnup.sh && sudo sh vpnup.sh
|
||||
wget https://git.io/vpnupgrade -qO vpnup.sh && sudo sh vpnup.sh
|
||||
```
|
||||
|
||||
The latest supported Libreswan version is `4.6`. Check installed version: `ipsec --version`.
|
||||
|
@ -45,7 +45,7 @@ sudo VPN_DNS_NAME='vpn.example.com' ikev2.sh --auto
|
||||
|
||||
```bash
|
||||
# 下载脚本
|
||||
wget -O ikev2onlymode.sh https://bit.ly/ikev2onlymode
|
||||
wget -qO ikev2onlymode.sh https://bit.ly/ikev2onlymode
|
||||
# 运行脚本并按提示操作
|
||||
sudo bash ikev2onlymode.sh
|
||||
```
|
||||
|
@ -45,7 +45,7 @@ To enable IKEv2-only mode, first install the VPN server and set up IKEv2 using i
|
||||
|
||||
```bash
|
||||
# Download the script
|
||||
wget -O ikev2onlymode.sh https://bit.ly/ikev2onlymode
|
||||
wget -qO ikev2onlymode.sh https://bit.ly/ikev2onlymode
|
||||
# Run the script and follow the prompts
|
||||
sudo bash ikev2onlymode.sh
|
||||
```
|
||||
|
@ -50,7 +50,7 @@ sudo ikev2.sh
|
||||
如果你使用了较早版本的 VPN 安装脚本,这是正常的。首先下载 IKEv2 辅助脚本:
|
||||
|
||||
```bash
|
||||
wget https://git.io/ikev2setup -O /opt/src/ikev2.sh
|
||||
wget https://git.io/ikev2setup -qO /opt/src/ikev2.sh
|
||||
chmod +x /opt/src/ikev2.sh && ln -s /opt/src/ikev2.sh /usr/bin
|
||||
```
|
||||
|
||||
@ -87,7 +87,7 @@ sudo VPN_DNS_SRV1=1.1.1.1 VPN_DNS_SRV2=1.0.0.1 ikev2.sh --auto
|
||||
IKEv2 辅助脚本会不时更新,以进行错误修复和改进([更新日志](https://github.com/hwdsl2/setup-ipsec-vpn/commits/master/extras/ikev2setup.sh))。 当有新版本可用时,你可以更新服务器上的 IKEv2 辅助脚本。这是可选的。请注意,这些命令将覆盖任何现有的 `ikev2.sh`。
|
||||
|
||||
```bash
|
||||
wget https://git.io/ikev2setup -O /opt/src/ikev2.sh
|
||||
wget https://git.io/ikev2setup -qO /opt/src/ikev2.sh
|
||||
chmod +x /opt/src/ikev2.sh && ln -s /opt/src/ikev2.sh /usr/bin 2>/dev/null
|
||||
```
|
||||
</details>
|
||||
|
@ -50,7 +50,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 -O /opt/src/ikev2.sh
|
||||
wget https://git.io/ikev2setup -qO /opt/src/ikev2.sh
|
||||
chmod +x /opt/src/ikev2.sh && ln -s /opt/src/ikev2.sh /usr/bin
|
||||
```
|
||||
|
||||
@ -87,7 +87,7 @@ Learn how to update the IKEv2 helper script on your server.
|
||||
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 -O /opt/src/ikev2.sh
|
||||
wget https://git.io/ikev2setup -qO /opt/src/ikev2.sh
|
||||
chmod +x /opt/src/ikev2.sh && ln -s /opt/src/ikev2.sh /usr/bin 2>/dev/null
|
||||
```
|
||||
</details>
|
||||
|
@ -52,7 +52,7 @@ service xl2tpd restart
|
||||
|
||||
```bash
|
||||
# 下载脚本
|
||||
wget -O add_vpn_user.sh https://bit.ly/addvpnuser
|
||||
wget -qO add_vpn_user.sh https://bit.ly/addvpnuser
|
||||
# 运行脚本并按提示操作
|
||||
sudo bash add_vpn_user.sh
|
||||
```
|
||||
@ -73,7 +73,7 @@ sudo bash add_vpn_user.sh '要更新的用户名' '新密码'
|
||||
|
||||
```bash
|
||||
# 下载脚本
|
||||
wget -O del_vpn_user.sh https://bit.ly/delvpnuser
|
||||
wget -qO del_vpn_user.sh https://bit.ly/delvpnuser
|
||||
# 运行脚本并按提示操作
|
||||
sudo bash del_vpn_user.sh
|
||||
```
|
||||
@ -92,7 +92,7 @@ sudo bash del_vpn_user.sh '要删除的用户名'
|
||||
|
||||
```bash
|
||||
# 下载脚本
|
||||
wget -O update_vpn_users.sh https://bit.ly/updatevpnusers
|
||||
wget -qO update_vpn_users.sh https://bit.ly/updatevpnusers
|
||||
```
|
||||
|
||||
要使用这个脚本,从以下选项中选择一个:
|
||||
|
@ -52,7 +52,7 @@ Add a new VPN user, or update an existing VPN user with a new password.
|
||||
|
||||
```bash
|
||||
# Download the script
|
||||
wget -O add_vpn_user.sh https://bit.ly/addvpnuser
|
||||
wget -qO add_vpn_user.sh https://bit.ly/addvpnuser
|
||||
# Run the script and follow the prompts
|
||||
sudo bash add_vpn_user.sh
|
||||
```
|
||||
@ -73,7 +73,7 @@ Delete the specified VPN user.
|
||||
|
||||
```bash
|
||||
# Download the script
|
||||
wget -O del_vpn_user.sh https://bit.ly/delvpnuser
|
||||
wget -qO del_vpn_user.sh https://bit.ly/delvpnuser
|
||||
# Run the script and follow the prompts
|
||||
sudo bash del_vpn_user.sh
|
||||
```
|
||||
@ -92,7 +92,7 @@ Remove all existing VPN users and replace with the list of users you specify.
|
||||
|
||||
```bash
|
||||
# Download the script
|
||||
wget -O update_vpn_users.sh https://bit.ly/updatevpnusers
|
||||
wget -qO update_vpn_users.sh https://bit.ly/updatevpnusers
|
||||
```
|
||||
|
||||
To use this script, choose one of the following options:
|
||||
|
@ -10,7 +10,7 @@
|
||||
**警告:** 此[辅助脚本](../extras/vpnuninstall.sh)将从你的服务器中删除 IPsec VPN。所有的 VPN 配置将被**永久删除**,并且 Libreswan 和 xl2tpd 将被移除。此操作**不可撤销**!
|
||||
|
||||
```bash
|
||||
wget https://git.io/vpnuninstall -O vpnunst.sh
|
||||
wget https://git.io/vpnuninstall -qO vpnunst.sh
|
||||
sudo bash vpnunst.sh
|
||||
```
|
||||
|
||||
|
@ -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 -O vpnunst.sh
|
||||
wget https://git.io/vpnuninstall -qO vpnunst.sh
|
||||
sudo bash vpnunst.sh
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user