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 note the path where it is located. /etc/openvpn would be a good location to store it.

  4. 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
  5. 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”. 

    Note

    Make sure that the security group for the instance has rules to allow ingress ICMP.

  6. To disconnect from the VPN: 

    Code Block
    sudo killall openvpn