Fatskills
Practice. Master. Repeat.
Study Guide: Principles of Information Security: VPN, IPSec, and Secure Remote Access
Source: https://www.fatskills.com/information-security/chapter/information-security-vpn-ipsec-and-secure-remote-access

Principles of Information Security: VPN, IPSec, and Secure Remote Access

By Fatskills Exam Guides Team — the exam nerds behind 28,500+ quizzes and 2.1M practice questions across 500+ global exams.

⏱️ ~7 min read

VPN, IPSec, and Secure Remote Access


VPN, IPSec, and Secure Remote Access – Exam-Ready Study Guide


What This Is

A Virtual Private Network (VPN) creates an encrypted tunnel over untrusted networks (like the internet), allowing remote users to securely access corporate resources. IPsec (Internet Protocol Security) is a suite of protocols that authenticates and encrypts IP packets, ensuring confidentiality and integrity. Secure remote access is critical because 80% of data breaches involve remote access vulnerabilities (Verizon DBIR 2023). Example: In 2021, the Colonial Pipeline ransomware attack exploited a legacy VPN with a compromised password, leading to a $4.4M ransom payment and fuel shortages across the U.S. East Coast.


Key Terms & Concepts

  • VPN (Virtual Private Network): A secure, encrypted connection between a remote user and a private network over the internet. Used for remote work, site-to-site connectivity, and bypassing geo-restrictions.
  • Types: Remote-access (user-to-LAN), Site-to-site (LAN-to-LAN), SSL/TLS VPN (browser-based).
  • Tools: OpenVPN, Cisco AnyConnect, WireGuard, NordVPN (consumer).

  • IPsec (Internet Protocol Security): A framework of protocols (AH, ESP, IKE) that secures IP communications by authenticating and encrypting each packet.

  • Modes: Transport (encrypts payload only) vs. Tunnel (encrypts entire packet).
  • Standards: NIST SP 800-77 (IPsec guidelines), RFC 4301-4309.

  • IKE (Internet Key Exchange): A protocol (part of IPsec) that negotiates security associations (SAs) and cryptographic keys.

  • Versions: IKEv1 (older, less secure) vs. IKEv2 (faster, supports mobility).
  • Port: UDP 500 (IKE), UDP 4500 (NAT-Traversal).

  • ESP (Encapsulating Security Payload): IPsec protocol that provides confidentiality (encryption), integrity (HMAC), and optional authentication.

  • Protocol ID: 50 (IP header).
  • Example: Encrypts data in transit (e.g., file transfers, VoIP).

  • AH (Authentication Header): IPsec protocol that provides integrity and authentication (but no encryption).

  • Protocol ID: 51 (IP header).
  • Use Case: When encryption isn’t needed (e.g., internal network integrity checks).

  • SA (Security Association): A one-way "contract" between two IPsec peers defining encryption keys, algorithms, and lifetime.

  • Managed by: IKE.
  • Example: A VPN gateway and a remote user agree on AES-256 for encryption.

  • Split Tunneling: A VPN configuration where only traffic destined for the corporate network goes through the VPN, while other traffic (e.g., Netflix) uses the local internet.

  • Risk: Malware on a user’s home network can pivot into the corporate network.
  • Mitigation: Disable split tunneling unless required (NIST SP 800-46).

  • SSL/TLS VPN: A VPN that uses HTTPS (TCP 443) for secure remote access, often via a web browser (e.g., Citrix Gateway).

  • Pros: No client software needed, works behind firewalls.
  • Cons: Less secure than IPsec for full network access.

  • Zero Trust Network Access (ZTNA): A modern alternative to VPNs where access is granted per-application (not full network access) based on identity and context (e.g., device posture).

  • Frameworks: NIST SP 800-207, Google’s BeyondCorp.
  • Tools: Zscaler Private Access, Cloudflare Access.

  • Remote Desktop Protocol (RDP): Microsoft’s protocol for remote access to Windows machines (TCP 3389).

  • Risk: Brute-force attacks (e.g., BlueKeep vulnerability, CVE-2019-0708).
  • Mitigation: Disable RDP if unused, use VPN + MFA, or switch to ZTNA.

  • MFA (Multi-Factor Authentication): Requires two or more authentication factors (e.g., password + OTP) to access VPNs.

  • Standards: NIST SP 800-63B (Digital Identity Guidelines).
  • Example: Duo Security, Google Authenticator.

  • Perfect Forward Secrecy (PFS): A property of key exchange protocols (e.g., Diffie-Hellman) where compromising a long-term key doesn’t compromise past sessions.

  • Used in: IKEv2, TLS 1.3.
  • Why it matters: Prevents attackers from decrypting past traffic if they steal a private key.


