Sub topic 13
VPN: secure access to a private network
A virtual private network (VPN) creates an encrypted tunnel between a device and a private network across an untrusted network such as the internet. This chapter assumes you know basic networking terms (IP address, port, firewall) and have seen RDP and SSH in earlier chapters.
What a VPN does
A VPN does two things. It encrypts traffic so that anyone on the path sees only unreadable data. It also gives the remote device an address on the private network, so it can reach internal resources as if it were plugged in at the office.
A VPN is not a remote control tool. It provides network access only. You still need RDP, SSH, a file share, or another service to do anything once connected.
Common VPN types
| Type | Connects | Typical use |
|---|---|---|
| Remote access (client-to-site) | One device to an office network | An employee working from home |
| Site-to-site | Two whole networks | Linking a branch office to headquarters |
Remote access VPNs often use a client app or the operating system's built-in VPN feature. Site-to-site VPNs run on routers or firewalls, so users do not need to do anything.
Split and full tunnel
Tunnel mode decides which traffic goes through the VPN.
- Full tunnel sends all traffic through the VPN. The company can inspect and filter everything, but internet browsing is slower.
- Split tunnel sends only traffic for company resources through the VPN. Other traffic goes straight to the internet. This saves bandwidth but leaves the device exposed on the open internet while it is also connected to the private network.
Typical workflow
- The user opens the VPN client and enters credentials.
- The gateway checks them, ideally with multifactor authentication (MFA).
- The client and gateway set up the encrypted tunnel.
- The device receives an internal IP address.
- The user opens an internal resource, such as
\\fileserver\sharedor an RDP session.
Common problems
- Authentication fails. Check the password, the expired account, and the MFA code.
- Connected but cannot reach resources. Check the DNS settings, the routes, and any firewall rule that blocks the target.
- The VPN will not connect at all. Check that the device has internet access. Some hotel or public Wi-Fi networks block VPN traffic.
- Slow performance. A full tunnel adds distance and load. Check the gateway's capacity and the user's connection.
Exercise
A technician works from home and must open an internal file share and then use RDP to reach an office PC. Which technology should provide the secure path to the office network, and what does it not provide by itself?
Show answer
A VPN provides the encrypted path and an internal address on the office network. It does not provide remote control of a desktop. RDP is still needed for that.
Exercise
A company wants its users' internet browsing to be filtered by the corporate firewall even when they work remotely. Should the VPN use full tunnel or split tunnel?
Show answer
Full tunnel. It sends all traffic through the VPN, so the corporate firewall can inspect and filter it.