WireGuard VPN is a fast and secure virtual private network (VPN) protocol. It uses modern cryptographic protocols and algorithms to secure the connection and provides fast and efficient data transfer. WireGuard VPN supports multiple platforms including Linux, Android, iOS, macOS and Windows. It can be integrated into existing network infrastructure.

The data used for connection

The service is managed in the WireGuard control panel with a web interface. The link is located in Invapi:

os_1.png

Here are the data for authorization:

Link: in the “webpanel” tag;
Login: in the “user_name” tag;
Password: in the “password” tag.

The server usage

To work with VPN, you need to create a user under which the connection will be performed. For more information about connection, read the “Connecting to the WireGuard VPN Server” section.
Creating a new user:

  • Open the control panel of the WireGuard VPN server using the link from the "Connection data" section;
  • Choose "Wireguard Clients" in the left menu;
  • Click the "New Client" button in the upper right corner:

new_client.png

  • Fill in the required "Name" field. Do not change the rest of the fields unless necessary:
    • IP Allocation - is automatically filled;
    • Allowed IPs -  is automatically filled. 0.0.0.0/0 means that access to all network resources will go through the VPN while connecting to a VPN server;
    • In the "Preshared Key" item, you can put down the "-" sign. This will disable additional encryption, which is required for resistance to hacking, but at the moment of technological development is not in demand:

iivanov_1.png

  • Click the "Submit" button;
  • Click the "Apply config" button in the upper right corner (next to the "New Client" button).

You must complete any changes to the user profile using the "Apply config" button. Without pressing this button, the VPN connection will not work.

The client has been created and the server is waiting for a connection.

Connection to the VPN server

Mac/Windows

  • Install the WireGuard client  on your device;
  • Open the control panel of the WireGuard VPN server using the link from the "Connection data" section;
  • Choose "Wireguard Clients" in the left menu;
  • Find the right client;
  • Download the configuration file for this client by clicking on the “Download” button:

edit_1.png

  • Launch the WireGuard client on your device;
  • Click on the "Import tunnels from files" button and choose the downloaded configuration file. A new connection will appear with the username specified earlier, the connection status will be “Disconnected”;
  • Click the "Connect" button, the status will be changed to "Connected".

wireguard_1.png

wireguard_2.png

In some cases, you may need to restart the local device for the correct operation of the service.

IOS и Android

  • Install the WireGuard app from Google Play Market for Android or AppStore for IOS;
  • Open the control panel of the WireGuard VPN server using the link from the "Connection data" section;
  • Choose "Wireguard Clients" in the left menu. Find the right client. Open the QR code of this client by clicking on the “QR Code” button:

edit_1.png

  • Open the WireGuard app on your phone;
  • Click the "Add tunnel" button. Choose the option "Create from QR code";
  • Scan the QR code. Name the connection;
  • Allow the application to change the VPN settings by following the phone's prompts;
  • To connect to the VPN server, switch to the “on” state.

Linux

Download the configuration file and run the command:

sudo nmcli connection import type wineguard file "FILE_NAME.conf"

Using a VPN Server as HTTP Proxy

A server with WireGuard installed can be used as an HTTP proxy server for all popular browsers. You can use your browser's default settings to set up an HTTP proxy connection, or you can take advantage of additional controls of HTTP proxy in browsers, such as SwitchyOmega, ProxMate, Proxy-Switcher, and others.

In this manual, we will analyze the installation and use of SwitchyOmega.

Follow the steps below to install and use SwitchyOmega:
1. Install the SwitchyOmega extension for the Google Chrome or Mozilla Firefox browser;

2. Create a proxy server profile in SwitchyOmega:

  • Open the browser and click on the SwitchyOmega icon in the upper right corner of the browser window;
  • Choose "New Profile" in the menu;
  • Enter the name of the profile in the "Profile name" field;
  • Choose the type of proxy server in the menu "Protocol" - HTTP;
  • Enter the internal address of the VPN server 10.252.1.1 and its port 3128 in the appropriate fields;

To use HTTP proxy, you first need to connect to a VPN server.

  • Press the "Save" button.

3. Enable the proxy server profile in SwitchyOmega.

  • Click on the SwitchyOmega icon in the upper right corner of the browser window;
  • Choose the previously created proxy server profile in the menu;
  • The proxy server profile should become active and its name should appear at the top of the list in the SwitchyOmega menu.

An example of settings in Google Chrome:

omega_1_1.png

proxy.png

VPN Performance Check

To check the connection to the server, you can enter "What is my IP" in your browser's search bar or visit whatismyipaddress.com. If a successful connection has been made, the IP address and region will be displayed:

my_ip.png

Tags:
Created by Hostkey Admin on 2023/04/24 10:30