All exams← All CompTIA Network+ Practice notes

Network security: CompTIA Network+ Practice revision notes

Revision notes

Network security: the big picture

Network+ tests defence in depth - layering controls so no single failure exposes the network. Expect questions on device placement, wireless security, and remote access.

Firewalls and segmentation

  • A firewall filters traffic by rules: source/destination IP, port, protocol.
  • Stateful firewalls track connection state (the session); stateless ones inspect each packet alone.
  • A DMZ (demilitarised zone) sits between two firewalls and hosts public-facing servers (web, mail) so a breach there does not reach the internal LAN.
  • VLANs segment broadcast domains logically; combine with ACLs to stop lateral movement between segments.
  • The screened subnet is another name for a DMZ - expect both terms.

AAA and access control

  • AAA = Authentication (who you are), Authorization (what you can do), Accounting (logging what you did).
  • RADIUS uses UDP (ports 1812/1813) and encrypts only the password; TACACS+ uses TCP port 49 and encrypts the whole packet - a classic exam trap.
  • 802.1X provides port-based network access control, often paired with RADIUS for wired/wireless authentication (EAP).
  • Least privilege: give users the minimum access needed, nothing more.

Wireless security

  • WPA3 is the current standard: uses SAE (Simultaneous Authentication of Equals) instead of the old WPA2 PSK 4-way handshake, closing the KRACK vulnerability.
  • WPA2 uses AES-CCMP; avoid WEP and WPA(1)/TKIP entirely - both are deprecated and insecure.
  • Enterprise wireless (WPA2/3-Enterprise) authenticates each user via 802.1X/RADIUS rather than one shared key.

VPNs and remote access

  • IPSec provides site-to-site or client VPNs using two modes: Transport (payload only) and Tunnel (whole packet, used for site-to-site).
  • IPSec has two core protocols: AH (Authentication Header - integrity only, no encryption) and ESP (Encapsulating Security Payload - encryption and integrity).
  • SSL/TLS VPNs (often via a web portal) need no special client software - simpler for remote users.

Threats and mitigations

  • Know the difference: a vulnerability is a weakness, a threat is what could exploit it, and risk is the likelihood x impact.
  • On-path (man-in-the-middle) attacks intercept traffic between two parties - mitigate with encryption and certificate checks.
  • DoS floods a target; DDoS uses many distributed sources - mitigate with rate limiting and traffic scrubbing.
  • Social engineering (phishing, tailgating) bypasses technical controls entirely - user training is the real defence.

Common mistakes

  • Mixing up RADIUS (UDP, partial encryption) and TACACS+ (TCP, full encryption).
  • Forgetting WPA3 uses SAE, not PSK, for its key exchange.
  • Confusing AH (no encryption) with ESP (encrypts) in IPSec.

Key facts

Flashcards

What ports does RADIUS use and what does it encrypt?
UDP 1812/1813; encrypts only the password, not the whole packet.
tap to reveal
What port does TACACS+ use and what does it encrypt?
TCP port 49; encrypts the entire packet payload.
tap to reveal
What key exchange does WPA3 use instead of WPA2's PSK handshake?
SAE - Simultaneous Authentication of Equals.
tap to reveal
Which wireless encryption method does WPA2 use?
AES-CCMP.
tap to reveal
What does AAA stand for in network security?
Authentication, Authorization, Accounting.
tap to reveal
What is the difference between IPSec Transport and Tunnel mode?
Transport encrypts only the payload (host-to-host); Tunnel encrypts the whole packet (site-to-site).
tap to reveal
What does IPSec AH provide, and what does ESP add?
AH gives integrity only, no encryption. ESP adds encryption plus integrity.
tap to reveal
What is a DMZ and why use one?
A screened subnet between two firewalls that hosts public-facing servers, isolating them from the internal LAN if breached.
tap to reveal
What does 802.1X provide?
Port-based network access control, often paired with RADIUS using EAP.
tap to reveal
How does a DoS attack differ from a DDoS attack?
DoS comes from a single source; DDoS comes from many distributed sources.
tap to reveal
How is risk defined relative to threat and vulnerability?
Risk = likelihood x impact; a vulnerability is a weakness, a threat is what could exploit it.
tap to reveal
What is the difference between a stateful and stateless firewall?
Stateful tracks the connection session; stateless inspects each packet independently with no memory of prior packets.
tap to reveal
What is an on-path (man-in-the-middle) attack and how is it mitigated?
Interception of traffic between two parties; mitigated with encryption and certificate validation.
tap to reveal
Why are WEP and WPA/TKIP considered insecure today?
Both are deprecated with known cryptographic weaknesses; use WPA2 (AES-CCMP) or WPA3 (SAE) instead.
tap to reveal
What is the principle of least privilege?
Grant users only the minimum access required to do their job, nothing more.
tap to reveal
Practice questions

