From 8e388a07d349451a8ccbe08c9b0b0d026d9c2876 Mon Sep 17 00:00:00 2001 From: hwdsl2 Date: Sun, 17 Apr 2016 16:55:44 -0500 Subject: [PATCH] Display VPN details after install --- vpnsetup.sh | 16 +++++++++++++++- vpnsetup_centos.sh | 16 +++++++++++++++- 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/vpnsetup.sh b/vpnsetup.sh index efebe6c..ca9d284 100644 --- a/vpnsetup.sh +++ b/vpnsetup.sh @@ -398,5 +398,19 @@ fi /usr/sbin/service xl2tpd start echo -echo 'Congratulations! IPsec/L2TP VPN server setup is complete!' +echo '============================================================' +echo 'IPSec/L2TP VPN server setup is complete!' +echo +echo 'Connect to your new VPN with these credentials:' +echo +echo "Server IP: $PUBLIC_IP" +echo "IPSec PSK: $IPSEC_PSK" +echo "Username: $VPN_USER" +echo "Password: $VPN_PASSWORD" +echo '============================================================' +echo +echo 'Please read IMPORTANT NOTES at the URL below:' +echo 'https://github.com/hwdsl2/setup-ipsec-vpn#important-notes' +echo + exit 0 diff --git a/vpnsetup_centos.sh b/vpnsetup_centos.sh index bed9655..d6d8cc0 100644 --- a/vpnsetup_centos.sh +++ b/vpnsetup_centos.sh @@ -436,5 +436,19 @@ fi /sbin/service xl2tpd start echo -echo 'Congratulations! IPsec/L2TP VPN server setup is complete!' +echo '============================================================' +echo 'IPSec/L2TP VPN server setup is complete!' +echo +echo 'Connect to your new VPN with these credentials:' +echo +echo "Server IP: $PUBLIC_IP" +echo "IPSec PSK: $IPSEC_PSK" +echo "Username: $VPN_USER" +echo "Password: $VPN_PASSWORD" +echo '============================================================' +echo +echo 'Please read IMPORTANT NOTES at the URL below:' +echo 'https://github.com/hwdsl2/setup-ipsec-vpn#important-notes' +echo + exit 0