I HAVE COPIED THIS CODE AND ALL IMAGES FROM HERE FOR SIMPLE USAGE AND ACCESS
Use any one of the following command to find out your IPv4 public address. If your internface name is eth0 or eth1, enter:
$ ip addr show eth0
or
$ ip addr show eth1
or use the host command or dig command as follows:
$ host myip.opendns.com resolver1.opendns.com
or
$ dig TXT +short o-o.myaddr.l.google.com @ns1.google.com
$ sudo bash openvpn-install.sh
$ cat /etc/rc.local
$ cat /etc/openvpn/server.conf
$ sudo cat /etc/openvpn/openvpn-status.log
Type the following command stop the OpenVPN service:
$ sudo systemctl stop openvpn@server
Type the following command start the OpenVPN service:
$ sudo systemctl start openvpn@server
Type the following command restart the OpenVPN service:
$ sudo systemctl restart openvpn@server
Type the following command stop the OpenVPN service:
$ sudo /etc/init.d/openvpn stop
Type the following command start the OpenVPN service:
$ sudo /etc/init.d/openvpn start
Type the following command restart the OpenVPN service:
$ sudo /etc/init.d/openvpn restart
First, install the openvpn client, enter:
$ sudo yum install openvpn
or
$ sudo apt install openvpn
Next, copy xyz.ovpn as follows: $ sudo cp xyz.ovpn /etc/openvpn/client.conf
Test connectivity from the CLI: $ sudo openvpn --client --config /etc/openvpn/client.conf
Your Linux system will automatically connect when computer restart using /etc/init.d/openvpn script:
$ sudo /etc/init.d/openvpn start
For systemd based system, use the following command:
$ sudo systemctl start openvpn@client
run the script again:
$ sudo bash openvpn-install.sh
then select option 1 and type client name
Run the script:
$ sudo bash openvpn-install.sh
Type 2 option and you will see a list of all the existing client certificate you want to revoke.
https://www.cyberciti.biz/faq/howto-setup-openvpn-server-on-ubuntu-linux-14-04-or-16-04-lts/