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. move the contents to /etc/openvpn would be a good location to store it.

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

    To interactively enter Rapid Access Cloud account credentials each time

    /.

  4. Start the OpenVPN client service

    Code Block
    sudo 
    openvpn
    systemctl 
    --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

    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.

    status openvpn@client
    Enter Auth Username:
    Enter Auth Password:

    Enter your Rapid Access Cloud username/email address and password to authenticate.

    Code Blocksudo 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