Debian 10 Set Up OpenVPN Server In 5 Minutes

Originally published at:

I am a new Debian Linux 10 server user. How do I set up an OpenVPN Server on Debian Linux version 10 server to shield my browsing activity from bad guys on public Wi-Fi, and more?

The easiest way is to use the pivpn script from
It is as simple as running:

curl -L | bash

I have tested it on Debian 10 and works great !!!

I’d like to add that this also works like charm on a Raspbian 10 / Buster.

Thank you very much for this great work – but couldn’t I have googled this after having spent a couple of hours of trying to set my raspi based OVPN server manually? :wink:

Linux sysadmin blog - Linux/Unix Howtos and Tutorials - Linux bash shell scripting wiki