🚧 Under construction — VoTechWorks is being built. A free tech program — complimentary, as our commitment to get America working.
voTechWorksGrade 13 · a vocational technology learning center, by urbanicity
newSchoolWorks.com › VoTechWorks › Technology & Design › Cybersecurity › Security Operations: Monitoring, Defense, and Controls › Lesson 6
TEC-CYBE44-03 · Lesson 6 · 15 clock hours · demo

Network Security Architecture: Firewalls, VLANs, and DMZ Design

Objective. Students will describe how firewalls, VLANs, and DMZ architecture reduce the attack surface of a network and configure basic firewall rules on a lab firewall appliance or software equivalent.

⚠ Pending professional review

This lesson, its worked examples and its practice questions has not yet been verified by an industry-certified professional or by a certification or approval body. It is a study draft and may contain errors. Do not use it as instructions for work on a job site or on live equipment. Always follow your instructor, your supervising professional, and current official references and regulations.

VoTechWorks program approval and accreditation are still in progress. Credentials are issued only by the certifying bodies named in each program, after their own exams.

What Is Network Security Architecture?

Network security architecture is the deliberate arrangement of hardware, software, and policies to protect data as it moves through a network. Three foundational tools in that arrangement are firewalls, VLANs, and DMZ design. Together they reduce the attack surface — the total number of paths an attacker could use to reach sensitive resources.

Firewalls: The First Line of Defense

A firewall is a device or software that inspects network traffic and decides whether to allow or block it based on a rule set. A stateful firewall tracks the state of active connections, not just individual packets. This means it can tell the difference between a reply to a legitimate outbound request and an unsolicited inbound connection — blocking the second even if the port would otherwise be open.

Firewall rules are processed in order, top to bottom. The first rule that matches a packet is applied; remaining rules are not evaluated. Most firewalls end their rule set with an implicit deny-all rule, so any traffic not explicitly permitted is dropped. When writing rules, always follow the principle of least privilege: permit only the services that are required and deny everything else.

In a lab environment such as pfSense, rules are applied per interface. A common beginner mistake is applying a rule to the wrong interface direction (inbound vs. outbound). Always confirm which interface a rule applies to and in which direction traffic flows before testing.

VLANs: Segmenting the Internal Network

A Virtual LAN (VLAN) is a logical grouping of network ports that behaves as if those ports are on a separate physical switch, even though they share the same physical hardware. VLANs are defined by 802.1Q tags inserted into Ethernet frames.

VLAN segmentation limits lateral movement. If an attacker compromises a workstation on VLAN 10 (staff desktops), they cannot directly reach servers on VLAN 20 (database servers) without traffic crossing a Layer 3 device — a router or multilayer switch — that applies access control rules. By blocking inter-VLAN routing where it is not needed, you contain threats within a smaller zone.

A trunk port carries traffic for multiple VLANs between switches using 802.1Q tags. An access port carries traffic for a single VLAN and connects to end devices. Misconfigured trunk ports are a common vulnerability; restrict allowed VLANs on every trunk to only those required.

DMZ Design: Protecting Public-Facing Services

A DMZ (demilitarized zone) is a separate network segment that sits between the untrusted internet and the trusted internal LAN. Servers that must be reachable from the internet — such as web servers, mail relays, or DNS servers — are placed in the DMZ.

The classic three-leg DMZ uses a single firewall with three interfaces:

Firewall rules for a DMZ follow a strict pattern:

This design means that if a DMZ server is compromised, the attacker still faces the firewall before reaching internal systems.

Using Nmap to Verify Rules

Nmap is a free, open-source port scanner used in this course to verify that firewall rules work as intended. A basic scan (`nmap -sV <target IP>`) shows open ports and service versions visible from the scanning host. After configuring firewall rules, run an Nmap scan from a host that represents an attacker's position (for example, from outside the firewall) and confirm that only permitted ports appear open. Any port that appears open when it should be blocked indicates a rule error.

Lab safety note: Only run Nmap against systems you own or have explicit written authorization to scan. Unauthorized port scanning may violate the Computer Fraud and Abuse Act and similar laws. In this course, scans are performed only within the isolated lab environment.

Network Diagramming

A clear network diagram communicates your security decisions to colleagues, auditors, and management. Standard practice is to use recognizable symbols for firewalls, switches, routers, and servers. Label each segment with its VLAN ID and IP subnet. Annotate each design decision with a brief rationale — for example, "VLAN 30 isolates IoT devices because their firmware update processes are uncontrolled and represent elevated risk."

