🥇VPN for mobile devices at the network level | ProHoster (2024)

In Runet, there is still surprisingly little material about such an old and simple, but convenient, safe and especially relevant technology in connection with the development of the Internet of Things, such as mobile VPN (virtual private network). In this article, I will describe how and why you can configure access to your private network to any device with a SIM card without the need to configure specialized software on it.
🥇VPN for mobile devices at the network level | ProHoster (1)

Tasks and restrictions

To begin with, I will answer the question “why?”. VPN as a technology is used to solve a variety of network problems, united by a common feature - isolated data transfer between two devices through a large number of intermediate nodes. On the basis of this, more complex solutions are already being built and those very different tasks are being solved. In the usual, familiar to all case, a fixed-line operator's network is used to build a VPN (for those who wish, there is wonderful stuff) or many different network protocols (GRE, IPSec, L2TP and others - the same author about it) and software products that work with them (Cisco AnyConnect, OpenVPN, TOR - well, you yourself know), but their use on a specific end device immediately puts forward a number of requirements for it, the failure of which leads to certain restrictions.

The first serious limitation is that the device must be able to work with at least one of these protocols at the hardware and software levels. Most often this is determined by software that is easy to find for a laptop or smartphone, but there are cases when the task is facing a device that is too simple from a hardware point of view, or its software has limitations: the water meter wants to use a VPN to transmit its unfortunate byte of readings once a month no less than you want to use the VPN to edit your LinkedIn profile.

Another important limitation is the need for customization. It works both for "stupid" devices from the first point, and for classic smartphones and computers, which are not aware of the previous limitation. And if with the first everything is relatively simple and rests on the amount of time spent on setting up, then with the second there are options. Organizations often use VPNs for security purposes, to prevent a business endpoint from accessing a public network without proper corporate protection or from transmitting service data over public channels. End users may, for their own reasons, disable or forget to enable VPN, as a result of which many company security systems may be “overboard”.

Both of these restrictions are easily removed if VPN access is provided at the network level. In the case of mobile communications, this can be implemented using a "mobile VPN". A device of any complexity capable of transmitting data will transmit it to the correct network. It doesn't matter what settings are made on the device, with a properly configured network, it will in any case transmit them to the right place and nowhere else.

And as a nice bonus, the device will receive an address from the internal network, configured remotely, and it will be possible to access it only from within this network (or physically). For a certain class of devices, this is very important.

How it works

PS Core

It would seem that VPN is a classic service of all telecom operators for the B2B segment, and why, in this case, focus on this? It's all about how the data network is arranged for devices connected via GPRS, HSPA, LTE or other mobile communication technology. There are no vlans familiar to all network administrators, there are no switches, there are not even routers in their usual meaning. But there is a radio access network (RAN) and a packet core (PS Core).

🥇VPN for mobile devices at the network level | ProHoster (2)
A simplified diagram of a mobile operator's packet network. It is slightly different for LTE, but the general meaning remains the same.

In general, each device with a SIM card registered in the packet network (passed through the GPRS attach procedure or similar), before starting to transfer data somewhere, must initiate the creation of a data transfer session (PDP context) on the packet network core router, GGSN . The details and purpose of these processes are very nicely described here in this article. What is important for us: when initiating a session in a request to GGSN, among others, there are parameters that many have seen in their phones or even dealt with them when setting up, for example, usb modems. These are three fields: APN, login and password. APN (access point) is a very important entity in the logic of the GGSN: depending on which APN the session is initiated from, the GGSN acts differently. As a result of successful processing of the user's request, the GGSN must activate a data transfer session and inform the device of its parameters, in particular, the IP address issued to the device and DNS addresses. There are a number of very important features here:

  • In a session initiation request, the device never asks what IP address it would like to receive;
  • In addition to the “APN”, “login” and “password” fields specified in the device settings, the request to the GGSN also transmits the phone number (MSISDN) of the subscriber (hereinafter, the “subscriber” is the end user, one device with a SIM card, and "client" - the organization-customer of the service, which includes subscribers);
  • When a session is activated, the GGSN creates a new IP address entry in its routing table. All subscribers on the GGSN are identified by entries in the routing table with the /32 prefix, i.e. 1 subscriber - 1 entry in the table. GGSN is a very capable router;
  • The operator's network can change the APN field in the session initiation request at different stages (both on the SGSN and on the GGSN) for various reasons. This allows, in some cases, to reduce, and in some cases, completely eliminate network settings on devices with a SIM card.

