Virtual Private Networks
learnlearn.uk
What is a VPN?
A VPN, or Virtual Private Network, is a technology that creates a secure and encrypted connection over a less secure network, such as the internet.
This allows users to send and receive data as if their devices were directly connected to a private network, offering privacy, security, and anonymity.
Consumer VPN
Used for privacy, security and spoofing physical location.
The user connects to the VPN proxy server via an encrypted connection.
The VPN proxy server switches the IP address before forwarding the packet to the destination website, masking the user's real identity and location from the destination website.
Features of VPNs
Multiple Exit Nodes
Exit nodes, or exit servers, are the final VPN servers through which your internet traffic exits before reaching its destination.
When a VPN offers multiple exit nodes, it allows your data to be routed through several different servers, often in various countries, before it reaches its final destination.
This is sometimes referred to as multi-hop or double VP
Remote Access VPN
Purpose
Enables individual users to connect to a private network from a remote location.
Use Case
Commonly used by remote workers to securely access their company's internal network.
How It Works
Users connect to the VPN server through client software, creating an encrypted tunnel for data transmission.
Site to Site VPN
Purpose
Connects entire networks to each other, typically used by businesses with multiple office locations.
Use Case
A company with offices in different cities can use a site-to-site VPN to connect their networks, allowing employees at each site to access resources on the other network.
How It Works
Establishes a secure, encrypted connection between the routers of different networks.
VPN for IP Spoofing
VPN over public wifi
IPSec Modes
IPsec (Internet Protocol Security) operates in two primary modes: Transport Mode and Tunnel Mode. Each mode serves different purposes and has distinct characteristics.
Transport Mode
Transport Mode encrypts only the payload of the IP packet, leaving the original IP headers intact.It is typically used for end-to-end communication between hosts.
Use Cases
Host-to-host communication: Ideal for securing communication between two computers directly.
Application-layer security: Useful when applications need to securely communicate without altering the underlying network infrastructure.
Tunnel Mode
Tunnel Mode encrypts the entire IP packet, including both payload and headers, and then encapsulates it into a new IP packet with a new header.Commonly used for network-to-network (site-to-site) or network-to-host communication.
Use Cases:
VPNs: Frequently used to establish secure site-to-site or remote access VPNs.
Gateway-to-gateway communication: Secures traffic between two network gateways, providing a secure tunnel over the internet or other untrusted networks.