Skip to content

Instantly share code, notes, and snippets.

@bencevans
Created April 18, 2016 22:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bencevans/081b5aff2b0f28605894642ca6b3e10d to your computer and use it in GitHub Desktop.
Save bencevans/081b5aff2b0f28605894642ca6b3e10d to your computer and use it in GitHub Desktop.
Install OpenVPN + iVPN Config Files.
#!/bin/bash
echo IVPN Installer...
echo Ensuring wget is installed
which wget
if [[ $? == 1 ]]; then
echo Installing wget
sudo apt-get install -y -qq wget
fi
echo Ensuring unzip is installed
which unzip
if [[ $? == 1 ]]; then
echo Installing unzip
sudo apt-get install -y -qq unzip
fi
echo Installing OpenVPN...
sudo apt-get install -y -qq openvpn
echo Downloading IVPN Config Files
wget https://www.ivpn.net/releases/config/ivpn-config-conf.zip -q -O /tmp/ivpn-config-conf.zip
sudo unzip /tmp/ivpn-config-conf.zip -d /etc/openvpn
sudo mv /etc/openvpn/IVPN-config/* /etc/openvpn
sudo rmdir /etc/openvpn/IVPN-config
ls /etc/openvpn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment