How a VPN Works, for Real

Published on 2026-09-12 by frfrand

What an encrypted tunnel actually does, what it hides and what it doesn't, why "VPN = privacy" is marketing, and what it's really for in a technical team.

How a VPN Works, for Real

Short answer: a VPN creates an encrypted tunnel between your device and a server or a private network. It hides your traffic from your local network and your Internet provider, but not from whoever operates the VPN nor from the sites where you log in. In a technical team, its most valuable use is not privacy: it's reaching private servers without opening ports to the Internet.

"VPN" became synonymous with privacy due to advertising, and that leads many people to use it expecting something it doesn't do. It's worth separating the mechanism from the promise.

The mechanism, without metaphors

A VPN creates an encrypted tunnel between your device and a server or a private network. Depending on its configuration, it can route all traffic or only traffic directed to certain destinations (split tunneling). Not all VPNs work as a commercial service for exiting to the Internet.

Without a VPN, your traffic goes from your device to the router, to the Internet provider, and from there to the destination. Each of those hops sees, at minimum, where you are connecting to.

With a VPN, your device wraps each packet in another encrypted packet directed to the VPN server. Your router and your provider only see one thing: that there is an encrypted connection with that server. They don't see what's inside or where it's going.

The VPN server unwraps the packet and sends it to the real destination. The response comes back the same way.

What this hides, and from whom

From your local network and your Internet provider: the tunnel can hide the destinations of connections passing through it, although it can still be observed that you are using a VPN, when you connect, and how much traffic you send. If certain DNS queries or routes remain outside the tunnel, that information can still be visible. Additionally, HTTPS already encrypts the content of many web connections without the need for a VPN.

From the destination site: it sees the VPN server address instead of yours. That is why it is useful for accessing region-restricted content.

From the VPN provider: not everything remains hidden. Depending on the design, the provider can observe destination addresses and traffic metadata being routed, but normally cannot read end-to-end HTTPS-protected content. You did not eliminate the need to trust: you changed which operator sees part of the connection. Evaluate the data policies and incentives of free or paid services instead of assuming one is automatically secure.

From any site where you log in: nothing. If you access your email, they know who you are, with or without a VPN.

And it does not protect against malware, does not replace an antivirus, and does not prevent tracking via cookies and browser fingerprinting.

What it is really for on a device

Here is the use that justifies the effort, and it has nothing to do with personal privacy.

A corporate VPN turns machines anywhere in the world into network neighbors. Your laptop, from a coffee shop, sees the database, the internal panel, and the test environment as if it were in the office.

The consequence is significant: those services do not need any port open to the Internet. No exposed administration panel, no scannable database. Membership in the private network becomes another layer of access control, but it does not replace passwords or keys, application permissions, or audit logs.

WireGuard changed the landscape

For years, VPNs were synonymous with long configurations and slow connections. WireGuard, which entered the Linux kernel in 2020, changed that: a few lines of configuration, a handful of thousands of lines of code (compared to hundreds of thousands of previous alternatives) and significantly more speed.

It is the basis of almost everything modern in this field, including Tailscale.

How to decide

  • Are you on a network you don't control and want the owner of that network not to see your traffic? Commercial VPN, paid, with a logging policy you can read.
  • Do you want your team to reach private servers without exposing them? Own VPN or a Tailscale-type network. This is what adds the most value and what is least advertised.
  • Do you want real anonymity? A VPN is not the tool.
How a VPN Works, for Real
How a VPN Works, for Real

Commercial VPN, private VPN, and server access

Not all VPNs have the same purpose. A commercial VPN usually shifts the Internet exit point; a private VPN connects internal devices and services. Additionally, HTTPS encryption protects the content of many connections even without a VPN: what intermediaries can observe depends on DNS, the protocol, and other connection characteristics.

Real example: you have a PostgreSQL database that uses an API hosted on a VPS. You don't need to publish port 5432 to manage it. You can access via SSH through a local tunnel or use an authorized private network. In ArduMaker you can manage the VPS and its accesses, and use SSH tunnels to reach internal services without leaving them accessible to the entire Internet.

The rule is to separate the access problem from the privacy problem: to enter a private database, design permissions, network, and authentication; to browse from public Wi-Fi, updated HTTPS remains essential.

To continue: Tailscale and private networks · ArduMaker Documentation.

Frequently asked questions

Does a VPN make me anonymous? No. The site sees the VPN server's IP, but if you log in it knows who you are, and cookies and browser fingerprinting still work.

What is split tunneling? Sending only traffic to certain destinations through the VPN (for example, the company network) and the rest through your normal connection.

What is WireGuard? A modern VPN protocol, with little code and a short configuration, included in the Linux kernel since 2020. Tailscale is built on top of it.

Do I need a VPN to access a database on my server? Not necessarily: an SSH tunnel solves point-to-point access. A VPN or a Tailscale-type network is useful when an entire team needs to reach several private services.

  • VPN
  • redes
  • cifrado
  • seguridad
  • acceso remoto

Keep reading

All articles · VPS plans