Why This Matters for Your Credentials

CompTIA Security+ covers network security concepts including firewall rule design, network segmentation, and DMZ architecture. CompTIA CySA+ extends this to monitoring and detecting anomalies across segmented networks. ISC2 CC includes fundamental network security principles. Understanding how these controls layer together is tested across all three credentials and is a core skill in daily security operations work.

Key terms10

Attack SurfaceThe total set of points on a network or system where an unauthorized user could attempt to enter or extract data; reducing it is a primary goal of security architecture.
Stateful FirewallA firewall that tracks the state of active network connections and uses that context to decide whether to allow or block packets, distinguishing legitimate reply traffic from unsolicited inbound connections.
VLAN (Virtual LAN)A logically defined network segment created on a managed switch using 802.1Q tagging, which isolates traffic between groups of ports as if they were on separate physical switches.
DMZ (Demilitarized Zone)A network segment positioned between the untrusted internet and the trusted internal LAN, used to host public-facing services such as web and mail servers while limiting their access to internal resources.
Trunk PortA switch port configured to carry traffic for multiple VLANs simultaneously using 802.1Q tags, typically used to connect switches to each other or to a router.
Access PortA switch port that carries traffic for a single VLAN and connects to an end device such as a workstation or printer, with no VLAN tagging visible to the device.
Implicit DenyA default rule at the end of a firewall rule set that blocks any traffic not explicitly permitted by a preceding rule; a fundamental principle ensuring that unknown traffic is never accidentally allowed.
Least PrivilegeThe security principle that users, systems, and network segments should be granted only the minimum access rights required to perform their function, reducing the potential damage from compromise.
NmapA free, open-source network scanning tool used to discover hosts, open ports, and running services; commonly used in security work to verify firewall rules and identify exposed services.
Inter-VLAN RoutingThe process of forwarding traffic between different VLANs through a Layer 3 device such as a router or multilayer switch; controlling or blocking this routing is how VLAN segmentation is enforced.
In class: Follow an instructor-led demonstration of VLAN configuration on a managed switch simulator or packet tracer environment, then replicate the configuration independently and verify inter-VLAN routing is blocked where intended. · Configure a stateful firewall rule set on pfSense or an equivalent lab firewall to permit only specified services to the DMZ and deny all else, then test the rules using port scan results. · Draw a network diagram for a small business showing the placement of the firewall, DMZ, internal LAN, and VLAN segmentation, explaining the security rationale for each design decision in a written annotation.
Materials: pfSense VM or equivalent firewall software, Cisco Packet Tracer or GNS3 for VLAN simulation, Nmap for port scanning, network diagramming tool.
Check: Firewall rule set correctly blocks unauthorized traffic as verified by Nmap scan output; VLAN configuration prevents inter-VLAN communication as specified; network diagram is architecturally sound; instructor evaluates against a rubric with 75% pass mark.

Practice check8

Answer each question, then check it. Nothing is recorded; this is your own practice.

Network Security (Security+)
1. A stateful firewall differs from a basic packet-filtering firewall primarily because it:
Network Security (Security+)
2. A network administrator wants to ensure that workstations on VLAN 10 cannot communicate directly with database servers on VLAN 20 without passing through a firewall. Which configuration enforces this?
Security Architecture (Security+, ISC2 CC)
3. A company hosts a public web server. According to DMZ design best practices, which traffic rule should be applied to protect the internal LAN?
Security Operations (Security+, CySA+)
4. After configuring pfSense to allow only TCP port 443 inbound to a DMZ web server, a security technician runs an Nmap scan from an external host and sees that TCP port 80 also appears open. What is the most likely cause?
Network Security (Security+)
5. Which IEEE standard defines the VLAN tagging method used on trunk ports?
Network Security (Security+, CySA+)
6. A security analyst is reviewing a network diagram and notices that a trunk port between two switches is configured to allow all VLANs. What is the primary security risk?
Legal, Compliance, and Ethics (Security+, ISC2 CC)
7. A junior administrator wants to scan a production server at a client site to verify firewall rules. What must be obtained before running the Nmap scan?
Security Architecture (Security+, CySA+, ISC2 CC)
8. An organization has a three-leg firewall DMZ. A threat actor compromises the public web server in the DMZ. Which design element most directly limits the attacker's ability to reach internal HR records on the LAN?
Record this lesson on my transcript. Sign in with your key and enrollment email to record lessons (enroll free if you have no key). This page stays open to read and practise.