Get a VPS server with a 15% discount
Sale ends in
00Days
:
00Hours
:
00Minutes
:
00Seconds

WireGuard VPN Easy: setup with Docker and WG-Easy

WireGuard is a modern solution for creating secure virtual private networks (VPN). It is an easy-to-use, fast and reliable tool that provides a high level of security for data transmission. WireGuard uses advanced cryptographic protocols and algorithms to protect your connection, making it one of the most secure VPN options available today.

This guide uses Ubuntu 20.04 as the operating system.

Recommended system requirements.

CPU: 1 vCore
RAM: 512 MB
Storage: 1 GB
Network speed: 100Mbps+

This information is for reference only and does not require special attention, as any available plan on our virtual servers is suitable for using WireGuard VPN.

Connecting to the server

Connect to your server. If necessary, you can use our detailed guide on how to perform this operation.

Installing WireGuard

Update the system package and repository lists.

Next, check whether Curl is installed or install it.

Then use the command below to install Docker. The download and installation will run automatically.

Wait for about 1 minute (the time depends on the network speed and the performance of the server you are using). The following message indicates that Docker has been installed successfully.

Docker installed successfully message

After the installation is complete, use the template below and modify it by setting the required values.

"🚀YOUR_SERVER_IP" is the address of the server where WireGuard VPN is being installed. "🚀YOUR_ADMIN_PASSWORD" is the password that will be used later to access the web management panel.

You must replace the entire value inside the quotes without leaving extra spaces or Emoji.

↙ Click a line to copy it

Make sure your password contains only digits and/or letters. Using other characters may cause the script to fail.

Example of an invalid password — u>N#uG_3Z=5pS'cn

Example of a valid password — QJQcc7cAdTY85sp7

The screenshot below shows a correct command execution request according to the values for our server.

Correct command execution request

Wait for the installation to finish and make sure that no errors occur during the process. Almost done! Next, open your browser and go to "IP:51821", where "IP" is your server address. The following page will open, where you need to enter the password that you specified when running the WireGuard installation command.

WireGuard login page

After logging in, use the button to create a new VPN user.

Button for creating a new VPN user

Enter any suitable name and click "Create".

Creating a VPN user

Great! The first user has been created. There are several ways we can connect to our VPN network.

Usage

Download the .conf file

To download the configuration file, use the corresponding button next to the created user.

Configuration file download button

The downloaded file can be used to configure a VPN connection on any supported device, whether it is a computer or a router. This is all you need to connect.

On a computer, you can add this file in the WireGuard VPN application using the corresponding button.

Adding the file in the WireGuard VPN application

If everything is done correctly, after adding and activating the tunnel you will see active incoming and outgoing traffic.

Active incoming and outgoing traffic

Scan the QR code

This method is especially convenient for devices with a camera (🧐 in case you decide to use your computer's webcam).

To use this method, simply click the button to display the QR code.

Button to display the QR code

Then scan it with your device.

Scanning the QR code with a device

The tunnel has been added and is ready to use!

Added WireGuard tunnel

Monitoring

For each VPN user, you can view activity information and real-time traffic usage in the management panel.

VPN user activity and traffic monitoring