SY0-701Chapter 23 of 212Objective 3.3

VPN Types and Protocols

This chapter covers Virtual Private Network (VPN) types and protocols, a critical topic for the Security+ SY0-701 exam under Domain 3.0 (Security Architecture), Objective 3.3: Given a scenario, implement secure network architecture concepts. VPNs are essential for secure remote access, site-to-site connectivity, and protecting data in transit over untrusted networks. Understanding the differences between VPN types (site-to-site, remote access, clientless, full tunnel, split tunnel) and the protocols that underpin them (IPsec, SSL/TLS, L2TP, PPTP) is key to selecting the right solution for a given scenario.

25 min read
Intermediate
Updated May 31, 2026

VPN as a Secure Tunnel Through a Crowded Mall

Imagine you are in a crowded mall and need to send a private letter to a friend in another store. The mall is full of people who could read, copy, or alter your letter if you just hand it to a random passerby. To protect your letter, you put it inside a locked, opaque box. You then ask a trusted courier to carry the box through a dedicated, guarded corridor that only authorized couriers can use. The courier verifies your identity (authentication) and ensures the box hasn't been tampered with (integrity). Inside the box, the letter is encrypted so even if someone peeked, they'd see only gibberish (confidentiality). The courier delivers the box to your friend, who has the only key to open it. In this analogy, the mall is the public internet, the letter is your data, the locked box is encryption, the dedicated corridor is the VPN tunnel, and the courier is the VPN protocol. The guard at the corridor entrance is the VPN gateway that authenticates users and enforces security policies. If the courier's route is intercepted, the box remains locked, and any tampering is detected. This mirrors how a VPN creates a secure, encrypted tunnel between two endpoints over an untrusted network, providing confidentiality, integrity, and authentication.

How It Actually Works

What is a VPN and Why Do We Need It?

A Virtual Private Network (VPN) creates an encrypted tunnel between two or more devices over a public network like the internet. The primary goal is to provide the same security properties as a private network: confidentiality (encryption), integrity (no tampering), and authentication (verifying identities). Without a VPN, data sent over the internet is visible to anyone who can intercept it—ISPs, Wi-Fi eavesdroppers, or malicious actors on the same network. VPNs are used for remote employees accessing corporate resources, connecting branch offices, or protecting personal privacy.

How VPNs Work Mechanically

1.

Tunneling: A VPN encapsulates data packets inside another packet. The original packet is encrypted and placed inside a new packet with a different header. This new packet is routed over the internet to the VPN gateway, which strips the outer header and decrypts the inner packet, forwarding it to the destination.

2.

Encryption: The data payload is encrypted using symmetric key algorithms (e.g., AES-256). The encryption key is exchanged securely during the handshake using asymmetric cryptography (e.g., RSA or Diffie-Hellman).

3.

Authentication: Both ends must prove their identity. This can be done via pre-shared keys (PSK), digital certificates (X.509), or user credentials (username/password with MFA).

4.

Integrity: A hash (e.g., HMAC-SHA256) is appended to ensure data hasn't been modified in transit.

VPN Types

#### Site-to-Site VPN - Connects entire networks (e.g., branch office to HQ). - Typically uses IPsec or GRE over IPsec. - Always-on, no user intervention. - Exam tip: Used for constant connectivity between offices.

#### Remote Access VPN - Connects individual users to a corporate network. - Can be client-based (software installed) or clientless (browser-based). - Common protocols: IPsec, SSL/TLS (OpenVPN, WireGuard). - Exam tip: Often used with split tunneling to allow internet access without going through the VPN.

#### Clientless VPN - Accessed via a web browser using SSL/TLS. - No client software needed; uses HTTPS to proxy web applications. - Limited to web-based resources; not for full network access. - Common in BYOD scenarios.

#### Full Tunnel vs. Split Tunnel - Full Tunnel: All traffic (including internet-bound) goes through the VPN. More secure but uses more bandwidth and may increase latency. - Split Tunnel: Only traffic destined for the corporate network goes through the VPN; internet traffic goes directly. Reduces load but may expose corporate data if the internet connection is compromised.

VPN Protocols

#### IPsec (Internet Protocol Security) - Suite of protocols operating at Layer 3. - Two modes: Transport (only payload encrypted) and Tunnel (entire packet encrypted). - Two security protocols: AH (Authentication Header) – provides integrity and authentication, no encryption; ESP (Encapsulating Security Payload) – provides encryption, integrity, and authentication. - Key exchange: IKE (Internet Key Exchange) uses UDP port 500 and 4500 (for NAT traversal). - Exam tip: IPsec is often used for site-to-site VPNs. Know that AH does not encrypt, only authenticates.

