🥇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

How does VPN work on network level? ›

The VPN acts as an intermediary of sorts as you connect to the internet, thereby hiding your IP address – the string of numbers your ISP assigns your device – and protecting your identity. Furthermore, if your data is somehow intercepted, it will be unreadable until it reaches its final destination.

What is VPN in mobile networks? ›

You can connect your device to a private network, like your school or company's network, when you're not there. You make this kind of connection through a virtual private network (VPN).

Does a VPN affect all devices on a network? ›

Does a VPN connect to all devices? Not really. You need a running VPN app and probably an account on each device. Or you could set up a VPN on your router and have the same effect.

Is there a free VPN that actually works? ›

For a free VPN, PrivadoVPN Free offers the most comprehensive package on the market. With the only real limitations being restricted fast data, a smaller number of servers and only a single device being allowed on each plan, it's well worth a try – especially if you're after a Netflix VPN for free.

How do I get VPN on my network? ›

How to Set up a VPN on Your Router
  1. Type your router's internet protocol (IP) address and password to log into your admin panel.
  2. Find the VPN option in the settings.
  3. Select the option for VPN client, not VPN server.
  4. Enter the correct settings. ...
  5. Complete any additional steps your router may request.
Dec 7, 2023

Should I use a VPN on my mobile network? ›

Keep your data safe everywhere you go with a mobile VPN

It's the tip of the iceberg, particularly if you use a mobile device while away from your home network. An Android VPN provides a handy way to access region-locked content when you travel overseas or want to watch content you can't access in your area.

Should you use a VPN on your phone? ›

For some time now, we've recommended a VPN when using public Wi-Fi in airports, libraries, hotels, and coffee shops. Given that these are public networks, a determined hacker can snoop on the other devices transmitting data on them. With a VPN, any connection becomes a secure connection, which includes public Wi-Fi.

Should I use VPN on cellular network? ›

Whether you should use a VPN for mobile data depends on what you'll be using your mobile device for. If you value privacy and want to keep your ISP from viewing your online activity, then a VPN is perfect for you. Your ISP may collect your data and sell it to third parties if you are not protected by a VPN.

Can my network provider see what I am doing with VPN? ›

Yes, your ISP can see your VPN's IP address. However, they can't see anything else. Everything you do online, including browsing habits, downloads, and viewed content, stays hidden when you use a good VPN. Connect to any PIA VPN server across the world to access online content safely.

Is it better to put VPN on router or device? ›

The reason you'd want a VPN on your router is to provide network-wide online security. Once you set up a VPN on your router, all connected devices will be granted the benefits of VPN protection.

Is my VPN affecting my Wi-Fi? ›

Yes, free VPNs can significantly slow down your internet. They often have fewer servers, leading to overcrowding and slow speeds. They may also use encryption protocols that require more processing, and often prioritize speed for paid users.

Which VPN is 100% free? ›

Proton VPN is currently the best free VPN. The vast majority of free VPNs impose heavy restrictions on things like data allowance, usage time and connection speeds, making them practically useless for anything beyond the most negligible of online activities. Proton VPN imposes no such limitations on its free users.

Is there a 100% free VPN for Android? ›

Best Free VPN for Android: Quick Recap

Hide.me – best free no-log VPN for Android. TunnelBear – servers in almost 50 countries. Hotspot Shield – applications for all platforms. Windscribe – offers advanced security features.

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.

How do I use VPN at router level? ›

How to set up a VPN on your router
  1. Log into your router. You can access your router configuration panel by entering your router's IP address in your browser's URL bar. ...
  2. Look for the “VPN client” tab in the advanced settings of your router. ...
  3. Follow your VPN client's guidelines to set up the VPN on your router.
Jan 12, 2024

Does VPN bypass network restrictions? ›

You can bypass Wi-Fi restrictions by using services like a VPN, Tor, and proxy. They obfuscate the websites and services you want to access. This way, the Wi-Fi firewall doesn't know what to block.

Can networks detect VPN? ›

Companies can often detect the presence of a VPN by using VPN detection tests that look at connection attributes like network volume, known IP addresses, and packet headers (namely pieces of data transmitted with the connection being made, not unlike an addressed envelope with a sending and return address).

Can my network block 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.

Top Articles
Latest Posts
Article information

Author: Carmelo Roob

Last Updated:

Views: 5983

Rating: 4.4 / 5 (45 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Carmelo Roob

Birthday: 1995-01-09

Address: Apt. 915 481 Sipes Cliff, New Gonzalobury, CO 80176

Phone: +6773780339780

Job: Sales Executive

Hobby: Gaming, Jogging, Rugby, Video gaming, Handball, Ice skating, Web surfing

Introduction: My name is Carmelo Roob, I am a modern, handsome, delightful, comfortable, attractive, vast, good person who loves writing and wants to share my knowledge and understanding with you.