Methods of payment Abuse

Instructions for adding a new user to OpenVPN

22.07.2024, 02:05

OpenVPN is a freely distributed software product that is used to create a secure and encrypted connection between two computers over the Internet. It is open source and supports various platforms including Windows, Mac OS X, Linux, Android and iOS.

What is OpenVPN

OpenVPN is a popular open source software that provides the ability to create encrypted virtual private networks (VPNs) over the internet. OpenVPN provides a safe and secure connection between computers or devices over unsecured networks such as the internet.

With OpenVPN, users can create encrypted tunnels to transmit data over public networks, ensuring the privacy and security of the information being transmitted. OpenVPN uses various encryption methods such as SSL/TLS to protect data from unauthorized access.

OpenVPN is widely used both by corporate users to provide secure remote access to corporate networks and by everyday users to bypass censorship, protect privacy, and ensure secure connections when using open Wi-Fi hotspots. Due to its flexibility, reliability and ability to run on various operating systems, OpenVPN is one of the most popular and widespread solutions for creating virtual private networks over the Internet.

Adding a new user to OpenVPN using the "PQ | OpenVPN" script

The script is designed to install the basic functionality of OpenVPN that does not contain a web interface. The web interface is quite convenient, but could potentially be a source of vulnerabilities or a sign that the server is being used as a VPN server.

The server is managed from the command line.

After installation. The openvpn.sh executable file remains in the root user's root folder. To add a new user, you need to run it.

At this step, the option number must be specified. In this case it is the first menu item. We specify the number 1

On the next step you should specify the name of the user to be created. In this example it is the user client02

The next step is to specify whether it is necessary to set an additional password for the user or to create a passwordless configuration file.

This is the final step. The script will create a new configuration file /root/client02.ovpn.

The configuration file should be downloaded to your device and imported into the OpenVPN application.

Adding a new user to OpenVPN using the "PQ | OpenVPN + UI" script

The script is used if you need a convenient web interface where you can download a configuration file or create a new user. After installation you will receive an email with the web interface address and access attributes.

When running the script you can immediately set a password for the web-interface. If the field is left empty - the password will be generated automatically and sent to your e-mail.

After the script works you should follow the link from the e-mail and enter the admin username and password.

After the script runs, the user admin is created by default. If you need to add a new user, click + CREATE USER button.

In the dialog box, enter the name of the new user in the "Username" field. Think of and enter a password. If you want the new user to be able to create users yourself, check the "Make Admin" box. After filling in all the fields, click the "SAVE" button

You can download the configuration file of the new user by clicking on the floppy disk icon in the row with the user.

The configuration file can be imported into your OpenVPN client.