#### SSL/TLS VPN - Uses SSL/TLS (typically TLS 1.2 or 1.3) to encrypt traffic. - Operates at Layer 4/5; can be clientless (HTTPS) or client-based (OpenVPN). - Port 443 (HTTPS) – easy to bypass firewalls. - Common for remote access VPNs. - Exam tip: SSL VPNs are easier to deploy and maintain than IPsec for remote users.

#### L2TP (Layer 2 Tunneling Protocol) - Often combined with IPsec for encryption (L2TP/IPsec). - L2TP itself provides no encryption; it only tunnels Layer 2 frames. - Uses UDP port 1701. - Native support in many OSes but less common today due to performance issues.

#### PPTP (Point-to-Point Tunneling Protocol) - Older protocol, uses MPPE for encryption. - Vulnerable to attacks (e.g., MS-CHAP v2 weaknesses). - Exam tip: Avoid PPTP; it is considered insecure for modern use.

#### WireGuard - Modern, lightweight protocol using state-of-the-art cryptography (Curve25519, ChaCha20, Poly1305). - Simpler than IPsec; faster performance. - Uses UDP port 51820. - Increasingly adopted; may appear in exam as a modern alternative.

How Attackers Exploit VPNs

Man-in-the-Middle (MITM): If VPN authentication is weak (e.g., PSK instead of certificates), attackers can intercept the key exchange.

VPN Hijacking: Exploiting vulnerabilities in VPN client software (e.g., buffer overflows) to take over the session.

Log4j exploits: Some VPN appliances were vulnerable to Log4j (CVE-2021-44228).

Split tunneling risks: If split tunneling is misconfigured, traffic to malicious sites can bypass the VPN, leading to data exfiltration.

Defensive Deployments

Always use strong authentication: certificates or MFA.

Enforce full tunnel for high-security environments.

Regularly patch VPN servers and clients.

Implement logging and monitoring for unusual traffic patterns (e.g., multiple failed authentications).

Use VPN concentrators that can handle thousands of simultaneous connections.

Real Command Examples

#### IPsec Configuration (strongSwan on Linux)

conn myvpn
    left=192.168.1.1
    leftsubnet=10.0.0.0/24
    right=203.0.113.5
    rightsubnet=10.0.1.0/24
    keyexchange=ikev2
    authby=secret
    auto=start

#### OpenVPN Client Connection

openvpn --config client.ovpn

#### Check IPsec Status

ipsec status

Walk-Through

1

User Initiates VPN Connection

The user launches VPN client software (e.g., OpenVPN, Cisco AnyConnect) or accesses a clientless VPN portal via browser. The client reads configuration parameters: server address, authentication method (certificate, username/password), and encryption settings. Logs show 'Initiating connection to VPN server 203.0.113.10'. The client begins the handshake by sending a request to the server's IP address on the appropriate port (e.g., UDP 500 for IPsec, UDP 1194 for OpenVPN).

2

Authentication and Key Exchange

The VPN server and client authenticate each other. For IPsec, IKE phase 1 establishes a secure channel using Diffie-Hellman key exchange and authenticates using pre-shared keys or certificates. For SSL VPN, the TLS handshake occurs: server presents its certificate, client verifies it, and session keys are generated. Logs show 'IKE_SA established' or 'TLS handshake complete'. If authentication fails, the connection is dropped. MFA may be prompted.

3

Tunnel Establishment

After authentication, a secure tunnel is created. For IPsec, IKE phase 2 establishes IPsec SAs (Security Associations) for data encryption. For SSL VPN, the TLS session is used. The client receives a virtual IP address from the VPN server (e.g., 10.8.0.2). Logs show 'IPsec SA established' or 'Tunnel up'. The client's routing table is updated to send traffic through the tunnel.

4

Data Transmission Through Tunnel

User sends data (e.g., an HTTP request to an internal server). The VPN client encrypts the packet, wraps it in a new packet with the VPN server's IP as destination, and sends it over the internet. The VPN server decrypts the packet and forwards it to the internal network. Response follows the reverse path. Logs show encrypted packets flowing; tools like Wireshark show only encrypted payloads (ESP or TLS).

5

Tunnel Termination and Cleanup

When the user disconnects or the session times out, the VPN client sends a delete notification. The VPN server removes the SAs and releases the virtual IP. Logs show 'IPsec SA deleted' or 'Tunnel down'. If the connection drops unexpectedly, the client may attempt to reconnect. Persistent tunnels (site-to-site) may remain up indefinitely with keepalives.

What This Looks Like on the Job

Scenario 1: Remote Access VPN for Teleworkers

