Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Install and configure the openvpn package for your distribution: 

    Code Block
    $ sudo apt-get install openvpn 
  2. Download the Rapid Access Cloud VPN configuration files. VPN access is configured per region:

    1. Calgary

    2. Edmonton

  3. Unzip the file and copy the contents to note the path where it is located. /etc/openvpn .

  4. Rename the .ovpn file copied to /etc/openvpn to .conf (e.g. config.ovpn vpn-yyc.conf).

  5. Start openvpn: 

    Code Block
    $ sudo service openvpn start
  6. would be a good location to store it.

  7. You can either interactively enter your Rapid Access Cloud account credentials each time or store the credentials in a text file.

    1. To interactively enter Rapid Access Cloud account credentials each time: 

      Code Block
      sudo openvpn --config /path/to/config.ovpn
      <enter RAC email>
      <enter RAC password>
       
      # Put process in background
      <ctrl-z>    # suspend process
      bg          # resume suspended process and sends to background
      disown -h   # process is not killed when terminal is shutdown
    2. To store your credentials in a text file so you don't have to enter it each time. Replace rac-username and rac-password with the username/email and password for your Rapid Access Cloud account.

      Code Block
      sudo su
      touch /etc/openvpn/rac-credentials
      printf '%s\n' 'rac-username' 'rac-password' > /etc/openvpn/rac-credentials
      sed -i 's/auth-user-pass/auth-user-pass \/etc\/openvpn\/rac-credentials/g' /path/to/config.ovpn
       
      # To start vpn in background
      nohup openvpn --config /path/to/config.ovpn &
      # process output will be logged in nohup.out
  8. When prompted, enter your Rapid Access Cloud username and password. To check whether the VPN is working, open a terminal and attempt to ping your private IP address. For example, “ping 10.0.0.73”.

  9. To disconnect from the VPN: 

    Code Block
    sudo killall openvpn