For the first three points, the question immediately arises: what kind of IP address is issued to the subscriber?
This is determined by the settings of the APN from which the request to activate the session came. About 99% of data users in mobile networks use regular Internet access. These are known to all access points internet.mts.ru, internet.beeline.ru and so on. In the case of Internet access, GGSN issues addresses according to the classic DHCP principle from the gray subnets specified in the settings. When entering the public network, they are closed by the classic NAT (or rather, by its version, which is PAT).

But GGSN is capable of more. To select an IP address, it can make an AAA request to the authorization server (Radius, for example). This logic is configured for individual APNs depending on their purpose. The simplest case is the service of providing a permanent public IP address. Such addresses, as a rule, are assigned to subscribers in the billing (BSS) of the operator, and, depending on the IT architecture, they fall into one or another database, to which the GGSN requests it. Due to the fact that he knows the MSISDN (phone number) of the subscriber, which will be contained in the request, such a database will be quite simple and can only contain a bunch of numbers and addresses. Additionally, if the client plans to use one SIM card to connect several devices (if the SIM card is located in the WiFi router of the remote office, for example), this table may also contain the so-called "framed route" - the prefix of the network located " behind" SIM card, which will be announced to all devices on the network using dynamic routing protocols.

Not GGSN alone

In addition to issuing addresses, it is also required to deliver subscriber traffic to client networks, each to its own. Here everything works much more traditionally. On GGSN, traffic specialized for working with VPN APN is routed to a separate router of the operator's network (it can be called differently, sometimes - VPN router), which in turn performs the function of a classic PE in the L3VPN scheme. It adds the necessary labels, headers, and that's it, and sends all this traffic through the transport network routers to pre-configured junctions or tunnels to the client's network. This part is already much more traditional and has been described many times in other places, so I will not focus on it in this material.

Given all these details, there can be several ways to organize a mobile VPN, and they will differ from each other by a combination of the following features:

  • IP addresses, as already described, can be issued dynamically (each time a different address from a given subnet) and statically (each time the same address for a specific subscriber), which is determined by both APN settings and / or Radius server settings ;
  • IP addresses can be issued by the Radius server under the control of the operator or under the control of the client;
  • Devices connected to a mobile VPN can interact either only with each other, or have access to the client's regular L3VPN network through a direct interface (VPN port) with the operator or through tunneling over the Internet;
  • In some cases, the use of a login and password for successful session activation may be mandatory, and sometimes it is not even required to fill in the “APN” field.

There are several dozen such combinations with different types of tunneling, traffic balancing between access channels to the "main" VPN client and the principle of issuing addresses. For most cases, the general scheme looks like this:
🥇VPN for mobile devices at the network level | ProHoster (3)

As a result, after a fairly quick process of registering on the network and obtaining an IP address, the device gains access to the client's network, and the client's network gains access to the device. At the same time, the subscriber is isolated from all other subscribers of the operator that are not related to a particular client, he does not need any additional settings, and all traffic is sent to the client's network without alternative, where it is processed in accordance with the client's internal policies.

Source: habr.com

🥇VPN for mobile devices at the network level | ProHoster (2024)

FAQs

Is there a 100% free VPN for Android? ›

Yes – ProtonVPN is a completely free Android VPN that you can use for as long as you like. It offers unlimited data and servers in 3 locations.

How can VPN be implemented within a network? ›

Additionally, a VPN service can be implemented by combining a high-performance multi-core processor platform and a field programmable gate array (FPGA) platform. This allows for the setup of a high-performance IPSec tunnel and processing of data packets, improving the performance of the VPN system.

Is there a free VPN that actually works? ›

Proton VPN's free tier is secure and doesn't put limits on speed, data or usage time like most other free VPNs do. Additionally, Proton VPN doesn't track you or serve you ads like other free VPNs do. We were even able to access Netflix using Proton VPN's free servers.

What is a network VPN? ›

A VPN, which stands for virtual private network, establishes a digital connection between your computer and a remote server owned by a VPN provider, creating a point-to-point tunnel that encrypts your personal data, masks your IP address, and lets you sidestep website blocks and firewalls on the internet.

What is the best free VPN for Android without payment? ›

