sudo apt-get update
sudo apt-get upgrade
sudo apt-get install openvpn unzip
All the hardware used to operate OVPN is owned by us. All VPN servers operate without hard drives as the operating system only resides in RAM.
Learn moreRun the command below and go through the configuration prompt to select the correct time zone.
sudo dpkg-reconfigure tzdata
sudo -i
echo "CHANGE TO YOUR USERNAME" >> /etc/openvpn/credentials
echo "CHANGE TO YOUR PASSWORD" >> /etc/openvpn/credentials
sudo openvpn --config /etc/openvpn/ovpn.conf --daemon
Wait for about a minute after running the last command, then run:
curl https://www.ovpn.com/v2/api/client/ptr | python -m json.tool
You should see something like:
{"status":true,"ip":"46.227.67.132","ptr":"cliXXX.ovpn.com"}
Congratulations! Now your Raspberry Pi will run behind OVPN. The Raspberry Pi will connect automatically when it is started.
In case the connection was not set up properly when you verified it in the previous step, please send us the OpenVPN log so we can assist. You can retrieve it by writing:
sudo -i
cat /tmp/openvpn.log
You can also check if OpenVPN is running properly by writing:
ps aux | grep openvpn
Best deal of the year - get 71% off our 1-year plan for Black Friday! Get Deal
View pricing