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.

What is a VPN actually useful for?
These are the uses where a VPN really adds something:
- 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.
- 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.
- Hiding your IP from websites: the site sees a different IP and approximate location.
- Keeping your browsing from your provider: it will only see that you connect to a VPN server.
- 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.

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.

Quick comparison
| Commercial VPN | Own VPN (WireGuard) | Mesh network | |
|---|---|---|---|
| Used for | Public Wi-Fi, hiding your IP | Getting home, public Wi-Fi | Connecting your devices |
| You reach the internet from | The provider’s servers | Your home | Your current connection (or one of your devices) |
| Who sees your traffic | The provider | Only you | It travels encrypted between your devices |
| Difficulty | Very easy | Medium | Easy |
| Open ports | No | Yes | No |
| Cost | Subscription | Your own hardware | Free for personal use, or paid |
When is a VPN worth it?
Ask yourself these questions:
- Do you often use public Wi-Fi? A self-hosted or commercial VPN makes sense.
- 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.
- Do you want websites not to see your IP or country? Only a commercial VPN solves this well.
- 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.



