Created
January 23, 2020 12:30
-
-
Save indranil32/3ff2a10e3199e31199f1f3c9ee9cea69 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ruby is by default installed on IOS | |
# install bew on hosted mac hardware | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null | |
# install openconnect via brew | |
brew install openconnect | |
# Store the VPN_PASSWORD, VPN_USER, VPN_PROTOCOL and VPN_HOST in secrets | |
# check http://www.infradead.org/openconnect/ for more details | |
echo $VPN_PASSWORD | sudo openconnect --user=$VPN_USER --protocol=$VPN_PROTOCOL --passwd-on-stdin --background $VPN_HOST | |
# let the VPN connect | |
sleep 20 | |
# test if you are able to reach internal IP(s) | |
ping -t 5 10.xx.xxx.xxx | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment