![]() sudo bash - c 'echo "USERNAME" > /etc/openvpn/login' As long as your Pi is well secured, it should not be a problem. ![]() While this is not technically "best practice", I could not come up with a safer way. Since PIA VPN uses auth-pass in its configuration, we need to save the PIA username + password in a file on the server - the same you use to log into the desktop app or website. Install OpenVPN on your Raspberry sudo apt install openvpn -yĬreate a login file for OpenVPN. Take note of the IP address displayed there, that's your current public IP without the VPN. sudo apt update & sudo apt upgrade -yĬheck if you have an internet connection to begin with. Pi VPN Setup for PIA with killswitch and DHCP - Does not work.We will be running PIA via OpenVPN fully in headless mode. Mine runs the latest (as of November 2020) Raspberry Pi OS on a Raspberry Pi 3, but it will work on the 4 as well. I'd have a hard guess that this setup / method works with anything that uses OpenVPN however. I needed this setup because I want to turn one of my Raspberry Pis into a seedbox, and I sleep much better at night when it's behind a VPN. I never liked dealing with OpenVPN, let alone on a Raspberry Pi but here we are. I feel the need to start with that because all of the guides out there on the internet are too old and do not work anymore. This post was written on the 14th of November 2020.
0 Comments
Leave a Reply. |