diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7352b1e..61839c7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 <脚本 必须使用 `bash` 而不是 `sh` 运行。按照脚本的提示配置 IKEv2。在完成之后,请转到 [配置 IKEv2 VPN 客户端](#配置-ikev2-vpn-客户端) 和 [已知问题](#已知问题)。如果要为更多的客户端生成证书,只需重新运行脚本。 diff --git a/docs/ikev2-howto.md b/docs/ikev2-howto.md index 8457c48..b1a0669 100644 --- a/docs/ikev2-howto.md +++ b/docs/ikev2-howto.md @@ -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 script 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. diff --git a/docs/manage-users-zh.md b/docs/manage-users-zh.md index 1b81ded..e44084a 100644 --- a/docs/manage-users-zh.md +++ b/docs/manage-users-zh.md @@ -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 ``` 要使用这个脚本,从以下选项中选择一个: diff --git a/docs/manage-users.md b/docs/manage-users.md index bc526b5..3c94843 100644 --- a/docs/manage-users.md +++ b/docs/manage-users.md @@ -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: