sudo apt-get update
sudo apt-get upgrade
sudo apt-get install openvpn unzip
Your privacy and security is the core focus of OVPN. That's why we've implemented a multi-layered security model.
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
Special Offer: Save $144 on our annual subscription
View pricing