This tutorial, I using Ubuntu linux as server, and Windows as client side.
Find know what is your IP public
$ dig +short myip.opendns.com @resolver1.opendns.com
Pull this file installer
$ wget https://git.io/vpn -O openvpn-install.sh
Give execute privilege
$ sudo chmod a+x ./openvpn-install.sh
Run installer
$ sudo ./openvpn-install.sh
Follow and fill the installer asking for.
Download OpenVPN GUI for Windows
https://swupdate.openvpn.net/community/releases/OpenVPN-2.6.16-I001-amd64.msi
Install file above until complete.
Pull file example.ovpn using SCP
$ mkdir openvpn && cd openvpn
$ scp -i ..\.ssh\myprivatekey -P 22 username@ip_public:/home/ubuntu/openvpn/example.ovpn .
Open OpenVPN GUI on your local PC, then import file example.ovpn
Right click on taskbar icon openvpn.
Click connect, wait until the app connect to your server VPN.
Done.

Comments
Post a Comment