A company uses OpenVPN for remote employees. An analyst sees multiple failed authentication attempts from a single IP address in the VPN logs. The analyst checks the server logs and notices the attempts are using common usernames (admin, root). This indicates a brute-force attack. The correct response is to implement rate limiting, enforce MFA, and block the offending IP via firewall. A common mistake is to ignore the logs or assume it's a misconfigured client.

Scenario 2: Site-to-Site IPsec VPN Between Offices

A network engineer configures an IPsec VPN between HQ and a branch office. After deployment, users report intermittent connectivity. The engineer checks the VPN logs and sees 'IKE SA expired' messages. The issue is that the IKE lifetime is set too short (e.g., 1 hour) causing rekeying delays. The correct fix is to increase the lifetime to 8 hours and ensure both sides have matching settings. A common mistake is to assume the issue is with the physical link and replace hardware unnecessarily.

Scenario 3: Clientless SSL VPN for Third-Party Access

A company provides clientless VPN access to a vendor for a specific web application. The vendor complains they cannot access the app. The analyst checks the VPN portal and sees the vendor's session is established but the application is not listed. The issue is that the VPN gateway's proxy rules are misconfigured; the application URL is not included. The correct response is to update the proxy rules on the VPN appliance. A common mistake is to blame the vendor's browser settings.

How SY0-701 Actually Tests This

What SY0-701 Tests on VPNs

Objective 3.3: Implement secure network architecture concepts. Sub-objectives include: VPN types (site-to-site, remote access, clientless), protocols (IPsec, SSL/TLS, L2TP, PPTP), and concepts (full tunnel vs. split tunnel, always-on VPN).

You must be able to select the appropriate VPN type for a given scenario. For example: 'A company needs to connect two branch offices securely over the internet. Which VPN type?' Answer: Site-to-site VPN using IPsec.

Know the differences between IPsec modes: Transport vs. Tunnel. Transport encrypts only payload; Tunnel encrypts entire packet.

Understand that PPTP is obsolete and insecure; avoid it.

Know that SSL VPNs are often used for remote access because they are easier to configure and bypass firewalls (port 443).

Common Wrong Answers and Why

1.

Choosing PPTP for a secure connection: Candidates think PPTP is fine because it's built into Windows. Reality: PPTP has known vulnerabilities (MS-CHAP v2 can be cracked). Correct answer: IPsec or SSL VPN.

2.

Selecting AH when encryption is needed: AH provides authentication but no encryption. Candidates confuse AH with ESP. If the question mentions 'encryption', choose ESP.

3.

Confusing site-to-site with remote access: Site-to-site connects networks; remote access connects individual users. A question about 'connecting a teleworker' should trigger remote access VPN.

4.

Thinking split tunnel is always more secure: Split tunnel reduces VPN load but can expose corporate data if the internet connection is compromised. Full tunnel is more secure but uses more bandwidth.

Specific Terms and Acronyms

IPsec, IKE, AH, ESP, SA, L2TP, PPTP, SSL/TLS, OpenVPN, WireGuard, full tunnel, split tunnel, clientless VPN, always-on VPN.

Ports: UDP 500 (IKE), UDP 4500 (NAT-T), UDP 1701 (L2TP), TCP 443 (SSL VPN), UDP 1194 (OpenVPN), UDP 51820 (WireGuard).

Common Trick Questions

'Which protocol provides encryption and authentication?' AH vs. ESP: ESP provides both; AH only authentication.

'What is the difference between transport and tunnel mode?' Transport mode encrypts only payload; tunnel mode encrypts entire packet. Tunnel mode is used for VPNs.

'Which VPN type does not require client software?' Clientless VPN (SSL VPN).

Decision Rule for Scenario Questions

1.

Identify if the connection is between networks (site-to-site) or individual users (remote access).

2.

Determine if encryption is required (if yes, avoid AH and L2TP alone).

3.

Check if the user needs full network access or just web apps (clientless vs. client-based).

4.

Consider if the traffic should be fully tunneled or split. If security is paramount, choose full tunnel.

Key Takeaways

VPNs provide confidentiality, integrity, and authentication through encryption and tunneling.

IPsec has two modes: Transport (encrypts payload only) and Tunnel (encrypts entire packet).

AH provides authentication and integrity but NO encryption; ESP provides encryption, authentication, and integrity.

PPTP is deprecated and insecure; avoid it on the exam.

L2TP must be paired with IPsec for encryption.

SSL VPNs use port 443 and are ideal for remote access and clientless scenarios.

Full tunnel sends all traffic through the VPN; split tunnel sends only corporate traffic.

