Update docs
- Update docs for managing VPN users
This commit is contained in:
parent
83b0663318
commit
60b65bac19
@ -13,7 +13,13 @@
|
|||||||
添加一个新 VPN 用户,或者为一个已有的 VPN 用户更新密码。
|
添加一个新 VPN 用户,或者为一个已有的 VPN 用户更新密码。
|
||||||
|
|
||||||
```bash
|
```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://raw.githubusercontent.com/hwdsl2/setup-ipsec-vpn/master/extras/add_vpn_user.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# 所有变量值必须用 '单引号' 括起来
|
||||||
|
# *不要* 在值中使用这些字符: \ " '
|
||||||
sudo sh add_vpn_user.sh 'username_to_add' 'password_to_add'
|
sudo sh add_vpn_user.sh 'username_to_add' 'password_to_add'
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -22,7 +28,13 @@ sudo sh add_vpn_user.sh 'username_to_add' 'password_to_add'
|
|||||||
删除指定的 VPN 用户。
|
删除指定的 VPN 用户。
|
||||||
|
|
||||||
```bash
|
```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://raw.githubusercontent.com/hwdsl2/setup-ipsec-vpn/master/extras/del_vpn_user.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# 所有变量值必须用 '单引号' 括起来
|
||||||
|
# *不要* 在值中使用这些字符: \ " '
|
||||||
sudo sh del_vpn_user.sh 'username_to_delete'
|
sudo sh del_vpn_user.sh 'username_to_delete'
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -31,6 +43,7 @@ sudo sh del_vpn_user.sh 'username_to_delete'
|
|||||||
移除所有的 VPN 用户并替换为你指定的列表中的用户。
|
移除所有的 VPN 用户并替换为你指定的列表中的用户。
|
||||||
|
|
||||||
```bash
|
```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://raw.githubusercontent.com/hwdsl2/setup-ipsec-vpn/master/extras/update_vpn_users.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -13,7 +13,13 @@ You may use these scripts to more easily manage VPN users: [add_vpn_user.sh](htt
|
|||||||
Add a new VPN user or update an existing user with a new password.
|
Add a new VPN user or update an existing user with a new password.
|
||||||
|
|
||||||
```bash
|
```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://raw.githubusercontent.com/hwdsl2/setup-ipsec-vpn/master/extras/add_vpn_user.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# All values MUST be placed inside 'single quotes'
|
||||||
|
# DO NOT use these special characters within values: \ " '
|
||||||
sudo sh add_vpn_user.sh 'username_to_add' 'password_to_add'
|
sudo sh add_vpn_user.sh 'username_to_add' 'password_to_add'
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -22,7 +28,13 @@ sudo sh add_vpn_user.sh 'username_to_add' 'password_to_add'
|
|||||||
Delete the specified VPN user.
|
Delete the specified VPN user.
|
||||||
|
|
||||||
```bash
|
```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://raw.githubusercontent.com/hwdsl2/setup-ipsec-vpn/master/extras/del_vpn_user.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# All values MUST be placed inside 'single quotes'
|
||||||
|
# DO NOT use these special characters within values: \ " '
|
||||||
sudo sh del_vpn_user.sh 'username_to_delete'
|
sudo sh del_vpn_user.sh 'username_to_delete'
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -31,6 +43,7 @@ sudo sh del_vpn_user.sh 'username_to_delete'
|
|||||||
Remove all existing VPN users and replace with the list of users you specify.
|
Remove all existing VPN users and replace with the list of users you specify.
|
||||||
|
|
||||||
```bash
|
```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://raw.githubusercontent.com/hwdsl2/setup-ipsec-vpn/master/extras/update_vpn_users.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user