

The running OpenVPN process can be stopped using CTRL-C. If you use a second terminal window or SSH session you can re-run curl Īnd you should see a different IP address. The process will not return you to the command prompt. You will be connected to a VPN server and the VPN tunnel with be created. It will prompt you for your Private Internet Access account details. You could run OpenVPN at this point with a specific server using: sudo openvpn sweden.ovpn It will show you what your external IP is and where in the World it thinks you are located based on that address. If you are running a desktop environment you can also visit the Private Internet Access “Whats my IP” page. This gives you the IP address that the outside world sees when you connect to external services. Step 6 – Find Pi VPN External IP AddressĪt this point you should check what IP address your internet connection is using: curl The filename indicates where the VPN server is located.

You can list the available VPN servers using: ls *.ovpn -l This will place a number of “ovpn” configuration in the openpvn directory. The contents of the zip file can be extracted using: sudo unzip openvpn.zip Now the Private Internet Access configuration files can be downloaded from their website: sudo wget Once installed browse to the openvpn directory: cd /etc/openvpn/ Install it using this command: sudo apt install openvpn Step 4 – Download VPN Configuration Files PIA can use the widely used open source project client program OpenVPN. Sudo apt upgrade Step 3 – Install OpenVPN Run these commands to update your package lists and install updates. You can do that here : Step 2 – Update your Pi OS InstallationĪs with most tutorials it is always best to ensure you have the latest packages loaded. To use their service you will need to subscribe to obtain a username and password. Step 1 – Sign-up to PrivateInternetAccess

You can use it on multiple devices and I use it on my Smartphone whenever I connect to “free” WiFi when out shopping (remember when we could do that!). I have been using Private Internet Access for a number of years. You can find free VPN services out there but a legitimate service only costs £35 a year and is considerably more reliable and trustworthy. This hides your normal IP address which in turn hides your identity and location.

All your internet traffic is routed through the tunnel and appears to the other end to be using the IP address of the VPN server. Once subscribed to a VPN service you can access the internet using it and protect your privacy.Ī VPN (Virtual Private Network) creates an encrypted tunnel between your computer and a remote server. Setting up a Raspberry Pi VPN connection is easy.
