What do you need?
You need a Dedicated server or Virtual private server. They are cheap so don’t worry. You can buy the virtual server on Vultr or Digital Ocean. You can also find much cheaper servers online but these are my recommendations and I have used them personally.
Setup OpenVPN server
OpenVPN is a free open-source software for making a VPN. It has a wide range of functionalities. By now I hope you have a server. Now you need to access your server through PuTTy. Download PuTTy, Install it and SSH into your server. Now we need to input the following commands. You can copy the commands and paste them into PuTTy by Right Click.
curl -O https://raw.githubusercontent.com/Angristan/openvpn-install/master/openvpn-install.sh
chmod +x openvpn-install.sh
The script will ask couple of questions. First is about IP address press Enter for default.
Do you want to enable IPv6 support (NAT)?
Replace ‘Y’ with ‘N’ and press enter.
What port do you want openVPN to listen to?
For Port Settings, there are few things to consider. If you want fast connection that is more real time whatsapp call etc then default settings are fine for you, Just press Enter. But If you are in country where the censorship is very hostile and they block openVPN traffic. Then you need to change your port to 443. Select ‘Custom option’ and replace 1194 to 443.
What protocol do you want openVPN to use?
If you change the port to 443 then you need to choose TCP. Otherwise UDP it is.
What DNS resolvers do you want to use with the VPN?
You can choose any of the public DNS options(3-11). Or Better just press Enter for default.
Do you want to use compression? It is not recommended since the VORACLE attack make use of it.
Do you want to customize encryption settings?
That’s it. Now press enter so that the script can finish installation by downloading the necessary packages.
Meanwhile the installation is going on go ahead and download filezilla. We will need it to access our server to download the client configuration files. We also need a OpenVPN windows client. You can download OpenVPN connect apps on IOS and android later if you plan to use it on your mobile device.
By now your server would have finished installation and will ask you some final questions.
Tell me a name for the client
Enter any name. For Example Client1
Do you want to protect the configuration file with a password?
Press Enter as default, we do not want password for this instance.
The installation process has completed and would now have created a client1.ovpn file in the directory of the script. We just need to download that file so that we can connect to our openVPN server. We can re-run the same script to get more client configurations in order for us to use it across multiple devices or multiple users simultaneously by the following command.
After you re-run it you will get three options as listed by its author.
- Add a client
- Remove a client
- Uninstall OpenVPN
Start FileZilla, Input your server details like this. And connect.
Then a directory will be shown, you can download your files from there.
Download the client file(s).
Install the OpenVPN windows client. And copy the client files in its directory \OpenVPN\config\ in your computer.
Run OpenVPN in your computer. It will launch in system tray. Right click and check your new client1 will be shown there. Just go and connect.