Firewall Placement
Where firewalls belong in a network: at every segment, at every connection to the internet, each set to the security its segment needs.
1Why placement matters
A firewall only controls traffic that passes through it. A perfectly configured firewall in the wrong place protects nothing, and a single missed connection to the internet can let attackers walk around every other defense. Placement follows three rules.
2A firewall for every segment
Each segment of a network should have a firewall to control the flow of data into and out of that segment. That is what turns segmentation into real protection: without a firewall at the boundary, a “segment” is only a label, and traffic flows freely between segments.
3Different strictness for different segments
Segments have different security needs based on the data and services inside them, and the level of security for each firewall can be set independently:
| Segment | What it holds | Firewall strictness |
|---|---|---|
| Screened subnet (DMZ) | Public website, email server | Allows the public in, but only to specific services (e.g., web traffic on port 443) |
| Staff network | Teacher and office computers | Medium: internet access and the services staff use; nothing unsolicited from outside |
| Records servers | Student or patient records | Strict: only specific internal systems may connect, on specific ports |
| Guest Wi-Fi | Visitors' devices | Internet only; no access to any internal segment |
4Every entry and exit point
Each point where data enters or leaves (ingress and egress) between the internal network and the public internet should have a firewall. Organizations often have more connections than they realize: a backup internet line, a cellular hotspot in the server room, a separate line for the building's security cameras, a remote site connected over the internet. An attacker needs only one unguarded path.
Put a firewall at every segment boundary and at every connection to the internet, and set each one's rules to match what its segment holds.
5Worked examples
The school network
A school has one internet connection, a public website server, a staff network, a student network, and a server holding grades. Where should firewalls go?
- 1At the internet connection: an edge firewall controlling everything entering or leaving.
- 2Around the public website: a screened subnet, with a firewall separating it from the internal network.
- 3At each internal segment: staff, student, and grades, each with its own firewall.
- 4Set strictness by contents: the grades segment strictest, the student segment preventing access to staff and grades.
The forgotten backup line
A hospital's main internet connection has a firewall. During an audit, IT discovers a backup internet line installed years ago for emergencies, connected directly to the internal network with no firewall. Why is this serious?
- 1Every point of ingress and egress to the internet needs a firewall.
- 2The backup line is a second door into the internal network, with no one checking traffic through it.
- 3An attacker who finds it bypasses the main firewall entirely.
One rule set for all?
An IT administrator proposes copying the same firewall rules to every segment to keep things simple. What is the problem?
- 1Segments hold different data and services: guest Wi-Fi, staff computers, and a records server have very different needs.
- 2Rules loose enough for staff would be too loose for the records segment.
- 3Rules strict enough for records would block normal staff work.
The segment that wasn't
A company created separate subnets for its finance team and everyone else, but did not put a firewall between them. A sales laptop gets malware. Is finance protected?
- 1Subnets separate addresses, but traffic between them goes through the router without filtering.
- 2Without a firewall at the finance segment's boundary, the malware can reach finance computers.
- 3Each segment should have a firewall controlling data in and out.
6Common mistakes
An edge firewall alone leaves internal segments open to each other. Each segment needs its own.
Backup lines, hotspots, and separate camera or vendor connections are all ingress and egress points. Each needs a firewall.
Set each firewall's strictness to the data and services in its segment.
“A firewall should be placed between the records segment and the rest of the internal network, with strict rules allowing only the specific systems that need records access. Because this segment holds the most sensitive data, its firewall should be stricter than the one protecting the staff segment.”
Say where the firewall goes, what traffic it controls, and how strict it should be given what the segment holds.