wget https://git.io/vpn -O openvpn-install.sh
chmod +x openvpn-install.sh
sudo ./openvpn-install.sh
$ sudo systemctl stop openvpn-server@server.service # <--- stop server
$ sudo systemctl start openvpn-server@server.service # <--- start server
$ sudo systemctl restart openvpn-server@server.service # <--- restart server
$ sudo systemctl status openvpn-server@server.service # <--- get server status
sysctl net.ipv4.ip_forward=1
Once tested make the change permanent in /etc/sysctl.conf
in client.conf, add extra line
redirect-gateway autolocal
sudo systemctl -f enable openvpn
sudo systemctl start openvpn
sudo systemctl status openvpn@client