Skip to main content
Network SecurityBeginner

Virtual Private Network (VPN)

What is Virtual Private Network (VPN)?

A virtual private network (VPN) creates a protected logical tunnel across another network, usually encrypting and authenticating traffic between a device and a gateway or between sites.

Organisations use VPNs to give remote staff access to internal resources and to link offices over the internet. Consumer services use them to route a user's traffic through a provider's server. Common technologies include IPsec, TLS-based VPNs and WireGuard, each with its own design and configuration choices.

How it works

The endpoints first authenticate each other with keys, certificates or user credentials, and agree session keys. A virtual interface or policy then selects traffic, which is encrypted, integrity protected and wrapped in outer packets addressed to the other endpoint. The receiver verifies and removes that wrapping before forwarding. A full tunnel sends nearly all traffic this way; split tunneling sends only chosen destinations. Access rules at the gateway still determine what a connected user can reach.

Example

An employee working from a hotel connects with a company-managed VPN client and completes multi-factor authentication. Policy lets them open the internal ticket system but not the server management subnet, because their role does not require it.

Limitations and common misconceptions

A VPN protects only the tunnelled segment; traffic beyond the exit needs its own encryption. It does not make users anonymous, since the VPN operator can observe connection details, and it does not stop malware or phishing. Gateways are internet-facing targets that must be patched promptly.

Frequently Asked Questions

Does HTTPS make a VPN unnecessary?
They solve different problems. HTTPS protects a session with a website. A VPN can provide access to private networks and hide destinations from the local network, but it is not needed merely to encrypt an HTTPS page.
What is the risk of split tunneling?
The device talks to the internet and the private network at once, and some traffic bypasses central inspection. It can reduce load and latency, so the choice should follow a deliberate risk assessment.

Related terms

Learn and practise

Explore the topic: Networking, Cloud security

References

NEWPractise supported commands in browser simulations, alongside the lesson.Try a browser practice exercise.Try a labCodelivly is 100% free, no paywall. If it helped you, chip in to keep it running.100% free. Help keep it so.Support us