From 4f3a980003200f62cdda476b3d190aba86a6cb54 Mon Sep 17 00:00:00 2001 From: Teddysun Date: Mon, 18 Apr 2016 23:31:36 +0900 Subject: [PATCH] update --- l2tp.sh | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/l2tp.sh b/l2tp.sh index 78064b7..a4f0f09 100644 --- a/l2tp.sh +++ b/l2tp.sh @@ -5,7 +5,7 @@ export PATH # System Required: CentOS/RadHat 6+ / Debian 7+ / Ubuntu 12+ # # Description: Auto Install L2TP VPN # # Author: Teddysun # -# Intro: https://teddysun.com # +# Intro: https://teddysun.com/448.html # #=======================================================================# cur_dir=`pwd` @@ -403,7 +403,7 @@ EOF chkconfig xl2tpd on /etc/init.d/iptables restart - /etc/init.d/ipsec restart + /etc/init.d/ipsec start /etc/init.d/xl2tpd start else @@ -614,25 +614,29 @@ finally(){ cd ${cur_dir} rm -fr ${cur_dir}/l2tp + echo "Please wait a moment..." sleep 5 ipsec verify echo echo "###############################################################" echo "# Auto Install L2TP VPN for your Server #" 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 #" 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 - echo "ServerIP:${IP}" - echo "PSK:${mypsk}" - echo "Username:${username}" - echo "Password:${password}" + echo "ServerIP:\033[41;37m${IP}\033[0m" + echo "PSK:\033[41;37m${mypsk}\033[0m" + echo "Username:\033[41;37m${username}\033[0m" + echo "Password:\033[41;37m${password}\033[0m" 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 } @@ -642,7 +646,7 @@ l2tp(){ echo "###############################################################" echo "# Auto Install L2TP VPN for your Server #" 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 #" echo "###############################################################" echo