Hi, Geektimes!
Not so long ago, the thought occurred to me that connecting to a Linux server via SSH, installing packages, running scripts is all a common type of routine for which human participation is not needed, a robot can do it. Of course, I use Ansible, but he, too, is "not for everyone."
As a result, the program "for all" was written in which there is simply one button "to do well". The program is open source and available for research and download on GitHub.
But one program is not enough to carry personal OpenVPN to the masses. Therefore, this article was written in which everything was described simply and in steps, from creating an account in a cloud service to connecting from a mobile phone.
All you need to do 4 simple steps:
Install button and wait for the installation to complete.ovpn file and connect to VPN with itAlmost any virtual (VPS, VDS) or physical server will fit (the virtual must have a tun interface). For example, below is a guide on how to use DigitalOcean, as the most stable, simple and easy-to-use cloud provider.
To activate your account you need one of two things:
If you use PayPal, you will need to deposit $ 5. With a credit card, they will block $ 1 and return it.
It is best to register by referral link - then the promotional code for $ 10 will be automatically applied. And you can register by filling out the form on the main page and later enter any promotional code - it is easily searched through google. There are many different and all for $ 10.
Following the link, just enter the e-mail and come up with a password.

After clicking on the button, you will receive a letter with a link to confirm registration - you will need to click on it.
Next you need to enter credit card details, or PayPal. This is a mandatory requirement for account verification. Almost everyone has PayPal.

After pressing the confirmation button, the standard payment process will start. But there is an important feature that will allow you to save a little: your bank converts rubles into dollars at a more favorable rate than PayPal

You need to click View conversion options and select Convert with card issuer

After the payment is completed, you will be taken to the Dashboard main page. You can go to Settings -> Billing to see the balance.
Here Your credit $15 is an advance payment. And Usage $0.00 is the amount you need to pay. Payment is usually made after the fact - how much you have spent in a month, how much you will be asked to pay (after exhausting the advance payment). At the bottom you can see what were charges.

Top-right click Create -> Droplets

The server creation page will open. You need to set 3 basic parameters.
Operating system: Fedora 27 . It is the smallest, fastest and stable available. Although Debian 9 is also a good choice. Moreover, all available operating systems are supported, except FreeBSD and Debian 7 .

Size: the smallest $ 5 will be enough.

Region - you need to choose the one that is closer to you geographically. For the European part of Russia - this is Amsterdam .

It's enough. At the very bottom, you can change the name, but you can leave the default and click the big green Create button. The virtual machine will start to be created, and soon you will receive an e-mail with its address and password.
To install, just go to the release page , download the appropriate file and run it.
SSHeller.Setup.XXXexeSSHeller-XXXdmgSSHeller-XXX-x86_64.AppImage - after loading to make executable and runNow SSHeller can be run from the list of applications.
A letter from DigitalOcean should have arrived. From it we need 4 parameters.

Launch SSheller and click Add


Copy the parameters from the letter:
Droplet Name -> NameIP Address -> HostUsername -> UserPassword -> PasswordPressing Save returns to the list of servers.

In the list, select the created server and click Connect . The first connection takes a little longer as DigitalOcean creates expired virtual machines and the application will need to update it. After connecting, the server status (Dashboard) will be displayed. From the top left, open the menu and select OpenVPN .

On the OpenVPN screen, just press the green Install button and wait.

How long to wait is impossible to predict. Sometimes it can be 3 minutes, and sometimes - up to half an hour. It depends on the server on which your virtual machine is running. The smaller the server has a pool of entropy - the longer it takes to wait. If in simple words: the computer very slowly creates new random numbers, but it does it constantly and saves them. And to create encryption keys you need a lot of random numbers. If someone has already used them, you will have to wait.

At the end a report will be displayed. If interested, you can watch it.
The default profile and the corresponding configuration file - client.ovpn will be created client.ovpn . You can download it, or you can create another one, or several, by entering the name of the new profile and clicking the Add button.

To download just click on the appropriate profile file.
Windows and Linux you need to install OpenVPNmacOS - TunnelblickAndroid and iOS - OpenVPN Connect from the app storeopenvpn-install-XXX-I601.exe from the official site and installclient.ovpn file client.ovpn to be copied to the C:\Program Files\OpenVPN\config folder - confirmation of Administrator rights will be requiredOpenVPN -> OpenVPN GUI
If there are several files in the config folder, a submenu for each file will appear.
Tunnelblick_XXX.dmg from the official site (Stable) and launchTunnelblick, and in the next window click OKclient.ovpn file and open it; indicate whether you want to use it or allow other computer usersclient
sudo apt-get install -y openvpnsudo openvpn --config client.ovpn command sudo openvpn --config client.ovpnOpenVPN Connect from App StroreOpenVPN Connect application, select Import you Private Tunnel Profileclient.ovpn fileOn position.
OpenVPN Connect from Google PlayOpenVPN Connect application, select OVPN Profileclient.ovpn file (usually it is saved in the Downloads folder) and click IMPORTADDOn position.
Those. you can only pay for the time that you really use. And here are two important points:
Destroy , and on the server page that appears, click Destroy again. The next time you need to re-repeat the entire setup, create new ovpn files and send them to the devices.
Technically, you can create a variety of profiles, both for different devices and for different people. Together the price for each will already be $ 2.5, five of them - $ 1.
It is important that for each profile there can be only one simultaneous connection. So, at a minimum, you need to create separate profiles for different devices.
On May 1, 2018, comments began to appear that some Russian providers were blocking Digital Ocean. There is a great alternative - Linode ( comparison ).
PodcastInIt2018 worked on $ 20172.104.130.238rootFurther, all the basic instructions.
Source: https://habr.com/ru/post/371475/
All Articles