WireGuard is a modern, lightweight VPN protocol using ChaCha20 and Curve25519.

Site-to-site VPNs connect networks; remote access VPNs connect individual users.

Always-on VPN ensures the VPN connection is persistent and automatically reconnects.

Easy to Mix Up

These come up on the exam all the time. Here's how to tell them apart.

IPsec VPN

Operates at Layer 3 (Network layer).

Requires client software (or native OS support).

Uses IKE for key exchange (UDP 500/4500).

Can be complex to configure (multiple SAs).

Commonly used for site-to-site VPNs.

SSL VPN

Operates at Layer 4/5 (Transport/Application layer).

Can be clientless (browser-based) or client-based.

Uses TLS handshake (TCP 443).

Easier to deploy and maintain.

Commonly used for remote access VPNs.

Watch Out for These

Mistake

PPTP is still secure enough for general use.

Correct

PPTP uses MPPE encryption with MS-CHAP v2, which is vulnerable to brute-force attacks (e.g., using asleap). NIST and Microsoft recommend against its use. Modern VPNs should use IPsec or SSL/TLS.

Mistake

AH provides encryption.

Correct

AH (Authentication Header) provides integrity and authentication but does not encrypt data. ESP (Encapsulating Security Payload) provides encryption. The exam tests this distinction.

Mistake

Split tunneling is always more secure than full tunneling.

Correct

Split tunneling reduces the attack surface on the VPN server and improves performance, but it can allow malware on the user's device to access corporate resources if the internet connection is compromised. Full tunneling is more secure for sensitive data.

Mistake

L2TP alone provides encryption.

Correct

L2TP does not provide encryption; it only tunnels Layer 2 frames. Encryption is added by combining L2TP with IPsec (L2TP/IPsec). The exam expects you to know L2TP is not secure by itself.

Mistake

Clientless VPN provides full network access.

Correct

Clientless VPN (SSL VPN) only provides access to web-based applications via a browser. It cannot tunnel non-web traffic like file shares or RDP unless additional components are used.

Frequently Asked Questions

What is the difference between site-to-site VPN and remote access VPN?

A site-to-site VPN connects two or more entire networks (e.g., branch office to HQ) using VPN gateways. It is always on and requires no user intervention. A remote access VPN connects individual users (e.g., teleworkers) to a corporate network, typically using client software or a clientless browser. The exam expects you to choose the correct type based on the scenario: networks vs. users.

Which VPN protocol should I use for maximum security?

For maximum security, use IPsec with IKEv2 and strong encryption (AES-256) or WireGuard. IPsec is widely supported and has been vetted over decades. WireGuard uses modern cryptography and is simpler but newer. Avoid PPTP and L2TP alone. SSL VPNs (OpenVPN) are also secure if configured properly. The exam focuses on IPsec and SSL VPNs.

What is the difference between full tunnel and split tunnel?

In a full tunnel, all internet traffic from the user goes through the VPN, ensuring all traffic is encrypted and subject to corporate security policies. In a split tunnel, only traffic destined for the corporate network goes through the VPN; other traffic goes directly to the internet. Full tunnel is more secure but uses more bandwidth; split tunnel improves performance but may expose corporate data if the user's internet connection is compromised.

What is a clientless VPN?

A clientless VPN allows users to access corporate resources using only a web browser, without installing client software. It typically uses SSL/TLS to encrypt the connection and proxies web applications. It is limited to web-based resources and cannot tunnel non-HTTP traffic. Common in BYOD scenarios where installing software is not allowed.

What ports does IPsec use?

IPsec uses UDP port 500 for IKE (Internet Key Exchange) and UDP port 4500 for NAT traversal (IPsec NAT-T). ESP (protocol 50) and AH (protocol 51) are IP protocols, not UDP/TCP. For the exam, remember that IKE uses UDP 500 and 4500.

Is L2TP secure?

L2TP by itself provides no encryption; it only tunnels data. It is often combined with IPsec (L2TP/IPsec) to add encryption. L2TP/IPsec is considered secure but is less common today due to performance overhead. The exam expects you to know that L2TP alone is not secure.

What is the difference between transport mode and tunnel mode in IPsec?

In transport mode, only the IP payload is encrypted; the original IP header remains intact. It is used for end-to-end communication (e.g., between two hosts). In tunnel mode, the entire IP packet is encrypted and encapsulated in a new packet with a new IP header. It is used for VPNs (gateway-to-gateway or host-to-gateway). The exam often tests this distinction.

Terms Worth Knowing

Ready to put this to the test?

You've just covered VPN Types and Protocols — now see how well it sticks with free SY0-701 practice questions. Full explanations included, no account needed.

Done with this chapter?