diff --git a/install-support b/install-support index 2df198cb1..2c4d98875 100755 --- a/install-support +++ b/install-support @@ -26,8 +26,26 @@ sed -i -e "s/^openvpn_enabled:.*/openvpn_enabled: True/" /etc/iiab/local_vars.ym echo -e "Now let's (re)install and (re)start OpenVPN...\n" + ansible-playbook -i $INVENTORY $PLAYBOOK --connection=local -echo -en "\nYour OpenVPN handle is....... " + +echo -en "\nYour OpenVPN machine name (openvpn_handle) is: " cat /etc/iiab/openvpn_handle -echo -e "\nYour OpenVPN IP address is... $(ip a | grep tun0$ | awk '{print $2}')\n\n" + +vpnip=$(ip a | grep tun0$ | awk '{print $2}') + +if [ "$vpnip" != "" ]; then + echo -e "\nYour OpenVPN IP address (which can change) is: $vpnip\n\n" +else + echo -e "\nWARNING: OpenVPN IP ADDRESS NOT FOUND!\n\n" +fi + + +echo -e "OpenVPN TIPS:\n" + +echo -e " 1. Check your Internet connection: run 'ping 8.8.8.8' and 'ping mit.edu'" +echo -e " 2. Run 'ip a' and look for a 'tun0' IP address like 10.8.0.x" +echo -e " 3. Check your OpenVPN connection: run 'ping 10.8.0.1'" +echo -e " 4. Sometimes waiting a minute helps -- then retry steps 2 and 3" +echo -e " 5. If necessary, run 'systemctl restart openvpn@xscenet'\n\n"