What is a VPN?
Our in-house cybersecurity experts and journalists, renowned for major reports like The Mother of All Breaches, conduct transparent, unbiased VPN testing and in-depth analysis.
With 750+ articles crafted based on real-world research, we empower readers to make informed purchasing decisions through first-hand expertise.
Learn more
A VPN is a virtual private network built to secure your internet connection with modern protocols while delivering high-speed performance.
Beyond just protecting your data on vulnerable public Wi-Fi networks, a VPN stops ISPs (internet service providers) from logging your activities, ensuring a more private and anonymous browsing experience. A reliable VPN effectively masks your true IP address, making your real location undetectable. Thatβs why itβs essential for circumventing strict geographical content blocks and heavy censorship.
In this guide, I explore VPN encryption standards, evaluate tunneling protocols, and explain how to configure VPNs across your devices.
How does a VPN work?
A VPN changes your IP address by rerouting your internet traffic through one of its servers via an encrypted tunnel. You need a remote server and a VPN tunneling protocol (or VPN client app) to establish a secure connection.
Letβs look at an example of how visiting Amazon would work without a VPN. You enter the Amazon homepage, it loads, and you can do your online shopping.
Hereβs how it works in more technical terms:
- Your browser contacts a domain name server (DNS) assigned by your ISP, asking it to translate the website domain into an IP address.
- Knowing the Amazon serverβs IP address, your device can now send a request and retrieve the website.
- Your ISP routes your request to the Amazon server and returns a response.
This is very simplified, but thatβs essentially how any connection works if youβre not using a VPN. In this example, the Amazon website is secure and uses TLS/SSL (HTTPS) cryptographic protocols, so your connection is encrypted. If you visit an unprotected webpage that doesnβt use TLS, your data wonβt be encrypted.
Despite the TLS encryption, this type of session still isnβt entirely private. By sending a DNS request to your ISP, you are telling your ISP that you want to visit amazon.com. Amazon also knows your IP address and can, therefore, determine your location and, potentially, even your identity.
Now letβs look at an example of how visiting Amazon would work if you were using a VPN service provider:
- You would connect to a VPN server in a country of your choosing, let's say the UK.
- The VPN app uses a tunneling protocol to create an encrypted connection to the VPN server.
- You open Amazonβs homepage, yet this time, the VPN resolves the DNS query, denying your ISP knowledge of what youβre doing.
- The VPN establishes a connection between its server and the amazon.com server.
- Traffic goes from you to the VPN server, then to Amazonβs server, and back.
Thatβs how a VPN establishes a secure connection between you and the internet. It is especially beneficial if youβre using a public Wi-Fi network. If you opt for one of the best no-logs VPNs, you can also make sure that none of your data will be tracked, recorded, or otherwise compromised.
Why should you use VPN?
A VPN doesnβt just protect your privacy β it brings many more benefits that make it a crucial tool in modern times. Here are some other advantages of using VPN:
- Data encryption. A VPN masks your data by rerouting your traffic through an encrypted tunnel. This makes your data secure and completely anonymous. Hence, nobody can expose your identity, and your data is protected from the rest of the internet.
- Hides your online activities. Using a VPN helps you avoid surveillance β all your ISP will see is you connecting to a VPN, and none of your online activities will be exposed.
- Access geo-restricted content. A VPN allows you to change your virtual location, which is an effective way to bypass geographical restrictions in your country. This enables you to bypass online censorship and unlock various content exclusive to other countries.
- Secure public Wi-Fi networks. A VPNβs primary function is security and privacy protection. It is especially useful when youβre faced with using public Wi-Fi in airports or cafes. You can also use a VPN on mobile data and keep your internet connection protected.
- Torrenting. Peer-to-peer (P2P) activities arenβt permitted everywhere and can lead to legal issues, which is why many torrenters use VPNs to hide their IP address and protect their identity.
- Gaming. A VPN for gamers can up your online gaming experience, helping avoid cyberattacks as well as improving performance if your ISP is throttling your connection.
- Shopping. With a VPN, you get more flexibility with online purchases. A VPN will prevent you from falling prey to price discrimination β the practice of charging a different price for the same goods or services depending on your location. Also, you can access different local store versions by changing your virtual location with a VPN.
Popular questions about a VPN
Together with Cybernews experts, I researched and selected the most popular questions people ask about VPNs. Save your time β I have the answers. Here are some of the key things people want to know about VPNs.
Are VPNs legal?
Yes, VPNs are legal in most countries worldwide. However, some governments, such as Russiaβs or Chinaβs, restrict the use of VPNs. Hence, you need to take this into consideration when using a VPN in those VPN-sensitive regions. Hereβs a complete guide on VPN legality.
Does VPN slow down the internet?
Technically β yes. A VPN will slow down your internet connection, as thereβs an extra step in the process β your web traffic must go through the VPN server. On the bright side, the impact wonβt be noticeable if you use one of the fastest VPNs on the market.
Are VPNs safe?
In most cases, yes β VPNs are safe. Using a top-class VPN ensures online security and comes with many great benefits, such as bypassing censorship and accessing geo-restricted content. Meanwhile, free VPNs arenβt as safe as premium VPNs because of the tendency of selling your personal data to third parties. Learn more about what makes a VPN safe.
Are VPNs worth it?
Yes, a quality VPN keeps your data safe and provides online anonymity. Itβs an ideal solution whether you want to access geo-restricted content, integrate an extra layer of privacy, improve your torrenting or gaming experience, or safely use a public network. Learn more about why it's worth using a VPN.
VPN vulnerabilities
There are no perfect cybersecurity products, and using a VPN comes with some risks as well. Here are some potential VPN vulnerabilities that you should be aware of:
- Some VPN services still use outdated protocols with known vulnerabilities. That is why most leading providers have phased out the Point-to-Point Tunneling Protocol (PPTP).
- Hackers can impersonate VPN servers and intercept your data if your VPN is not secure.
- Your real IP address can leak if a VPN server goes down while youβre connected, compromising your privacy. Premium VPNs offer kill switch features to disable your internet connection when the VPN drops.
- Your data is probably being sold if a VPN service is free. Think about it: the maintenance of VPN server fleets costs money. Hence, when the service is free, the money has to come from somewhere. In many cases, the VPN is collecting your data and selling it to third parties.
- Some VPNs log user data, even though the logging may not be extensive. There have been instances of several VPN providers handing over user data to governments when asked. Thatβs why itβs essential to ensure your chosen provider is a no-logs VPN.
- VPN doesnβt protect you from malware. You should use antivirus software for enhanced protection from various types of malware, including viruses and trojans. Some premium VPN providers, such as NordVPN or Surfshark, offer antivirus or ad blocker features that can serve you well in this case.
What to look for when choosing a VPN?
VPN services are not made equal. Some have more features and better security measures. Others have completed third-party audits that add credibility to their transparency claims. When choosing a VPN service, youβre making a conscious decision to trust a company with your data. The least you could do is invest time in some research.
Here are a few things to look out for:
#1 Reputation
Even if youβre just looking for a VPN to unblock Netflix, the serviceβs reputation is essential. Your privacy is vital, and you should never undervalue it.
Unfortunately, it can be challenging to know what VPN services are up to behind closed doors. Of course, if a VPN provider has been caught red-handed giving away user data or bending the truth about its services, thatβs a good way to know which VPN to avoid.
#2 Jurisdiction
Where a VPN operates from matters. Some countries require VPNs to collect user data, whereas others have harsh copyright laws. As a user of such a VPN, you run the risk of letting your data get into the wrong hands.
The Edward Snowden leaks shed light on the scope of surveillance around the globe. If you think that living outside of the US makes you safe against the NSA and youβll have nothing to worry about, think again. The surveillance alliance, also known colloquially as the Fourteen Eyes alliance, shares intelligence data on each otherβs citizens. And theyβre not even the worst of the bunch.
#3 Anonymous payment options
You are as anonymous as your payment method. Paying with a credit card leaves records on your banking statement and the companyβs accounting logs. It never hurts to check if your chosen service supports payments via cryptocurrency, prepaid cards, or other options. As a rule of thumb, the less personal information you provide, the better the service is for your privacy.
#4 Technical specifications
Encryption, reliable tunneling protocols, leak protection, speed, kill switch, and double VPN are all necessary for a secure VPN. The provider can be very transparent, but if it doesnβt have the tech to provide privacy and security, you will have a bad time.
As there are hundreds of VPN services to consider, picking the best one might seem daunting. Luckily, there are a few ways to distinguish the good from the bad. Hereβs what you need to look for in a quality VPN:
- Tunneling protocols. Not all VPN protocols are created equal. Some, like PPTP, are downright outdated. So, when choosing your VPN, look for fast and secure protocols like OpenVPN, IKEv2, and WireGuard.
- Server list. It goes without saying that you should pick a VPN that offers servers in the country you want to connect to. However, broader coverage is always better, as the servers wonβt be as crowded. You should also look for servers near you for a faster connection.
- Logging policy. Always read the logging policy of the VPN youβre about to download. Look for a service that doesnβt store any data about your online activity. Also, itβs better when the logging policy is audited by an independent third party.
- Streaming and torrenting. Not all VPN services are able to unblock various streaming platforms like Netflix. Similarly, not all VPNs support torrenting (here are our top VPNs for torrenting). Keep this in mind when looking for your perfect VPN β usually, reading a couple of reviews will give you the gist of whether the VPN will suit your needs.
- Apps and devices. Whether you use Windows, macOS, iOS, Android, or Linux, itβs a good idea to check whether a VPN offers a good application for your operating system. Some VPNs also support routers, smart TVs, and gaming consoles. Also, check how many simultaneous device connections a VPN permits so you could protect all the devices you own.
If you find it too difficult to pick a VPN yourself, you can check out our list of the best VPNs or check our NordVPN review and Surfshark review for an in-depth look of today's top VPNs.
How to set up a VPN connection
The complexity of setting up a VPN connection depends on whether you are using a VPN app, or attempting to manually configure VPN files on your chosen device.
Using a VPN app is simple and straightforward, while manual setup and installation on routers or devices that donβt necessarily support VPNs require some technical knowledge.
Set up a VPN on your device
Setting up a VPN on Windows or Mac computers, iPhones or iPads, and Android devices is very simple, because most VPN providers have dedicated apps for them. Hereβs how to set up a VPN on your device:
- Purchase a VPN subscription. NordVPN has apps for all major operating systems and some other devices as well
- Download the app and follow the installation instructions
- Open the app and connect to a VPN server
Set up a VPN manually
Most devices have built-in VPNs that you can configure to your liking. However, they might not support certain tunneling protocols like WireGuard, or you might not be able to choose from a variety of locations.
Besides that, setting up a VPN manually requires certain additional knowledge. Built-in VPNs might also not be as secure as third-party VPN providers.
Nevertheless, if youβd like to try this, I suggest taking a look at our extensive guide on how to manually set up a VPN on different devices.
Install a VPN on your router
Installing a VPN on your router is the best way to set up a VPN connection for devices that donβt support VPNs, or if you want to protect your whole home network.
The process of setting up a VPN on a router is more complicated than manually setting it up on a device that already supports VPNs. Besides, not all routers support VPNs either. You wonβt be able to install a VPN on most ISP-issued routers or older models.
Setting up a VPN on your router requires some technical knowledge and focus. I suggest you take a look at our guide on how to install a VPN on your router.
What is a VPN client?
A VPN client/VPN app is the software on your device that communicates with a VPN server, establishes the connection, and encrypts data.
How does a VPN client work?
A VPN app/client enables you to control your VPN experience: which server to connect to, which tunneling protocol to use, and which features to activate. Most VPN service providers have apps for Windows, macOS, Android, iOS, Linux, Amazon Fire TV, and other devices and operating systems.
That said, you can also use a VPN without a dedicated VPN app. All major operating systems offer VPN functionality in some form. For example, you can set up a VPN connection through your networking settings on Windows.
You can also set up a VPN client on your Wi-Fi router by following instructions from your VPN provider.
What is a VPN server?
A VPN server enables users to use the VPN service. It consists of VPN hardware, such as physical servers stored in data centers, and VPN software.
The top providers have hundreds or even thousands of servers scattered worldwide. The further the VPN server is from the userβs real location, the worse the performance will be, so servers in various places are crucial for better performance. In addition, the more locations a provider has servers in, the more virtual locations a user can connect to without actually having to move.
Some providers also use diskless, RAM-only servers. These are the kind of servers that have no external storage, and any data thatβs on them gets deleted with every server reboot. VPN providers choose RAM-only servers to ensure complete user privacy and enhance their no-logs policies.
You can also find some VPN providers offering obfuscated VPN servers. Obfuscated servers employ various techniques to conceal VPN traffic, making it harder for network administrators, ISPs, or governments to detect and block VPN usage. These servers often use advanced encryption and masking methods to disguise VPN traffic as regular internet traffic.
What does a VPN server do?
A VPN server forwards your internet traffic to the destination server and returns the response to you.
When you connect to a VPN server, your IP address changes, and so does your virtual location. Thus, the websites that you visit will assume that youβre based in the VPN serversβ country. This is especially useful for bypassing geo-restrictions and various other content blocks and internet censorship.
By contrast, if youβre not connecting through a VPN server, the owner of any website you visit will know your real IP address and your location. You may want to avoid this for privacy reasons and to bypass certain content restrictions. Some websites and services are available only in specific locations or have local versions.
What is VPN encryption?
VPN encryption is a process of making the data traveling between a device and a VPN server unreadable to anyone without an encryption key, namely other people and their devices.
VPN tunnels that go from your device to the VPN service providerβs server are also secured using encryption.
A VPN encrypts all of your internet traffic, including your browser, torrent client, messaging app traffic, and anything else you may be doing on the internet. Because of VPN encryption, no one can see or intercept your online activities.
Although encryption slows down your connection slightly, it does not interfere with your ability to connect to the internet. It simply makes it impossible for someone to reveal network exchanges.
How does VPN encryption work?
Your data is encrypted through the transfer between a device and a VPN server. It gets deciphered only at the endpoint β when leaving the VPN tunnel and entering your device.
VPNs use three types of cryptography: symmetric encryption, asymmetric encryption, and hashing. Hereβs how VPN encryption works:
- When you connect to a VPN server, the connection performs a βhandshakeβ between a VPN client and a VPN server. During this step, hashing is used to authenticate that the user is interacting with a real VPN server, and asymmetric encryption is used to exchange symmetric encryption keys. A few popular examples of asymmetric (or public key) protocols used at this stage are RSA or Diffie-Hellman.
- Once the handshake is successful, symmetric encryption encrypts all data passing between the user and the VPN server. The most common symmetric encryption cipher used by VPNs is AES (specifically, AES-256).
Most top VPN services rely on the advanced encryption standard (AES) cipher to seal the data that goes through β the same type of encryption that financial and government institutions use.
What is AES-256?
AES-256 stands for advanced encryption standard that uses 256-bit integers to process data. It is a symmetric key encryption algorithm for encryption and decryption. Generally, itβs considered the gold standard of modern encryption. VPNs use it to create a safe tunnel for your private data exchanges.
You might see weaker AES standards like AES-128. This simply indicates that the cryptographic key is shorter and easier (although still virtually impossible) to brute force. As a rule of thumb, the longer the encryption key, the more potential combinations, which would take longer to crack. Itβs the same principle as using a longer password means itβs harder to guess.
On the flip side, a longer encryption key means slower connections because the encryption and decryption take longer.
In the wild, you will most often find three variations of AES: AES-128, AES-192, and AES-256. Additionally, you may encounter different modes of operation, such as AES-256-GCM or AES-256-CBC.
Not all tunneling protocols support this kind of encryption. For example, PPTP uses the much weaker MPPE cipher, whereas the reputable WireGuard protocol primarily uses ChaCha20.
What is VPN tunneling?
A VPN tunnel is an encrypted link that connects your computer or mobile device to an external network. You can use a VPN tunnel to conceal your online activity.
How does VPN tunneling work?
To connect to the internet through a VPN tunnel, you must first sign up with a VPN service. The VPN is essential for concealing your IP address and protecting your online activity from prying eyes.
A VPN tunnel is established once you connect to your chosen server. Without it, your ISP sees your online activities, but this is impossible after you connect to a VPN server. That's because of the encryption and your hidden IP address.
The VPN tunnel channels your traffic to a VPN server, hiding your IP address. Without the IP address, your location cannot be determined.
Most VPNs also offer a split tunneling feature that allows users to divide their internet traffic between the VPN connection and their regular internet connection. It enables users to route specific data through the encrypted VPN tunnel while accessing other resources directly.
Types of VPNs
There are several different types of VPNs. I've put up a concise overview of each VPN type for you to have a better understanding of what divides VPNs into different categories.
The main types of a VPN are:
Remote access VPN
A remote access VPN allows you to connect to a private network, such as your company's office network, via the internet.
The internet is an untrustworthy communication channel. VPN encryption is used to protect and secure data as it travels to and from the private network.
Personal VPN
A personal VPN service links you to a VPN server, which functions as a link between your device and the internet services you want to use.
A personal VPN encrypts your connection, hides your identity online, and allows you to spoof your geographic location.
Site-to-site VPN
A virtual private network that connects two or more networks, such as a corporate network and a branch office network, is known as a site-to-site VPN.
Site-to-site VPNs are widely used by businesses with various offices in different geographic areas that require continuous access to and use of the corporate network.
VPN explained: video review
Check our video review explaining VPNs and whether you should use them all the time in 2026.
VPN protocols
The primary function of a VPN protocol, or tunneling protocol, is to establish a safe connection between your device and the VPN server. When a VPN app connects to a VPN server, it creates a tunnel to send data. The protocol used to create this connection determines how your data is sent through the network.
Some protocols are more secure, some are faster, some are better on mobile devices or older PCs, some are better at bypassing firewalls, and some are just outdated.
Common VPN protocols
Most VPN providers didnβt develop the protocols but merely implemented the technology in their apps. Here are the most common protocols that you could find in most VPN clients:
- IKEv2. It stands for internet key exchange version 2. It mainly handles request and response confirmations. For authentication, IPSec is also often used together with IKEv2 (IKEv2/IPSec). This protocol is very efficient on an unreliable connection. IKEv2 effectively reestablishes after a connection loss. Itβs also one of the fastest, most used tunneling protocols on mobile devices because it can easily switch between wireless to cellular connection, and vice versa.
- OpenVPN. By far the most common tunneling protocol on desktop apps. This is an open-source protocol based on OpenSSL. It comes in two types β TCP and UDP.
- UDP. Itβs the user datagram protocol. It is much faster because it doesnβt allow the recipient to resend data requests. This means less verification of data integrity, which allows for more rapid exchanges, hence better speeds.
- TCP. Itβs the transmission control protocol. It allows multiple data verifications, so the processing time may be slower, limiting your internet speed. Use UDP on networks you can trust, while TCP will be better on public Wi-Fi hotspots.
- L2TP/IPSec. On its own, L2TP doesnβt provide any encryption. Its job is request and response confirmations. Encryption enters the arena with IPSec, which is often used in conjunction. There are many discussions about whether this protocol is secure because it was co-developed with the NSA. The Edward Snowden leaks seemed to imply that the NSA may have backdoors to access L2TP/IPSec traffic.
- WireGuard. This is the next-gen of tunneling protocols. It uses fewer lines of code, making it easier to audit, and squeezes the most out of your deviceβs processing power. Itβs ideal for mobile devices and slower computers, has up-do-date encryption built-in, and offers reliable connections. WireGuard gives the best performance of any current VPN tunneling protocol.
- SSTP. The secure socket tunneling protocol was created by Microsoft, but it is not exclusive to Windows and provides a high level of encryption. While SSTP is very capable, there are concerns that Microsoft may have backdoors to access SSTP traffic.
- PPTP. The point to point tunneling protocol was developed in the late 90s and the first to become widely available. This protocol relies on outdated encryption, which has become vulnerable to brute force attacks as computing power grows. As such, few VPN service providers currently offer this protocol.
Proprietary VPN protocols
Some VPN service providers have developed their own tunneling protocols:
- Catapult Hydra β developed for the Hotspot Shield VPN service. The company claims that this protocol allows the service to achieve much better connection speeds than using standard tunneling protocols. Whether due to Catapult Hydra or other reasons, Hotspot Shield has always been among the fastest VPNs.
- NordLynx β only available on NordVPN. NordLynx is a modified version of WireGuard, solving potential security issues while keeping the performance intact.
- Lightway β only available on ExpressVPN. It uses an open-source implementation of transport layer security (TLS), wolfSSL. Its goal is to be as lightweight as possible, aiming for ease of maintenance and high performance.
FAQ
What is a VPN used for?
VPN is mostly used to stay private online, hide your online activities, bypass geo-restrictions, access various blocked content, securely use public Wi-Fi networks, and enhance security by staying anonymous with encrypted traffic.
Can a VPN steal my data?
Theoretically, yes. A VPN provider can steal your data. However, many top VPNs operate under no-logging policies, meaning they donβt collect your information. And if they do, then maybe theyβre not that good anyway.
How much does a VPN cost?
A monthly VPN subscription costs between $5.00-12.00 on average, and an annual subscription is between $3.00-8.00 per month. Most VPN prices depend on the duration of your subscription. If you subscribe for more extended periods, you pay less per month, and the longer the subscription period, the lower the price.
Can a VPN see my passwords?
No, a VPN most likely canβt see your passwords. That would be possible only in cases when a website uses HTTP, so you should avoid typing out your login credentials on such websites anyway. Luckily, most websites use HTTPS, which encrypts your data and makes stealing your password impossible.
How does a VPN increase your security?
VPN increases your security by hiding your real IP address, hiding the IP address of a website or service that you are using from your ISP, and securing your connection by using encryption. These measures make a VPN one of the best cybersecurity and online privacy tools. Also a VPN can protect you from some types of hacks.
Can you be tracked with a VPN?
Itβs challenging to track a person who uses a VPN. However, there are ways of tracking your online activity even when you use a VPN: cookies, digital fingerprinting, DNS leaks, malware, and doxxing. So while a VPN is an excellent privacy tool, it does not completely eliminate tracking risks.
Can a VPN be hacked?
Technically β yes. Even though a VPN remains one of the most effective ways to ensure your security, VPNβs encryption can be broken through various technical vulnerabilities. Alternatively, a VPN can be hacked by stealing a key. I recommend using only top-tier VPN providers to avoid your VPN being hacked.
Is it ok to leave a VPN on all the time?
Yes. To protect your online identity against cyberthreats and data leaks, you should keep your VPN connection on at all times. A VPN hides your real IP address, protecting you from ISP throttling, snoopers, and browsing when connected on public Wi-Fi.
How to check if a VPN is working?
You can test whether your VPN is working by checking whether your original IP address has been hidden and changed using an IP address checker online. A functional VPN will hide the IP address given to you by your ISP.
Proxy vs VPN: which is more secure?
When comparing security between VPNs and proxies, VPNs are generally considered more secure. While both technologies can help mask your IP address and provide some level of anonymity, VPNs offer a higher level of encryption and stronger data protection.