All Articles

Roll your own WireGuard VPN with PiVPN

PiVPN has offered easy setup of your own VPN with OpenVPN on a Raspberry Pi (or Debian/Ubuntu server) for quite some time. Now they offer the option to install a WireGuard VPN using the same easy to use script.

WireGuard is a relatively new protocol, that offers a faster, simpler and leaner protocol compared to OpenVPN. The biggest difference when using on mobile are the connections are initiated much faster in my own experience. WireGuard also offer a modern iOS app that offers easy On Demand activation with exceptions via SSID when on WiFi. This is great to have the VPN only activate automatically on WiFi that is not your home setup.

The process for setup is documented on the PiVPN site and the interactive install makes the setup relatively easy. The only difficultly I found was trying to open the port on my router to the Pi on my local network. Entire setup for myself, including on devices was less than 30 mins. Applications are available for almost all platforms to install on your devices (phones, tablets & PCs) on the WireGuard install page.

Personally I really liked the setup of mobile by QR code via command line. It is a great feature, no need to copy a file to the phone.