Run as superuser
sudo su
Download components
apt-get install openvpn unzip
Download the configuration you want
cd /tmp && wget https://files.ovpn.com/ubuntu_cli/ovpn-se-gothenburg.zip && unzip ovpn-se-gothenburg.zip && mkdir -p /etc/openvpn && mv config/* /etc/openvpn && chmod +x /etc/openvpn/update-resolv-conf && rm -rf config && rm -f ovpn-se-gothenburg.zip
Enter your login credentials
echo "CHANGE TO YOUR USERNAME" >> /etc/openvpn/credentials echo "CHANGE TO YOUR PASSWORD" >> /etc/openvpn/credentials
Start OpenVPN and see that everything works openvpn --config /etc/openvpn/ovpn.conf --daemon
Verify that the connection was successful Wait about 30 seconds and then run:
curl https://www.ovpn.com/v2/api/client/ptr
You should see something like:
{"status":true,"ip":"the external ip","ptr":"PTR for the IP address"}
Congratulations! Your device is now protected behind OVPN and will automatically connect on reboots. If you encountered any issues, please send the log file (/tmp/openvpn.log) to our support.