How to create users for your L2TP VPSBG VPN server
Deploy your own, self-hosted VPN server today and start protecting your privacy! Verifiable zero log policy, dedicated IP address and unlimited device connections!
In this tutorial, you are going to learn how to create new users for a L2TP VPSBG VPN server. While the steps are not complicated, the protocol does not have a graphical interface, meaning that you will need to log in through SSH if you wish to manage your server and its user profiles. Because of this, you will need to download a SSH client to execute the required commands if you do not have one already at your disposal.
Downloading the SSH client
If you are using a Linux/MacOS platform, you can go ahead and skip this part, as your OS already has an SSH client.
As we already mentioned, you need to download a SSH client before you can begin to manage your server (considering that you do not have one already installed on your machine). The one that we suggest you use is Putty, which you can download for free.
Once you have opened up the page, simply locate your operating system and download the required installation file, which corresponds to it. In our case it was a 64-bit Windows OS, but the SSH client looks the same and performs the same actions regardless of your operating system:
Next, download the installation file and install the SSH client by using the default settings. Only change anything if you are experienced and know exactly what each setting option does!
Configuring the SSH connection
For Windows users
Once you have completed the installation, simply open the software. This will bring up the Putty configuration window. All of the information should have been sent to you by your provider. The fields that are required to be completed are the following (also marked in red in the image below):
- ‘Host Name (or IP Address)’ - to complete this field type in ‘root@’ followed by your server’s IP address
- ‘Port’ - set this to to the port that your provider supplied you with
- ‘Connection Type’ - make sure you have selected ‘SSH’
Once you have finished filling in the fields, click on ‘Open’, which will open up the terminal:
You will then be asked to fill in your server’s login credentials. Simply copy and paste them inside of the terminal.
IMPORTANT: The pasting process inside of the terminal happens with the right click of your mouse rather than through ‘Ctrl + V’ or ‘Command + V’. Additionally, the password field will never display any text that is being inputted, meaning that you should not worry if you notice that nothing appears when you type in your password (which is why we recommend copying and pasting it in). Finally, it is important to remember that submitting commands to the terminal happens with the press of the ‘Enter’ key.
For Linux/MacOS users
Open your terminal and type this command:
ssh root@YOUR_SERVER_IP -p *PORT
*change this to the port of your VPN server
Then enter your root password.
Working with the terminal itself is not complicated and the steps that you need to follow in order to add a new user profile are really simple.
Creating a new user
The first command that you will be inputting will load the user management script that is located on your L2TP VPN server. To do this simply copy and paste the directory of the script like it is marked in red below:
Once you have pasted (or manually typed) the directory in the terminal hit ‘Enter’. A message will now appear asking you whether you want to create or delete an user:
Next, type in ‘create’ as illustrated in this image and again, press ‘Enter’:
The terminal will now prompt you to input a username for your new profile. Type in the name that you will like to give to the new profile:
Next, you will also be asked to create a password for the profile. We recommend using a password generator that can combine letters, numbers and symbols in order to ensure that the profile will be securely protected:
Once you have selected a password, hit ‘Enter’ and the following message will appear:
That’s it! Your user will have been successfully created. You can also check out our tutorial on how to use the profile to establish a connection between your desktop or mobile and a L2TP VPN server.
IMPORTANT: If you are connected to the VPN server from your machine while trying to create a new user profile, your connection will most likely break due to the fact that the VPN service will need to be restarted in order to activate your newly-created user profile.