Step-by-Step / Process Flow


How to Secure Remote Access (VPN/IPsec Implementation)

  1. Assess Requirements
  2. Determine if users need full network access (IPsec VPN) or per-application access (ZTNA/SSL VPN).
  3. Identify compliance needs (e.g., HIPAA, PCI DSS, GDPR).

  4. Choose VPN Type & Protocol

  5. Remote Access: IPsec (IKEv2) or SSL VPN (e.g., OpenVPN).
  6. Site-to-Site: IPsec (Tunnel Mode) between offices.
  7. Avoid: PPTP (insecure), IKEv1 (vulnerable to DoS).

  8. Configure IPsec (Example: IKEv2 with ESP)

  9. Phase 1 (IKE SA): Negotiate encryption (AES-256), integrity (SHA-256), DH Group (2048-bit), and authentication (PSK or certificates).
  10. Phase 2 (IPsec SA): Define ESP settings (AES-256-GCM for encryption + integrity), lifetime (e.g., 1 hour).
  11. Tools: StrongSwan (Linux), Cisco ASA, pfSense.

  12. Enforce Authentication & Access Controls

  13. Require MFA (e.g., TOTP, hardware tokens).
  14. Use certificate-based authentication (more secure than passwords).
  15. Implement network segmentation (e.g., VLANs, firewalls) to limit lateral movement.

  16. Monitor & Log Traffic

  17. Enable IPsec logging (e.g., ike-scan, Wireshark).
  18. Integrate with SIEM (e.g., Splunk, ELK Stack) to detect anomalies (e.g., brute-force attacks).
  19. NIST Guidance: SP 800-92 (Log Management).

  20. Test & Harden

  21. Penetration Test: Use Nmap (nmap -sU -p 500,4500 <VPN_IP>) to check for open ports.
  22. Vulnerability Scan: Run OpenVAS or Nessus to detect misconfigurations.
  23. Disable Weak Algorithms: No DES, 3DES, or SHA-1.

Common Mistakes

Mistake Correction
Using PPTP for VPNs PPTP is broken (MS-CHAPv2 can be cracked in seconds). Use IKEv2/IPsec or WireGuard instead.
Not enforcing MFA on VPNs VPNs are a top attack vector (e.g., Colonial Pipeline). Always require MFA (NIST SP 800-63B).
Allowing split tunneling by default Split tunneling can bypass corporate security controls. Disable it unless explicitly required.
Using weak encryption (e.g., DES, SHA-1) Modern attacks (e.g., Sweet32) can break weak ciphers. Use AES-256-GCM + SHA-256.
Not rotating VPN credentials Static passwords/certificates increase risk. Rotate PSKs and certificates periodically.
Ignoring IKEv1 vulnerabilities IKEv1 is vulnerable to DoS and MITM attacks. Migrate to IKEv2.


Certification Exam Tips


CISSP

  • Management vs. Technical: CISSP focuses on risk management (e.g., "Which VPN type best aligns with zero-trust principles?") rather than deep technical configs.
  • IPsec Modes: Know the difference between Transport Mode (host-to-host) and Tunnel Mode (gateway-to-gateway).
  • Key Management: Understand IKE phases (Phase 1 = SA negotiation, Phase 2 = IPsec SA).
  • ⚠️ Trap Question: "Which IPsec protocol provides encryption?" → ESP (AH only provides integrity).

