social network

How to create a proxy server for Telegram is very cheap

Friends, in the light of recent events, even the most lazy Internet user was interested in raising his own remote server and launching a personal VPN.

Yesterday we told ”  “. Thank you for asking questions and helping each other not to get confused in multiple settings.

Several readers were asked to tell in detail and chew on how to launch their own proxy. This is about the very SOCKS5, which is used in Telegram.

Well, I respond to the request and provide a detailed instruction on the launch of SOCKS5.

What do you need for your SOCKS5 proxy

The first and most important condition is that you have a ready-made VPS or VDS (the same remote server .

In fact, this is a low-power computer (the power directly depends on the amount with which you are ready to leave each month), working in another country. In the case of ArubaCloud, it may be analogues of office PCs located in the Czech Republic, Italy, Germany, Poland.

PS By the way, readers have noticed that when setting up ArubaCloud it is preferable to use Czech servers. We take note. Apparently, all the Italian already dismantled.

Those who conducted ArubaCloud tuning, can skip the instructions steps to the point Launching their SOCKS5 .

Having configured the remote server, it is possible to start the deployment of its proxy.

When I insisted on running the Linux distribution, I subconsciously understood that there would be a further need to start additional services and services. Command line to help, let’s go.

How to start a cloud server based on the ArubaCloud service

Step 1. Open the site . and choose the cheapest tariff plan for 1 euro per month. Click Start Now .

Step 2. In the list, we re-select the tariff plan for 1 euro.

Step 3. In the next step, select Continue and select Register . Then fill out the user’s questionnaire.

All fields marked with a red asterisk are mandatory. Do not forget to specify a valid phone number – it will receive an SMS with a password.

Step 4 . In a couple of seconds, a letter with a username and a link to your personal account will come to the mail. Please note that the password for entering your personal office is sent in an SMS message.

Activation of the account can take from 10 to 30 minutes. Just wait.

We move to the personal area, enter the login and password, and start creating a remote server.

Create a cloud server

Step 1 . We open the personal cabinet (the link you have at the post office).

Step 2. In the control panel on the Managment tab (on the sidebar), select Create New Cloud Server .

Step 3 . We choose Cloud Server Smart, which is already familiar to us, at a cost of 1 euro per month. Below note this tariff and click Continue .

Step 4 . Now proceed to the configuration of the cloud server.

Select Select Template . An impressive list of various operating system distributions will open. For Windows, forget, because its installation will cost more in connection with the requirements of the OS (2 GB of RAM minimum).

Boldly scroll down the list to the bottom and select Ubuntu Virtual Desktop .

Step 5. It remains to set the administrator password for the standard root user name .

Be sure to remember the specified password. Without it, you do not connect to the server.

Do not forget to specify the name of your server – any, any, but in Latin letters. This will be the name of your remote computer.

If all is correct, feel free to click Create Cloud Server .

The previously paid amount of 1 euro will be written off automatically and within 3 – 5 minutes the server will be launched.

You recognize this using the following server status:

In the Managment section, you will see a server with the previously specified name and the On status. Write down the IP address , it will be useful to us at the next stage of the configuration.

Cloud server is configured!

Connecting to Remote Desktop

Remember at the beginning of the instructions I said that thanks to the cloud server you will have access to the remote computer? Well, it’s time to do it.

So, despite the fact that we have a distribution of Ubuntu Virtual Desktop, the utility from Microsoft is quite suitable for us.

This is the Microsoft Remote Desktop 8.0 RDP client, with which you can connect to a cloud computer. The utility is distributed free of charge and is available for macOS, iOS and Android. In short, a universal and affordable solution.

Step 1. In the Mac App Store, download Microsoft Remote Desktop 8.0 .

Step 2. Run the utility and perform simple settings.

First, select New and fill in the appropriate fields, as shown in the screenshot below.

Connection Name: put any name here. Just call your connection.

PC Name: The IP address that is specified in the server settings right after it is created (step 4. of this manual).

User Name: In SSH, this is vdesktop . Specify it. The password is the one specified in the administrator password.

Start the connection and after a couple of seconds you see the desktop of the operating system Ubuntu Virtual Desktop.

Running your SOCKS5

Step 1. In the lower left corner we find the “analogue of the Start menu”. We pass in System Tools -> LXTerminal , we start the Terminal.

Step 2. Now, successively enter the following four commands (enter one – press Enter, wait for execution, then enter a second, etc.):

sudo apt-get update

sudo apt-get upgrade (asks for confirmation Y / n – type Y and press Enter)

sudo apt-get install build-essential libwrap0-dev libpam0g-dev libkrb5-dev libsasl2-dev (asks for confirmation Y / n – type Y and press Enter)

sudo apt-get install dante-server

During the installation of the commands, the screen will display something like:

After the first command, it will ask for the administrator password. When you type it on the screen, no symbols are displayed – do not worry, this is normal. Just enter the password and press Enter.

We have installed all the necessary packages for Dante. Now proceed to edit the configuration file.

Step 3 . In the Terminal, enter the following command:

sudo nano /etc/danted.conf

Enter the administrator password again and press Enter. The configuration file editor opens.

To simplify the configuration, do the following: delete everything that is written in the file and paste the following code snippet:

# Config SOCKS5

logoutput: stderr
internal: eth0 port = 7007 
external: eth0  Пояснение ниже
socksmethod: username
user.privileged: root
user.unprivileged: nobody

client pass {
       from: port 1-65535 to:
       log: error
       socksmethod: username

socks pass {
       from: to:
       command: bind connect udpassociate
       log: error
       socksmethod: username

socks pass {
       from: to:
       command: bindreply udpreply
       log: error

In the above code there is an internal line : eth0 port = 7007 , you can specify the port number for almost any one you like and remember which (within the range from 1 to 65535). The main thing – remember the port.

You can check the protocol type (eth0 or not) using the ip link show command or ifconfig . If you show not eth0 – replace the value in the string.

Press CTRL + O (CTRL – not CMD) to save the changes and press Enter.

To return to the terminal, press the CTRL + the X .

Step 4 . Create a user for SOCKS5 access. You only need one command:

sudo useradd --shell /usr/sbin/nologin -m ИМЯ-ПОЛЬЗОВАТЕЛЯ-ЛАТИНИЦЕЙ && sudo passwd ИМЯ-ПОЛЬЗОВАТЕЛЯ-ЛАТИНИЦЕЙ 

Attentively: before the shell two dashes without a space -.

Entered, pressed Enter, entered the administrator’s password and on the request Enter new UNIX password two times they entered the same password to enter. Remember the password .

Step 5. Start the server with the command

sudo service danted start

All is ready. Now you have your own SOCKS5 proxy, which will always work. It remains to add it to the application.

You can check the status of the proxy and Dante’s working capacity using the command:

sudo service danted status

If you see something like:

then you have set everything right.

Possible errors and how to fix them

If not, use the sudo systemctl restart danted command to find out exactly where the /etc/danted.conf configuration errors occurred. As a rule, it arises because of incompatible some commands in versions of Dante.

You can correct the error by updating the Dante version with the command sudo dpkg -i dante-server_1.4.1-1_amd64.deb and re-making the changes to the danted.conf file.

Where to enter the proxy in Telegram

Now about the painful – about Telegram. We did our proxy creation solely for the purpose of circumventing the messenger lock. It only remains to enter the data into the connection settings.

Step 1 . Open the Telegram. Go to Settings -> Connection Type .

Step 2. Install TCP with custom socks5-proxy and write values:

Hostname: this is the IP address of your cloud service

Port: the value you specified in the config settings of /etc/danted.conf

Username: The specified user name (entered step 4 of the instruction in the terminal)

Password: the specified password for the created user (step 4 of this instruction)

Press Save and enjoy access to Telegram without restrictions.

What is still good about its proxy

Dozens of proxies are walking around the net, there are all kinds of bots. But they are used by thousands of people and, for example, to call using Telegram with such connection is very problematic.

Own SOCKS5 simplifies life not only when using instant messengers, but also when working with other applications that require access to the network.

Having your own proxy is a really nice bonus for an advanced Internet user. And the price of such pleasure is only 75 rubles a month. Clearly a profitable investment.

Finally, SOCKS5 can be configured for one application, without affecting the operation of others, as in the case of VPN (access to Smart VPN is not available on all devices). It’s convenient and simple. Use your health;)

Back to top button