...
Install and configure the openvpn package for your distribution:
Code Block $ sudo apt-get install openvpn
Download the Rapid Access Cloud VPN configuration files. VPN access is configured per region:
Unzip the file and copy the contents to note the path where it is located. /etc/openvpn .
Rename the
.ovpn
file copied to/etc/openvpn
to.conf
(e.g.config.ovpn vpn-yyc.conf
).Start openvpn:
Code Block $ sudo service openvpn start
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:
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
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
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”.
To disconnect from the VPN:
Code Block sudo killall openvpn