Skip to content
GEEKnodes

Computing

What Is a VPN, What Is It For and When Is It Worth It?

What a VPN is and how it works, what it really protects, and how commercial VPNs, your own WireGuard VPN at home and mesh networks differ from each other.

The word VPN shows up in ads, in videos and in your phone’s settings menu, almost always as if it were a magic shield. The reality is more modest and more interesting. This guide explains what a VPN is, what it really protects, what it does not, and which type suits you depending on what you want to do.

In short

  • A VPN creates an encrypted tunnel between your device and another point on the network.
  • It helps protect your traffic on public Wi-Fi, hide your IP from websites and reach your home network from outside.
  • It does not protect you from phishing, malware, or a website recognizing you through your account or cookies.
  • There are three main types: commercial, self-hosted (for example, WireGuard at home) and mesh.
  • A VPN does not remove the need to trust someone: you simply change whom you trust.

What is a VPN and how does it work?

VPN stands for Virtual Private Network. It is software that puts all your traffic (or part of it) inside an encrypted tunnel that ends at a VPN server.

Without a VPN, your data goes from your device to the router, then to your internet provider and on to the internet. With a VPN, it leaves already encrypted toward the VPN server, which decrypts it and sends it to its destination as if it came from there.

This has two effects:

  • Whoever sits between you and the VPN server (the hotel Wi-Fi, your provider) only sees encrypted data going to a single place.
  • The websites you visit see the VPN server’s IP, not yours.

Today almost every website already uses HTTPS, which encrypts the content of each page. What a VPN adds is hiding which sites you connect to, including DNS lookups, which sometimes travel unencrypted.

Comparison: without a VPN data travels visibly over public Wi-Fi; with a VPN it goes through an encrypted tunnel to the VPN server
The VPN encrypts the stretch between your device and its server.

What is a VPN actually useful for?

These are the uses where a VPN really adds something:

  1. Public Wi-Fi: at airports, hotels or cafés you do not know who controls the network. A VPN stops anyone on it from seeing which sites you visit or tampering with unencrypted traffic.
  2. Accessing your home network: browse the files on your NAS, open Home Assistant or use your ad blocker as if you were on the couch.
  3. Hiding your IP from websites: the site sees a different IP and approximate location.
  4. Keeping your browsing from your provider: it will only see that you connect to a VPN server.
  5. Remote work: many companies use a VPN to give access to internal servers.

Many people also use a VPN to see other countries’ catalogs on streaming platforms. Keep in mind that this usually goes against their terms of service and that many block known VPN IPs.

What a VPN does not do

This is where the ads exaggerate most. A VPN does not:

  • Protect you from phishing: if you type your password into a fake site, the VPN sends it encrypted… to the fake site.
  • Remove viruses or malware from your computer.
  • Make you anonymous: if you sign in to an account, the site knows who you are. Cookies and browser fingerprinting keep working.
  • Make your connection faster: it usually adds some latency, because traffic takes a detour.

What does happen is that the VPN server can see everything your provider used to see. That is why choosing whom you trust matters most.

What a VPN protects, such as public Wi-Fi and your IP, and what it does not, such as phishing and viruses
A VPN protects the journey, not what you do when you arrive.

VPN types: commercial, self-hosted and mesh

Not every VPN is meant for the same thing. These are the three families you will come across.

Commercial VPN

You pay a subscription to a company with servers in many countries. You install its app and choose where you want to “exit” to the internet from. It is the option for public Wi-Fi and for hiding your IP.

What matters is trust: read its logging policy, check whether it has independent audits and be wary of free VPNs, which are often funded with your data.

Your own VPN at home

You set up the server yourself, for example with WireGuard on a Raspberry Pi or on the router. When you connect from outside, you reach the internet from home, with your connection and your IP.

It is perfect for getting into your home network and for using public Wi-Fi safely, without depending on any company. It is explained step by step in the guide to a WireGuard VPN with Raspberry Pi and PiVPN. You need to open a port on your router and your provider must not have you behind CG-NAT.

Mesh network (mesh VPN)

Services like Tailscale, NetBird or ZeroTier (and self-hosted alternatives such as Headscale) connect your devices directly to each other, as if they were on the same local network, wherever they are. Most use WireGuard underneath.

Their big advantage: no ports to open, and they usually work even behind CG-NAT. They are ideal for reaching your machines at home; they are not designed for going online from another country, although some allow it through one of your devices.

Three VPN types: commercial with a server in a data center, self-hosted with a server at home and a mesh network with devices connected to each other
Three ways to set up a VPN, each for a different use.

Quick comparison

Commercial VPNOwn VPN (WireGuard)Mesh network
Used forPublic Wi-Fi, hiding your IPGetting home, public Wi-FiConnecting your devices
You reach the internet fromThe provider’s serversYour homeYour current connection (or one of your devices)
Who sees your trafficThe providerOnly youIt travels encrypted between your devices
DifficultyVery easyMediumEasy
Open portsNoYesNo
CostSubscriptionYour own hardwareFree for personal use, or paid

When is a VPN worth it?

Ask yourself these questions:

  1. Do you often use public Wi-Fi? A self-hosted or commercial VPN makes sense.
  2. Do you want to reach your home devices from outside? Pick your own VPN or a mesh network. A commercial one is no use for this.
  3. Do you want websites not to see your IP or country? Only a commercial VPN solves this well.
  4. Do you only browse HTTPS sites from home? You probably do not need one for anything in particular.

Whatever your case, a VPN is only one layer. Real protection comes from keeping your system updated, using a password manager and, where possible, passkeys instead of passwords.

Frequently asked questions

Is it legal to use a VPN? In the US and most European countries, yes. What remains illegal is whatever was already illegal without it, and some platforms forbid VPNs in their terms. Check local law when you travel.

Is a free VPN a good idea? Generally, no. Running servers costs money, and if you are not paying, someone is paying for your data. There are exceptions from well-known companies with limited free plans; always check their privacy policy.

Does a VPN slow down the internet? A little, yes. Encryption and the detour to the server add latency. With modern protocols like WireGuard and a nearby server, the difference is usually small.

Can I put the VPN on the router? Yes, many routers let you set up a VPN as a client or a server. That protects every device at home without installing anything on each one, although the router needs enough power to encrypt at good speed.

Accessibility preferences

Quick profiles

Text and reading

Text size
Default
Line height
Default
Letter spacing
Default
Word spacing
Default

Colour

Motion and orientation

Cursor