How to setup a OpenVPN server

How to setup a OpenVPN server

Download install script

wget <https://git.io/vpn> -O openvpn-install.shwget <https://git.io/vpn> -O openvpn-install.sh

Execute the script

sudo chmod +x openvpn-install.sh
sudo bash openvpn-install.sh

At this point you will be prompted to choose either UDP or TCP in protocol options, choose "Current system resolvers" in DNS server options, and enter a client name (this will also be the *.ovpn file name).

Verify service is running

systemctl status [email protected]

Now you can use client config file at ~/<client name>.ovpn. This file lets clients connect to the VPN server we just created.