Security+

  • Port Numbers: Memorize UDP 500 (IKE), UDP 4500 (NAT-T), TCP 443 (SSL VPN).
  • VPN Types: Know site-to-site vs. remote-access and when to use SSL VPN (browser-based) vs. IPsec.
  • Split Tunneling Risks: Expect questions on why split tunneling is dangerous (malware pivoting).

CEH

  • VPN Attacks: Be familiar with VPN fingerprinting (ike-scan), brute-forcing (Hydra), and MITM attacks (e.g., SSL stripping).
  • Bypassing VPNs: Know how attackers use DNS tunneling or Tor to evade VPN restrictions.
  • ⚠️ Trap Question: "Which tool can crack PPTP passwords?" → ChapCrack (not John the Ripper).


Quick Check Questions

  1. A company wants to allow remote employees to access internal file servers securely. The solution must support full network access and work on both Windows and Linux. Which VPN protocol is the BEST choice?
  2. A) PPTP
  3. B) SSL VPN
  4. C) IKEv2/IPsec
  5. D) L2TP
    Answer: C) IKEv2/IPsec
    Explanation: IKEv2/IPsec provides full network access, strong encryption, and cross-platform support (unlike PPTP, which is insecure, or SSL VPN, which is browser-based).*

  6. During a security audit, you discover that a VPN gateway is using IKEv1 with 3DES encryption. What is the MOST significant risk?

  7. A) Lack of Perfect Forward Secrecy
  8. B) Vulnerability to brute-force attacks
  9. C) Inability to traverse NAT
  10. D) Weak integrity protection
    Answer: B) Vulnerability to brute-force attacks
    Explanation: 3DES is vulnerable to Sweet32 attacks (collision-based brute force), making it a critical risk. IKEv1 also lacks PFS, but the immediate threat is the weak cipher.*

  11. An organization wants to replace its VPN with a solution that grants access only to specific applications (not the entire network) and verifies device posture before allowing access. Which technology BEST fits this requirement?

  12. A) IPsec VPN
  13. B) SSL VPN
  14. C) Zero Trust Network Access (ZTNA)
  15. D) Remote Desktop Protocol (RDP)
    Answer: C) Zero Trust Network Access (ZTNA)
    Explanation: ZTNA provides per-application access and device posture checks, aligning with zero-trust principles (NIST SP 800-207).*

Last-Minute Cram Sheet

  1. VPN Types:
  2. Remote-Access VPN = User-to-LAN (e.g., employee working from home).
  3. Site-to-Site VPN = LAN-to-LAN (e.g., branch office to HQ).
  4. SSL VPN = Browser-based (TCP 443), no client needed.

  5. IPsec Modes:

  6. Transport Mode = Encrypts payload only (host-to-host).
  7. Tunnel Mode = Encrypts entire packet (gateway-to-gateway).

  8. IPsec Protocols:

  9. ESP (50) = Encryption + Integrity (✅ Confidentiality).
  10. AH (51) = Integrity only (❌ No encryption).

  11. IKE Phases:

  12. Phase 1 (IKE SA) = Negotiate encryption, DH, authentication (UDP 500).
  13. Phase 2 (IPsec SA) = Define ESP/AH settings (UDP 4500 for NAT-T).

  14. Ports to Memorize:

  15. IKE: UDP 500
  16. NAT-Traversal: UDP 4500
  17. SSL VPN: TCP 443
  18. RDP: TCP 3389 (⚠️ Often brute-forced)

  19. Weak Algorithms to Avoid:

  20. Encryption: DES, 3DES, RC4.
  21. Hashing: MD5, SHA-1.
  22. DH Groups: < 2048-bit.

  23. Perfect Forward Secrecy (PFS):

  24. Uses ephemeral keys (e.g., ECDHE) so past sessions can’t be decrypted if a long-term key is compromised.

  25. Split Tunneling Risk:

  26. Allows malware on a home network to pivot into the corporate network (disable unless required).

  27. Zero Trust vs. VPN:

  28. VPN = Full network access (trusts the user).
  29. ZTNA = Per-application access (never trusts, always verifies).

  30. ⚠️ Exam Trap:


    • "Which IPsec protocol provides encryption?"ESP (AH does not encrypt!).


ADVERTISEMENT