DIY VPN: How to Set Up a Free VPN (IPV4 & IPV6) on Ubuntu 18.04 or 20.04 and Windows with OpenVPN
We will use OpenVPN to create a free VPN (IPV4 & IPV4) on Ubuntu Server 18.04 or 20.04 and we will access it from a Windows computer.
Login to your Ubuntu server.
Create a new folder:
mkdir vpn && cd vpn
Download and run OpenVPN installer script:
wget https://raw.githubusercontent.com/justdataplease/openvpn-install/master/openvpn-install.sh && bash openvpn-install.sh
Follow the steps to generate a username.ovpn file (during the steps you will be asked, choose a username of your choice).
Login to your Windows computer.
Use an FTP client for Windows like WinSCP to download username.ovpn file locally.
Download OpenVPN for Windows.
When Install finishes open OpenVPN and click + button (orange), then select File and select username.ovpn that we generated previously.
Original Source : https://github.com/Nyr/openvpn-install