Update docs
This commit is contained in:
parent
e785263b5e
commit
7006fb3fa5
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
@ -129,7 +129,7 @@ jobs:
|
||||
grep "your_vpn_password" /etc/ppp/chap-secrets
|
||||
grep "your_vpn_username" /etc/ipsec.d/passwd
|
||||
|
||||
wget -t 3 -T 30 -nv -O ikev2.sh https://git.io/ikev2setup # hwdsl2
|
||||
wget -t 3 -T 30 -nv -O ikev2.sh https://raw.githubusercontent.com/hwdsl2/setup-ipsec-vpn/master/extras/ikev2setup.sh # hwdsl2
|
||||
sed -i 's/pk12util/pk12util -W test/' ikev2.sh
|
||||
bash ikev2.sh <<ANSWERS
|
||||
|
||||
@ -304,7 +304,7 @@ jobs:
|
||||
grep "your_vpn_password" /etc/ppp/chap-secrets
|
||||
grep "your_vpn_username" /etc/ipsec.d/passwd
|
||||
|
||||
wget -t 3 -T 30 -nv -O ikev2.sh https://git.io/ikev2setup
|
||||
wget -t 3 -T 30 -nv -O ikev2.sh https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/ikev2setup.sh
|
||||
sed -i 's/pk12util/pk12util -W test/' ikev2.sh
|
||||
bash ikev2.sh <<ANSWERS
|
||||
|
||||
|
@ -32,7 +32,7 @@ Libreswan 支持通过使用 RSA 签名算法的 X.509 Machine Certificates 来
|
||||
你可以使用这个辅助脚本来自动地在 VPN 服务器上配置 IKEv2:
|
||||
|
||||
```
|
||||
wget https://git.io/ikev2setup -O ikev2.sh && sudo bash ikev2.sh
|
||||
wget https://bit.ly/ikev2setup -O ikev2.sh && sudo bash ikev2.sh
|
||||
```
|
||||
|
||||
该 <a href="../extras/ikev2setup.sh" target="_blank">脚本</a> 必须使用 `bash` 而不是 `sh` 运行。按照脚本的提示配置 IKEv2。在完成之后,请转到 [配置 IKEv2 VPN 客户端](#配置-ikev2-vpn-客户端) 和 [已知问题](#已知问题)。如果要为更多的客户端生成证书,只需重新运行脚本。
|
||||
|
@ -32,7 +32,7 @@ Libreswan can authenticate IKEv2 clients on the basis of X.509 Machine Certifica
|
||||
You may use this helper script to automatically set up IKEv2 on the VPN server:
|
||||
|
||||
```
|
||||
wget https://git.io/ikev2setup -O ikev2.sh && sudo bash ikev2.sh
|
||||
wget https://bit.ly/ikev2setup -O ikev2.sh && sudo bash ikev2.sh
|
||||
```
|
||||
|
||||
The <a href="../extras/ikev2setup.sh" target="_blank">script</a> must be run using `bash`, not `sh`. Follow the prompts to set up IKEv2. When finished, continue to [configure IKEv2 VPN clients](#configure-ikev2-vpn-clients) and check [known issues](#known-issues). If you want to generate certificates for additional VPN clients, just run the script again.
|
||||
|
@ -52,7 +52,7 @@ service xl2tpd restart
|
||||
|
||||
```bash
|
||||
# 下载脚本
|
||||
wget -O add_vpn_user.sh https://raw.githubusercontent.com/hwdsl2/setup-ipsec-vpn/master/extras/add_vpn_user.sh
|
||||
wget -O add_vpn_user.sh https://bit.ly/addvpnuser
|
||||
```
|
||||
|
||||
```bash
|
||||
@ -69,7 +69,7 @@ sudo sh add_vpn_user.sh '要更新的用户名' '新密码'
|
||||
|
||||
```bash
|
||||
# 下载脚本
|
||||
wget -O del_vpn_user.sh https://raw.githubusercontent.com/hwdsl2/setup-ipsec-vpn/master/extras/del_vpn_user.sh
|
||||
wget -O del_vpn_user.sh https://bit.ly/delvpnuser
|
||||
```
|
||||
|
||||
```bash
|
||||
@ -84,7 +84,7 @@ sudo sh del_vpn_user.sh '要删除的用户名'
|
||||
|
||||
```bash
|
||||
# 下载脚本
|
||||
wget -O update_vpn_users.sh https://raw.githubusercontent.com/hwdsl2/setup-ipsec-vpn/master/extras/update_vpn_users.sh
|
||||
wget -O 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://raw.githubusercontent.com/hwdsl2/setup-ipsec-vpn/master/extras/add_vpn_user.sh
|
||||
wget -O add_vpn_user.sh https://bit.ly/addvpnuser
|
||||
```
|
||||
|
||||
```bash
|
||||
@ -69,7 +69,7 @@ Delete the specified VPN user.
|
||||
|
||||
```bash
|
||||
# Download the script
|
||||
wget -O del_vpn_user.sh https://raw.githubusercontent.com/hwdsl2/setup-ipsec-vpn/master/extras/del_vpn_user.sh
|
||||
wget -O del_vpn_user.sh https://bit.ly/delvpnuser
|
||||
```
|
||||
|
||||
```bash
|
||||
@ -84,7 +84,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://raw.githubusercontent.com/hwdsl2/setup-ipsec-vpn/master/extras/update_vpn_users.sh
|
||||
wget -O update_vpn_users.sh https://bit.ly/updatevpnusers
|
||||
```
|
||||
|
||||
To use this script, choose one of the following options:
|
||||
|
Loading…
x
Reference in New Issue
Block a user