mirror of
https://github.com/teddysun/across.git
synced 2025-01-19 06:19:35 +08:00
update
This commit is contained in:
parent
b479f8702b
commit
4f3a980003
24
l2tp.sh
24
l2tp.sh
@ -5,7 +5,7 @@ export PATH
|
|||||||
# System Required: CentOS/RadHat 6+ / Debian 7+ / Ubuntu 12+ #
|
# System Required: CentOS/RadHat 6+ / Debian 7+ / Ubuntu 12+ #
|
||||||
# Description: Auto Install L2TP VPN #
|
# Description: Auto Install L2TP VPN #
|
||||||
# Author: Teddysun <i@teddysun.com> #
|
# Author: Teddysun <i@teddysun.com> #
|
||||||
# Intro: https://teddysun.com #
|
# Intro: https://teddysun.com/448.html #
|
||||||
#=======================================================================#
|
#=======================================================================#
|
||||||
cur_dir=`pwd`
|
cur_dir=`pwd`
|
||||||
|
|
||||||
@ -403,7 +403,7 @@ EOF
|
|||||||
chkconfig xl2tpd on
|
chkconfig xl2tpd on
|
||||||
|
|
||||||
/etc/init.d/iptables restart
|
/etc/init.d/iptables restart
|
||||||
/etc/init.d/ipsec restart
|
/etc/init.d/ipsec start
|
||||||
/etc/init.d/xl2tpd start
|
/etc/init.d/xl2tpd start
|
||||||
|
|
||||||
else
|
else
|
||||||
@ -614,25 +614,29 @@ finally(){
|
|||||||
cd ${cur_dir}
|
cd ${cur_dir}
|
||||||
rm -fr ${cur_dir}/l2tp
|
rm -fr ${cur_dir}/l2tp
|
||||||
|
|
||||||
|
echo "Please wait a moment..."
|
||||||
sleep 5
|
sleep 5
|
||||||
ipsec verify
|
ipsec verify
|
||||||
echo
|
echo
|
||||||
echo "###############################################################"
|
echo "###############################################################"
|
||||||
echo "# Auto Install L2TP VPN for your Server #"
|
echo "# Auto Install L2TP VPN for your Server #"
|
||||||
echo "# System Required: CentOS/RadHat 6+ / Debian 7+ / Ubuntu 12+ #"
|
echo "# System Required: CentOS/RadHat 6+ / Debian 7+ / Ubuntu 12+ #"
|
||||||
echo "# Intro: https://teddysun.com #"
|
echo "# Intro: https://teddysun.com/448.html #"
|
||||||
echo "# Author: Teddysun <i@teddysun.com> #"
|
echo "# Author: Teddysun <i@teddysun.com> #"
|
||||||
echo "###############################################################"
|
echo "###############################################################"
|
||||||
echo "if there are no [FAILED] above, then you can connect to your"
|
echo "If there are no [FAILED] above, then you can connect to your"
|
||||||
echo "L2TP VPN Server with the default Username/Password is below:"
|
echo "L2TP VPN Server with the default Username/Password is below:"
|
||||||
echo
|
echo
|
||||||
echo "ServerIP:${IP}"
|
echo "ServerIP:\033[41;37m${IP}\033[0m"
|
||||||
echo "PSK:${mypsk}"
|
echo "PSK:\033[41;37m${mypsk}\033[0m"
|
||||||
echo "Username:${username}"
|
echo "Username:\033[41;37m${username}\033[0m"
|
||||||
echo "Password:${password}"
|
echo "Password:\033[41;37m${password}\033[0m"
|
||||||
echo
|
echo
|
||||||
echo "Welcome to visit https://teddysun.com"
|
echo "If you want to add users, please modify"
|
||||||
|
echo "/etc/ppp/chap-secrets and add it."
|
||||||
|
echo "Welcome to visit https://teddysun.com/448.html"
|
||||||
echo "Enjoy it!"
|
echo "Enjoy it!"
|
||||||
|
echo
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -642,7 +646,7 @@ l2tp(){
|
|||||||
echo "###############################################################"
|
echo "###############################################################"
|
||||||
echo "# Auto Install L2TP VPN for your Server #"
|
echo "# Auto Install L2TP VPN for your Server #"
|
||||||
echo "# System Required: CentOS/RadHat 6+ / Debian 7+ / Ubuntu 12+ #"
|
echo "# System Required: CentOS/RadHat 6+ / Debian 7+ / Ubuntu 12+ #"
|
||||||
echo "# Intro: https://teddysun.com #"
|
echo "# Intro: https://teddysun.com/448.html #"
|
||||||
echo "# Author: Teddysun <i@teddysun.com> #"
|
echo "# Author: Teddysun <i@teddysun.com> #"
|
||||||
echo "###############################################################"
|
echo "###############################################################"
|
||||||
echo
|
echo
|
||||||
|
Loading…
x
Reference in New Issue
Block a user