Creating your own VPN server for smartphone and PC in 5 steps – 100 Mbps
Now there is an acute question of using foreign social networks and services blocked in Russia. Although the policy of some companies sometimes leaves much to be desired, but we are used to their products and want to continue using them (which is the law not prohibited).

Free VPNs – a great option if you only need it once or twice a day for five minutes, however, they contain ads and the speed is quite limited, also due to high demand, users experience delays.
Paid VPNs – also a solution if you do not need to connect many devices, otherwise it becomes unprofitable to pay for them. Also, the security of your data when using any VPN services remains under question.
I will tell you how to create your own VPN based on a regular virtual server using openVPNit will be safer, you can add an unlimited number of devices or remove them yourself.
Step 1: register the server.
It’s easier than it looks. All you need is to rent your virtual server on any service, the main thing is that it be abroad. I will show by example vdsina (this is an affiliate link, they promise a 10% discount when you click), but you can use any other you find.
Recently they have added a commission of 20% for replenishment, which is very brazen. There are also other options: iphoster – 2$ and melbicom – 314₽ (at the time of writing), but their services I did not check.
Let’s go to them website, register. After registration, you will need to replenish your account. Select the amount, at the time of writing the article, the minimum cost is 11 rubles / day. You do not need to put a lot, you can extend the server by paying more or delete it.
We go to Control Panelclick “Create Server”.

Next, select: Ubuntu 20 -> “Standard Servers” -> The cheapest tariff (if not enough, you can increase it later) -> Location – Amsterdam -> “Turn off automatic backup -> Click “Create a server”.

Step 2: connect to the server
After a few minutes of waiting, you will receive login information by mail:

We are interested in IP, username and password. Connection to the server occurs via ssh – works through a standard windows / macos / linux terminal – nothing needs to be installed.
We go to the terminal:
Windows: Press “Win + X” then select “Command Prompt (Admin)” from the list
MacOs: In Spotlight, type “Terminal”, press enter.
Next, we need to enter the command: ssh root@[ip]
[ip] – you need to replace the address from the letter with the ip, and root is the standard username – you also received it. As a result, we get a string in the following format:

Then the console will ask you if you want to connect, enter yes, then it will ask you for the password from the server – enter the password from the letter – you’re done, you’re connected! Something like this should appear:

Step 3: Create a VPN
for vpn to work we need to install scripts. To do this, simply enter the command:
wget https://git.io/vpn -O openvpn-install.sh && bash openvpn-install.sh
After that, there will be three questions. On the first we enter – 1, on the second just press enter, on the third we enter – 2.
Next, you will need to enter a username – choose any you like.
The scripts will install and the configuration file will appear.
To use it, download it through any ftp client. I use filezilla.
Click on the server button.
Click “New Site”
Choose the protocol SFTP – SSH
In the “Host” field, enter the ip from the letter
Enter root in the “User” field
In the “Password” field, enter the password from the letter
Click “Connect”

Once connected, you will have the server directory on the right and the local computer directory on the left. Go to the folder you need in the local directory and download the configuration file (double click on it), you will have one for now.

When the file is downloaded – transfer it to the phone – I did it using telegram (do not forget to download the file from telegram).
Step 4Connect to your VPN
Here we are at the target. Now you need to go to the app store and download openVPN.

Next, open the application, select file – find the file in the directory (/Download/Telegram) and click “Import”

Next, click “add”

Everything is easier on ios/ipados. Just open the file and pass it to the openVPN program (this method will work on some android smartphones, but not all)

That’s all! Ready. You now have your own personal VPN and my speed reached 120 Mbps.
Step 5: Adding New Users
You can also share it with your friends by creating and transferring new configs to them. To do this, connect to the server again and repeat the command:
wget https://git.io/vpn -O openvpn-install.sh && bash openvpn-install.sh
Then a window will pop up:

Add user
Delete user
Delete a program
Log off
Enter 1 and then enter the name of the new user.
Then download the config file again and transfer it to it.
You can also create configuration files for your devices – PCs, tablets, other phones. Just remember that if you connect two devices with the same configuration file, they CANNOT work at the same time.
You can download the client for PC/MACOS/Linux from link.

The connection will not be much different, I would say that it is even simpler.
Thank you for your attention and use VPN wisely!)