News

29 February 2024

What Is a VPN and Why You Need It

What Is a VPN and Why You Need One

Recap: Key Terms

Before we begin, let's establish the basic definitions so as not to confuse concepts like proxy and VPN.

VPN (Virtual Private Network) — is a technology that allows you to create secure tunnels over a public network, the internet. The concept itself is quite broad, as it encompasses various implementations. It can be a VPN network, a VPN application, or a proxy server.

What Is the Difference Between a VPN Network and an Application

As for the proxy server — that's clear. We covered it in more detail in a separate article «What Is a Proxy Server and How to Set It Up». In this context, a VPN refers to a technology that allows you to establish a connection between server A and B through an intermediary machine C. But what is the difference between a VPN network and a VPN application? In fact, you have already encountered these concepts. 

A VPN network — is a network within which you can organize a secure connection between a user's device and a remote server. The network is configured at the OS level or on networking equipment, which allows encryption of all traffic.

In turn, a VPN application — is software that allows you to use a VPN network. As a rule, it provides the user with a simpler way to connect and configure connection parameters with a remote server. In other words, VPN networks and applications are related to each other. But in IT conversations, you may hear not only these definitions.

What Is a Virtual Network

Another component of a VPN is a virtual network. This term refers to a network created by software or hardware-software means that operates on top of physical infrastructure. It can be deployed on a publicly accessible network, allowing remote devices to be combined into a single local pool. Do not confuse a virtual network with a VPN network. A virtual network can be a component of a VPN, but not the other way around. 

What Is a Private Network

Another component of a VPN is a private network. This term refers to a network that can only be used by specific individuals or organizations. Unlike public VPNs, a private network is created for the specific needs of companies. For example, using it, an organization can set up remote access to office applications and services for its employees.

 

How a VPN Works

Great — we've sorted out the basic definitions. Now let's break down a VPN and see what lies at its core. Several "blocks" can be identified here: authentication, encryption, proxying, and tunneling. Let's examine each process in more detail.

  • Authentication. At the beginning of establishing a connection between the client and the server, both parties' identities are verified. This ensures that they have access to the VPN network and are legitimate participants.
  • Encryption. When data is transmitted, the VPN encrypts it, thereby protecting the transmission tunnel. Using special algorithms, information is converted into an unreadable form for third parties.
  • Proxying. Used for interaction between the client and the server during data transmission. Essentially, this is one of the traffic routing options, Proxy VPN.
  • Tunneling. Allows connections to be established over a shared network. All traffic is encapsulated within a tunneling protocol and transmitted through the network.
If you take any VPN apart, inside there will be "logical blocks" responsible for these four processes. However, their implementation depends on the choice of connection type and the protocol used to transmit data.  

Types of VPN Connections

Client-to-Site VPN and Remote Access VPN

This type of VPN allows individual users and devices to securely connect to a company's private network over a public network. Remote access is achieved by establishing a connection between the user and a VPN server located within the organization's network. Special protocols are used for this, including IPSec, OpenVPN, SSL/TLS, and others.

Node-to-Node, or Site-to-Site VPN

This is a type of VPN connection used to link two networks together. In this case, an encrypted tunnel is used between the local networks where hosts A and B are located, respectively. Site-to-Site VPN allows them to operate as if they were connected to the same switch. 

Setting up this type of connection is straightforward. It is sufficient to install a VPN gateway at the site boundary — for example, a firewall. It will handle key exchange, data encryption and decryption, as well as negotiation of VPN tunnel parameters.

Point-to-Multipoint, or Point-to-Multipoint VPN (P2MP)

This type of connection allows a single VPN gateway to be linked to multiple remote gateways. At the same time, all of the latter can exchange data with each other, not just with the initial device. This technology can be useful when creating a virtual network between various branches of an organization.

VPN Protocols

There are many types of VPN connections, but what protocols can be used for encrypting and transmitting data at the network level? Let's briefly review popular solutions and those most optimal in terms of speed and security.

  • OpenVPN — one of the most popular solutions, combining high speed and security.
  • L2TP/IPSec — a combined solution that builds tunnels using the L2TP protocol and uses the IPSec protocol for data encryption.
  • IKEv2 — a protocol with high speed and reliability, achieved through the use of UDP and support for multiple 256-bit encryption algorithms.
  • PPTP — one of the earliest VPN protocols, which has lost its relevance due to weak security.
  • WireGuard — a modern protocol combining high speed, security, and a small codebase. A downside is the lack of dynamic IP address assignment.
  • LightWay Protocol — a solid, secure protocol providing high-speed traffic transmission with a small codebase. The source code is fully open, so you know exactly what happens to your data on the VPN client side.

How Chains Work

The concept of a "VPN chain," or DoubleVPN, is used when traffic is routed through multiple servers linked together. This adds an extra layer of security and anonymity. The principle of operation is simple. 

  1. The user's device initiates a connection with the first VPN server in the chain, which becomes the entry point.
  2. The first server encrypts the data and sends it with a key to the second server via an encrypted tunnel. The next node decrypts and re-encrypts the data with its own key.
  3. The previous step is repeated for all servers in the chain. Essentially, they perform relay functions that prevent tracing back to the original source. 
  4. The last server completes the VPN chain and forwards the information to the target resource. Then the process repeats, but in the reverse direction.

This technology leads to increased network latency due to additional encryption and decryption cycles, but it enhances the security of the transmitted data. However, these are not the only features of using a VPN.

Why Use a VPN

There are several reasons why people use VPNs. Let's look at them in more detail. 

  • Secure data transmission. If you choose a good protocol, you can achieve a high level of data encryption within a VPN network. This significantly reduces the likelihood of information interception, for example, when connecting to public Wi-Fi.
  • Anonymity. A VPN allows you to hide your real location data (geolocation) and increase user privacy online.

But that's not all. VPNs are actively used by companies to organize access to closed corporate networks. Let's consider this point separately.

VPNs in Corporate Networks

In addition to regular users, employees of various organizations work with VPNs. After all, this technology is especially relevant for the corporate sector. But why is that? There are several reasons. 

  • Security and anonymity. All the same things we discussed above, but in the corporate segment. Employees can send documents and other confidential information relatively safely while outside the office.
  • High availability. Companies can share their resources across multiple branches. With a VPN, they will be accessible to employees from different offices.
  • Centralized management. Companies can centrally manage security within the corporate network. Administrators use specialized software to set access rights for employees, monitor network activity, and apply threat protection policies. For example, blocking illegitimate users. 
  • Economic efficiency. It is more cost-effective for organizations to use virtual connections than to lay physical channels to unite their branches into a single network. 

If you are planning to create a secure network for working with corporate systems, it is especially important to approach the choice of provider responsibly. At Selectel, we offer a GOST VPN service that can be used to organize a secure connection between your local infrastructure and infrastructure hosted in our data centers. The service will allow you to comply with Russian legislation requirements, securely exchange information, and control access to resources for your employees.