Module 10 · Network Security · Lesson 28 of 75
Secure network design: firewalls, zones and segmentation
Stateless, stateful and next-generation firewalls, DMZs and network zones, VLANs and micro-segmentation, VPNs, NAC, proxies and IDS/IPS.
In this lesson · about 40 minutes
- Explain how firewall rules are evaluated
- Design zones with a DMZ and segmentation
- Tell an IDS from an IPS and place each in a network
Firewalls
- Stateless (packet filter, router ACL): checks each packet on its own by address, port and protocol. Fast, but cannot tell a reply from a new connection.
- Stateful: tracks connections, so replies to allowed outbound traffic are let back in automatically.
- Next-generation (NGFW): also recognises applications and users, decrypts TLS (if configured), and includes intrusion prevention and URL filtering.
- Web application firewall (WAF): understands HTTP and blocks attacks such as SQL injection in front of a website (Module 11).
Rules are read top to bottom; the first match wins, and anything unmatched hits the implicit deny at the end. So specific rules go above general ones, and an "allow any" near the top silently overrides everything below it. Firewalls should also filter outbound (egress) traffic: a server that never needs the internet should not be able to reach it, which stops many malware call-backs.
Zones, DMZ and segmentation
- The DMZ (screened subnet) holds internet-facing servers. If one is hacked, the attacker is still outside the internal network.
- Segmentation splits internal networks by function and sensitivity: users, servers, payment systems, OT/industrial, guests, IoT. Flat networks let ransomware spread everywhere in minutes.
- VLANs split one physical switch into several logical networks; traffic between VLANs must pass through a router or firewall, where rules apply.
- Micro-segmentation applies rules per workload (common in data centres and cloud), the network side of zero trust.
- Jump boxes (bastion hosts): admins reach sensitive zones only through one hardened, logged machine.
Remote access and access control
- VPNs: IPsec (site-to-site), TLS/SSL VPNs and WireGuard for remote users. VPN appliances are a top target, so patch them first and protect them with MFA. Split tunnelling sends only company traffic through the VPN.
- ZTNA (zero-trust network access) gives users access to specific apps rather than the whole network.
- NAC (network access control, often 802.1X): devices must authenticate and pass health checks before the switch port or Wi-Fi lets them on.
- Proxies: a forward proxy filters and logs staff web traffic; a reverse proxy sits in front of servers (load balancing, TLS, WAF).
IDS and IPS
An IDS (intrusion detection system) watches a copy of traffic (from a SPAN port or tap) and raises alerts. An IPS sits inline and can block. Detection is either signature-based (known patterns, few false positives, misses new attacks) or anomaly-based (unusual behaviour, catches new things, more false positives). Suricata, Snort and Zeek are the open-source standards; host-based versions (HIDS) run on endpoints.
Try it · watch it move
A firewall reads its rules top to bottom
Send different kinds of traffic at the rule list and watch which rule matches first. Then move a broad rule above a narrow one and see what breaks.
| Order | Action | From guests to… | Door | Move |
|---|---|---|---|---|
| 1 | ✓ Allow | file server 10.10.10.5 | 80 | |
| 2 | ✕ Deny + log | any staff device 10.10.10.0/24 | any | |
| 3 | ✓ Allow | anywhere | 443 | |
| last | ✕ Deny | anything else (the invisible "implicit deny") | ||
Try it · watch it move
Split one switch into VLANs
Put devices on different VLANs on one switch and see who can talk to whom, and where the router or firewall has to step in.
Click a device to move it to the other VLAN
Performance-based question (PBQ)
Performance task: place each system in a zone
A mid-sized online retailer is redesigning its network into five zones.
Choose the right zone for each system.
- Public web servers and the reverse proxy
- Card-processing database
- Staff laptops
- Smart TVs in the meeting rooms
- Internal file server and HR application
- Visitor Wi-Fi
Check your understanding0 of 4 correct
Quiz score: 0 of 4
Written by Noviq Academy in its own words. All labs are simulations: no real systems are touched, and every name, address, password and hash is made up. The offensive techniques taught here are for defending systems and for authorised testing only; never scan, access or test a system without the owner's written permission. Tool and product names belong to their owners, and command output may differ slightly from yours. Read-aloud uses your device's built-in voices.