Network security: 5 practice questions

Q1. In network security, which principle of the CIA triad is primarily addressed by encrypting data both in transit and at rest?
  • A.  Confidentiality
  • B.  Non-repudiation
  • C.  Availability
  • D.  Integrity
Show answer & explanation
✓ Answer: A. Confidentiality
Confidentiality ensures only authorized parties can read data; encryption keeps data unreadable to anyone without the key. Integrity uses hashing/checksums to detect tampering rather than encryption alone, and availability concerns uptime rather than secrecy.
Q2. A network administrator configures a switch so that after a user's identity is confirmed, the system checks which specific commands that user is permitted to run. Which part of the AAA framework does this describe?
  • A.  Auditing
  • B.  Accounting
  • C.  Authentication
  • D.  Authorization
Show answer & explanation
✓ Answer: D. Authorization
Authorization determines what an already-authenticated user is allowed to do. Authentication only verifies identity, and accounting logs what was actually done rather than deciding permissions in advance.
Q3. Which statement correctly distinguishes RADIUS from TACACS+ in an AAA deployment?
  • A.  RADIUS is Cisco-proprietary while TACACS+ is an open IETF standard
  • B.  TACACS+ uses TCP port 49 and encrypts the full packet body, while RADIUS uses UDP and encrypts only the password field
  • C.  RADIUS encrypts the entire packet payload while TACACS+ encrypts only the password
  • D.  TACACS+ combines authentication and authorization into a single, non-separable step
Show answer & explanation
✓ Answer: B. TACACS+ uses TCP port 49 and encrypts the full packet body, while RADIUS uses UDP and encrypts only the password field
TACACS+ runs over TCP port 49 and encrypts the entire packet, and it separates authentication, authorization, and accounting into distinct steps. RADIUS uses UDP ports 1812/1813 and only encrypts the password in the access-request packet, leaving the rest in cleartext.
Q4. What is the primary function of IEEE 802.1X on a wired or wireless network?
  • A.  It assigns IP addresses dynamically to authenticated devices
  • B.  It filters traffic based on source and destination MAC addresses
  • C.  It encrypts all traffic on the local segment using AES-256
  • D.  It provides port-based network access control that requires devices to authenticate before gaining network access
Show answer & explanation
✓ Answer: D. It provides port-based network access control that requires devices to authenticate before gaining network access
802.1X is a port-based access control standard that blocks a switch port or wireless association until the connecting device authenticates via an authenticator to an authentication server, typically RADIUS. It does not itself handle encryption or IP addressing.
Q5. A company wants to deploy 802.1X wireless authentication using digital certificates on both the client and the RADIUS server, avoiding any password exchange over the air. Which EAP method should they choose?
  • A.  EAP-MD5
  • B.  EAP-TLS
  • C.  LEAP
  • D.  PEAP-MSCHAPv2
Show answer & explanation
✓ Answer: B. EAP-TLS
EAP-TLS requires mutual certificate-based authentication for both client and server, eliminating password transmission entirely and providing the strongest EAP method. PEAP-MSCHAPv2 only requires a server-side certificate and still tunnels a password-based exchange, while EAP-MD5 and LEAP are weak, outdated methods vulnerable to offline attacks.
Test yourself
See the CompTIA Network+ Practice page

More CompTIA Network+ Practice topics