Skip to content

WireGuard - creating a private VPN

First, prepare a server with the Wireguard package installed. This can be done in three different ways. You can choose the one that suits you best.

Buy the required plan with WG pre-installed

To do this we need to buy the necessary server in the desired location. In our case it will be the basic tariff DEs-1 in Germany:

1.png

Go to the "Pre-installed software" section:

2.png

Specify the Wireguard package we need:

3.png

Set the desired rental period by hour or month and click pay:

4.png
Information

Great. Now your server is ready to create a config for the VPN connection. We will tell you how to create it in "Creating a connection config ".

Installing Wireguard on an already installed Ubuntu OS

Go to the services section and click the arrow icon to the right of the already purchased server:

5.png

Let's click the three dots in the upper right corner of the service and go to the control panel:

6.png

Open the right menu of the required server and go to run the software installation script:

7.png

Select the Wireguard installation script and run it:

8.png
Information

Great. Now your server is ready to create a config for the VPN connection. We'll cover its creation in step 2 ("Creating the connection config").

Reinstalling the ready server on Ubuntu OS with Wirdguard pre-installed

In case you have an off-the-shelf server, you can also reinstall its operating system with Wireguard pre-installed. To do this, go to the control panel following the instructions of the previous point and select reinstall server OS.

9.png

Select Ubuntu OS and click the select button in the "Applications and Scripts " panel:

10.png

Select the Wireguard installation script and confirm with the "Select Script " button:

11.png

Click the "Reinstall " button:

12.png

Connect and create a configuration file

Connect to the server via WinSCP and login and password from the customer area, or a letter from your mail (in case of OS reinstallation).

Launch the server console through the previously installed PuTTY and authorize in it:

15.png

Write the command in the console:

-CODE- /root/wg_n.sh -CODE-

Get the ready config for connection via Wireguard for phone program and save the QR code, or scan it immediately with smartphone camera:

16.png

Getting the config for Wireguard on the PC

To do this, go back to the WinSCP program and update the contents of the folder

Click on the client.conf file and the F5 button or PCM + the "Get " button.

Specify location to save the Wireguard config file on our PC

Once it is downloaded you can open it and view the contents, it will look like this and you can send this text to friends or keep it for personal use

Download, install and run Wireguard for your operating system and click on the "Add Tunnel " arrow button to create an empty tunnel.

Paste the text of our config that we downloaded earlier. Save the tunnel

Click "Connect ", from this moment your IP address will change to the IP address of your server. You will also be able to open sites that are available to citizens of the country where your server is located. **Have fun!