Installing and connecting to MageStack with OpenVPN

OpenSSL 3 - OpenVPN 2.6 and Tunnelblick 4.0.0beta15

Please note that the stacks don't currently support OpenSSL 3, so you may encounter errors when trying to connect using the OpenVPN 2.6 client on Windows, or the Tunnelblick 4.0.0beta15 client (and later versions) on Mac.

For the time being, please downgrade to either OpenVPN 2.5.9, or either Tunnelblick 4.0.0beta13 or 3.8.8g.

Please see https://www.sonassi.com/help/access/openvpn-2-6-openssl-3-support for further information.


After issuing a VPN bundle, you will be been sent 2 emails.

  1. The first email contains a password for the ZIP file attached in the second email
  2. This email contains a password protected ZIP file, within this archive, there are 3 files

    1. OpenVPN configuration file (dhX.cX.sonassihosting.com.ovpn)
    2. OpenVPN certificate file (cX_user@example.com.p12)
    3. OpenVPN passphrase for certificate file (Passphrase.txt) [Optional]

All files (excluding Passphrase.txt) should be copied into the OpenVPN config directory, at which point, the OpenVPN GUI client will recognise the file and allow you to connect to the VPN.

Windows XP/Vista/7/8

Start by downloading the appropriate version of OpenVPN from https://openvpn.net/index.php/open-source/downloads.html, choosing either the 32Bit (i686) or 64Bit (x86_64) as appropriate.

openvpn_download

Then open the file you downloaded and start the installer. You do not need to change any of the settings during the installation, it is safe to leave everything on the selected defaults.

openvpn_install1

openvpn_install2

openvpn_install3

openvpn_install4

openvpn_install5

openvpn_install6


Once the installation is complete, you should copy the configuration files from the ZIP archive we sent, to the OpenVPN configuration directory. Depending on the version of OpenVPN you installed, the path will either of the following:

c:\Program Files (x86)\OpenVPN\config
c:\Program Files\OpenVPN\config

Click Start > Run (Windows key + R), and enter the appropriate path from above, then copy the configuration files into the configuration directory

openvpn_rundialog

openvpn_directory


Then open OpenVPN as an administrator, a small icon will appear in the tray, right click the icon and select connect.

If your certificate is passprhase protected, enter the passphrase (from the Passphrase.txt file) when prompted.

openvpn_runas

openvpn_runas2

openvpn_connect


Checking the VPN is connected

Once the VPN connection has been established, you can test whether it is working properly by performing a simple ping test.

  1. Click Start > Run (Windows key + R)
  2. Type cmd
  3. In the command prompt that appears, type ping 172.16.0.61

If the VPN is connected, you should see responses. If it is not, you will see a timeout/connection error.

! OpenVPN MUST be run as Administrator, failure to do so will result in the VPN not connecting

Mac OS X

Start by downloading the appropriate version of Tunnelblick from https://tunnelblick.net/downloads.html.

tb_install1

tb_install2

tb_install3


Once the install has completed, you will be prompted to start Tunnelblick and set the initial configuration.

tb_install4

tb_install5


tb_install6

tb_install7


You should now extract the configuration file from the Mac folder in the ZIP archive we sent:

tb_install9


Install the bundle by double clicking the .tblk file which will prompt you as follows:

tb_install10


You can now connect to the VPN by clicking the Tunnelblick icon in the menu and selecting the Connect option:

tb_install11


Linux

The command will vary depending on the Linux distribution and/or package manager you're using - but for Ubuntu or Debian which both use the apt package manager, you can install OpenVPN by running:

sudo apt install openvpn

Checking the VPN is connected

Once the VPN connection has been established, you can test whether it is working properly by performing a simple ping test.

  1. Open the Finder and navigate to the Applications folder
  2. Find the Utilities folder and open it
  3. Double click Terminal
  4. In the command prompt that appears, type ping 172.16.0.61

If the VPN is connected, you should see responses. If it is not, you will see a timeout/connection error.