The best completely free VPN for Android is Proton VPN. The free VPN delivered high levels of internet privacy and security in our tests, as well as excellent speeds connecting to its free servers. Unlike other safe free VPNs, Proton VPN allows unlimited bandwidth, and there is no requirement to submit payment details.

How can I add VPN to my Android for free? ›

  1. Open your device's Settings app.
  2. Tap Network & internet. VPN. If you can't find it, search for "VPN." If you still can't find it, get help from your device manufacturer.
  3. Tap the VPN you want.
  4. Enter your username and password.
  5. Tap Connect. If you use a VPN app, the app opens.

Can a network block you from using VPN? ›

It is possible for a firewall to block certain ports, specifically ones that VPNs use. If your data travels through one of the blocked ports, the firewall will not allow it to pass through, preventing you from communicating using your VPN.

Can VPN be tracked? ›

Can you be tracked with a VPN? You can't be tracked using a VPN because it encrypts your data. As a result, your ISP or bad actors can't get any information out of your traffic. They only see the VPN server's IP address, while your real IP and online activities stay hidden.

How does VPN work in mobile? ›

VPNs allow devices that aren't physically on a network to securely access the network. Android includes a built-in (PPTP, L2TP/IPSec, and IPSec) VPN client. Devices running Android 4.0 and later also support VPN apps.

Can a free VPN be hacked? ›

If you use a VPN with one of the outdated protocols, you're putting your sensitive information at risk. Thankfully, they're not used by any premium VPN providers, but some free VPNs still utilize the likes of PPTP or L2TP, which partly contributes to the large number of data leaks from free VPNs.

Are free VPNs useless? ›

If you've ever tried to use a free VPN you've probably noticed it didn't work very well (more than two-thirds of free VPN users report performance issues). Free VPNs are highly ineffective at bypassing content restrictions, but they also often expose users to privacy and security risks they're meant to protect against.

What is the most trusted free VPN app? ›

A Closer Look at the Best Free VPNs of 2024
  • NordVPN - Best Full-Featured VPN with Free Offers. Editors Rating: 9.7 /10. View Plans. ...
  • Surfshark - Best VPN Free Trial. Editors Rating: 9.5 /10. ...
  • Hotspot Shield - Fastest Free VPN. Editors Rating: 8.9 /10. ...
  • PrivadoVPN - Best Free VPN for Unlimited Devices. Editors Rating: 9.0 /10.
Apr 26, 2024

Should I use a VPN on my mobile network? ›

Yes, You Should! A VPN (virtual private network) is a service that provides a secure Internet connection by using private servers in remote locations.

Should I use a VPN on my phone? ›

It makes you more secure.

(Think of your data and information traveling through a tunnel that no one else can use or see into.) In that way, a VPN makes all kinds of online activities more secure—like banking, shopping, and checking up on your finances.

How can I tell if there is a VPN on my network? ›

To see if you're using a proxy/VPN online, go to www.whatismyproxy.com. It will say if you're connected to a proxy or not. PC: Check under your WiFi settings, to see if there is a VPN/proxy showing up. Mac: Check your top status bar.

Which VPN is 100% free? ›

The best completely free VPN is Proton VPN Free. It's very fast, highly secure, doesn't track user web logs, and doesn't limit data usage. Sadly, it only offers free servers in 3 countries, which don't bypass streaming geo-restrictions.

Which is the unlimited free VPN? ›

While most free VPNs impose caps, Proton VPN is a 100% free VPN that offers unlimited monthly data.

Does Android have built-in VPN? ›

Android includes a built-in (PPTP, L2TP/IPSec, and IPSec) VPN client.

Is there a 100% free VPN Proton VPN? ›

Proton VPN has one of the most attractive free options we've seen from any VPN. Without paying anything at all, you can get an ad-free VPN with no data logging and no bandwidth limits.

Top Articles
Latest Posts
Article information

Author: Arielle Torp

Last Updated:

Views: 5836

Rating: 4 / 5 (41 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Arielle Torp

Birthday: 1997-09-20

Address: 87313 Erdman Vista, North Dustinborough, WA 37563

Phone: +97216742823598

Job: Central Technology Officer

Hobby: Taekwondo, Macrame, Foreign language learning, Kite flying, Cooking, Skiing, Computer programming

Introduction: My name is Arielle Torp, I am a comfortable, kind, zealous, lovely, jolly, colorful, adventurous person who loves writing and wants to share my knowledge and understanding with you.