Quick VPN setup on your server

Assume you have Debian-based distro. On server side:

apt update && apt install openvpn
wget https://raw.githubusercontent.com/Nyr/openvpn-install/master/openvpn-install.sh

Run this script for every client device and follow instructions, and that's it!

Now copy *.ovpn to client device and run openvpn. For Debian-based distro you should copy this file to /etc/openvpn/ and run following command

openvpn --config /etc/openvpn/ovpn.conf

Now this service should run on every system start. You can control it manually by following commands (be sure it run it as root):

service openvpn start
service openvpn stop
service openvpn restart
service openvpn status


Back