mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
OpenVPN warning+TIPS for those who use ./install-support
This commit is contained in:
parent
2259eb8b4e
commit
37a4646e90
1 changed files with 20 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue