# VPN Configuration

To access AVC compute/IT resources available for you to develop, you will need to configure our VPN on your current system. The following instructions will tell you how to install the VPN on whatever platform you use.

Operating System
Ubuntu
Windows
MacOS

# Ubuntu

# 1. Set up apt to use the openvpn.net repository

# a. Download the OpenVPN key and add it to Ubuntu's apt key repository

wget https://swupdate.openvpn.net/repos/repo-public.gpg
sudo apt-key add repo-public.gpg

Alternatively, can be done from the "Software and Updates" application: under the "Authentication" tab, click "Import Key File," and select the key downloaded from the above URL.

# b. Add the repository to your apt lists

This step can be done from the GUI or from the command line. Choose one of the methods below.

  • command line:
sudo sh -c \
  'echo "deb http://build.openvpn.net/debian/openvpn/stable xenial main" \
      >> /etc/apt/sources.list.d/openvpn-repo.list'

# c. Refresh your package lists

sudo apt update

# 2. Install OpenSSL and related support packages

sudo apt install openvpn network-manager-openvpn network-manager-openvpn-gnome

# 3. Configure Network Manager with OpenSSL

  1. Download and uncompress all the contents of the AVC VPN configuration ZIP file: https://drive.google.com/file/d/1u9A70Hsg0mK2TmBXbBXGWJ7PsEyG7i4H/view?usp=sharing
  2. Open the "Settings" program and navigate to "Network". Then click "+"

Screen_Shot_2021-01-14_at_6.54.22_PM
Screen_Shot_2021-01-14_at_6.54.22_PM

  1. Next to the VPN section, click the + button to add a new connection.

Screenshot_from_2021-01-14_15-53-59
Screenshot_from_2021-01-14_15-53-59

  1. Select "Import a saved file..."

Screenshot_from_2021-01-14_15-58-00
Screenshot_from_2021-01-14_15-58-00

  1. Browse to the "openvpn.conf" from the .zip file.

  2. On the next screen, give the connection a different name if desired (like AVC server), fill in username (password is optional; if not filled you will be prompted for a password upon connecting), and hit "Save"

  3. Once configured, select the gear icon next to the VPN configuration in the VPN section of the "Network" settings page, select the "IPV4" tab, then check "Use this connection only for resources on its network".

Screenshot_from_2021-01-15_12-10-18
Screenshot_from_2021-01-15_12-10-18

# 4. Test Connection

Click the network icon, hover over "VPN Connections", and then select the new VPN connection you just made. You should get a message saying a VPN connection has been successfully established.

# Windows

# 1. Download and Install OpenVPN

Download OpenVPN from: https://openvpn.net/community-downloads/ and follow the installer to complete installation.

# 2. Configure the VPN

# a. Download the VPN config

The OpenVPN configuration .zip file can be downloaded from the following link: https://drive.google.com/file/d/1u9A70Hsg0mK2TmBXbBXGWJ7PsEyG7i4H/view

Note: for step 1 you will need to have 1) been given access to the Google Drive, and b) be signed in using your MSU Google Apps account (your @msu.edu email).

# b. Set Configurations

  1. Unzip the file to a permanent location
  2. Change the extension of the .conf file to .ovpn
  3. Open the .conf file and find these lines:
ca ca.crt
cert client.crt
key client.key

Change the ca.crt, client.crt, and client.key to be full paths, for example (with \ as path separators instead of single backslashes):

ca C:\\my_vpn\\ca.crt
cert C:\\my_vpn\\client.crt
key C:\\my_vpn\\client.key

Then, find the lines that say:

tls-auth ta.key 1
auth SHA512

Change the ta.key part of the first line to be a full path, similar to the previous step, so it looks something like this:

tls-auth C:\\my_vpn\\ta.key 1
auth SHA512

# c. Import Configurations

Then, run the OpenVPN GUI, then right-click the tray icon, then click “Import file”, then select your modified .ovpn file.

# 3. Connecting to the VPN

To connect, right-cick the OpenVPN tray icon and click “Connect”

# MacOS

To access the AVC VPN through macOS an OpenVPN client is required (not supported natively). The preferred OpenVPN client for macOS is Tunnelblick.

# 1. Install Tunnelblick

To install Tunnelblick, download and run installer from the following page: https://tunnelblick.net/downloads.html

# 2. Download the VPN Configuration

Download and uncompress the AVC VPN configuration file: https://drive.google.com/file/d/1u9A70Hsg0mK2TmBXbBXGWJ7PsEyG7i4H/view?usp=sharing

Note: for step 1 you will need to have 1) been given access to the Google Drive, and b) be signed in using your MSU Google Apps account (your @msu.edu email).

# 3. Import Tunnelblick Configurations

Once Tunnelblick is installed and running, navigate to the uncompressed zip folder from (2), then drag the openvpn.conf file onto the tunnelblick "arch" icon in the menu bar (a plus icon should appear on the cursor) and proceed to add the configuration.

Screen_Shot_2021-01-14_at_6.20.44_PM
Screen_Shot_2021-01-14_at_6.20.44_PM

# 4. Connect to the VPN

To connect, click on the Tunnelblick icon in the menu bar, then select "Connect <vpn_name>" where <vpn_name> will likely be something like "openvpn"; in the image below the configuration was renamed to "SOAR" (details on renaming at the end of this page):

Screen_Shot_2021-01-14_at_6.23.48_PM
Screen_Shot_2021-01-14_at_6.23.48_PM

To confirm you have been connected you should see:

Screen_Shot_2021-01-14_at_6.24.47_PM
Screen_Shot_2021-01-14_at_6.24.47_PM

To disconnect, simply press "Disconnect...".