Use git.io shortened URLs
This commit is contained in:
parent
7e06ad16c4
commit
a166285504
@ -47,7 +47,7 @@ OpenVZ VPS 用户请使用其它的 VPN 软件,比如 <a href="https://github.
|
||||
首先,更新你的系统: 运行 `apt-get update && apt-get dist-upgrade` 并重启。这一步是可选的,但推荐。
|
||||
|
||||
```bash
|
||||
wget https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/vpnsetup.sh -O vpnsetup.sh
|
||||
wget https://git.io/vpnsetup -O vpnsetup.sh
|
||||
nano -w vpnsetup.sh
|
||||
[修改这些参数为你自己的值: IPSEC_PSK, VPN_USER 和 VPN_PASSWORD]
|
||||
sudo sh vpnsetup.sh
|
||||
@ -59,7 +59,7 @@ sudo sh vpnsetup.sh
|
||||
|
||||
```bash
|
||||
yum -y install wget nano
|
||||
wget https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/vpnsetup_centos.sh -O vpnsetup_centos.sh
|
||||
wget https://git.io/vpnsetup-centos -O vpnsetup_centos.sh
|
||||
nano -w vpnsetup_centos.sh
|
||||
[修改这些参数为你自己的值: IPSEC_PSK, VPN_USER 和 VPN_PASSWORD]
|
||||
sudo sh vpnsetup_centos.sh
|
||||
|
@ -46,7 +46,7 @@ OpenVZ VPS users should instead try <a href="https://github.com/Nyr/openvpn-inst
|
||||
First, update your system with `apt-get update && apt-get dist-upgrade` and reboot. This is optional, but recommended.
|
||||
|
||||
```bash
|
||||
wget https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/vpnsetup.sh -O vpnsetup.sh
|
||||
wget https://git.io/vpnsetup -O vpnsetup.sh
|
||||
nano -w vpnsetup.sh
|
||||
[Edit and replace IPSEC_PSK, VPN_USER and VPN_PASSWORD with your own values]
|
||||
sudo sh vpnsetup.sh
|
||||
@ -58,7 +58,7 @@ First, update your system with `yum update` and reboot. This is optional, but re
|
||||
|
||||
```bash
|
||||
yum -y install wget nano
|
||||
wget https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/vpnsetup_centos.sh -O vpnsetup_centos.sh
|
||||
wget https://git.io/vpnsetup-centos -O vpnsetup_centos.sh
|
||||
nano -w vpnsetup_centos.sh
|
||||
[Edit and replace IPSEC_PSK, VPN_USER and VPN_PASSWORD with your own values]
|
||||
sudo sh vpnsetup_centos.sh
|
||||
|
12
vpnsetup.sh
12
vpnsetup.sh
@ -25,8 +25,8 @@ IPSEC_PSK='your_ipsec_pre_shared_key'
|
||||
VPN_USER='your_vpn_username'
|
||||
VPN_PASSWORD='your_very_secure_password'
|
||||
|
||||
# Please read IMPORTANT NOTES at:
|
||||
# https://github.com/hwdsl2/setup-ipsec-vpn#important-notes
|
||||
# Important Notes: https://git.io/vpnnotes
|
||||
# Setup VPN Clients: https://git.io/vpnclients
|
||||
|
||||
# ------------------------------------------------------------
|
||||
|
||||
@ -399,7 +399,7 @@ service ipsec start
|
||||
service xl2tpd start
|
||||
|
||||
echo
|
||||
echo '============================================================'
|
||||
echo '============================================='
|
||||
echo 'IPsec/L2TP VPN server setup is complete!'
|
||||
echo
|
||||
echo 'Connect to your new VPN with these details:'
|
||||
@ -408,10 +408,10 @@ echo "Server IP: $PUBLIC_IP"
|
||||
echo "IPsec PSK: $IPSEC_PSK"
|
||||
echo "Username: $VPN_USER"
|
||||
echo "Password: $VPN_PASSWORD"
|
||||
echo '============================================================'
|
||||
echo '============================================='
|
||||
echo
|
||||
echo 'Please read IMPORTANT NOTES at:'
|
||||
echo 'https://github.com/hwdsl2/setup-ipsec-vpn#important-notes'
|
||||
echo 'Important Notes: https://git.io/vpnnotes'
|
||||
echo 'Setup VPN Clients: https://git.io/vpnclients'
|
||||
echo
|
||||
|
||||
exit 0
|
||||
|
@ -25,8 +25,8 @@ IPSEC_PSK='your_ipsec_pre_shared_key'
|
||||
VPN_USER='your_vpn_username'
|
||||
VPN_PASSWORD='your_very_secure_password'
|
||||
|
||||
# Please read IMPORTANT NOTES at:
|
||||
# https://github.com/hwdsl2/setup-ipsec-vpn#important-notes
|
||||
# Important Notes: https://git.io/vpnnotes
|
||||
# Setup VPN Clients: https://git.io/vpnclients
|
||||
|
||||
# ------------------------------------------------------------
|
||||
|
||||
@ -428,7 +428,7 @@ service ipsec start
|
||||
service xl2tpd start
|
||||
|
||||
echo
|
||||
echo '============================================================'
|
||||
echo '============================================='
|
||||
echo 'IPsec/L2TP VPN server setup is complete!'
|
||||
echo
|
||||
echo 'Connect to your new VPN with these details:'
|
||||
@ -437,10 +437,10 @@ echo "Server IP: $PUBLIC_IP"
|
||||
echo "IPsec PSK: $IPSEC_PSK"
|
||||
echo "Username: $VPN_USER"
|
||||
echo "Password: $VPN_PASSWORD"
|
||||
echo '============================================================'
|
||||
echo '============================================='
|
||||
echo
|
||||
echo 'Please read IMPORTANT NOTES at:'
|
||||
echo 'https://github.com/hwdsl2/setup-ipsec-vpn#important-notes'
|
||||
echo 'Important Notes: https://git.io/vpnnotes'
|
||||
echo 'Setup VPN Clients: https://git.io/vpnclients'
|
||||
echo
|
||||
|
||||
exit 0
|
||||
|
Loading…
Reference in New Issue
Block a user