Where to place firewalls in a network design: edge, DMZ, internal segmentation and cloud
In short: Firewalls used to sit only at the internet edge. Modern designs add a DMZ for public services, internal segmentation firewalls between zones such as users, servers and OT, firewalls in data centres and clouds, and branch or cloud-delivered security for local internet access. The network must route traffic through them symmetrically, and they must be sized for the traffic and inspection features used.
North-south and east-west
North-south traffic enters or leaves the organisation, for example users to the internet or customers to a public website. East-west traffic stays inside, for example users to servers or servers to servers. Older designs only firewalled north-south traffic, leaving the inside "flat". Most serious breaches spread east-west, so modern designs control both.
Internet edge
An HA firewall pair between the internet routers and the inside network: NAT, inbound protection, outbound filtering, VPN termination and, often, TLS inspection and threat prevention. Size it for internet bandwidth with all inspection features turned on, not for the headline throughput.
DMZ
Servers that must be reachable from the internet (web servers, mail gateways, reverse proxies, VPN portals) go in a DMZ zone. Rules allow the internet to reach only specific services in the DMZ, and the DMZ to reach only specific internal systems, so a compromised public server is not a doorway to everything. Increasingly, public services are hosted in the cloud or behind a CDN instead.
Internal segmentation firewalls
An internal firewall (or the core's virtual firewall contexts) sits between major zones: users, servers, management, OT and IoT, payment systems, guests. Typical approaches:
- Each zone is a VRF or VLAN group whose default route points to the firewall, so traffic between zones must pass through it.
- Large data centres use distributed firewalling (micro-segmentation in hypervisors or host agents) for server-to-server traffic.
- Group-based policy (SGTs) in the campus can reduce the need for firewalls between user groups.
Branches and remote users
Branches with local internet breakout need protection: an SD-WAN edge with firewall features, a small dedicated firewall, or traffic sent to a cloud security service (SASE/SSE). Remote users are protected by the same cloud service or by ZTNA.
Cloud
In AWS, Azure and Google Cloud, use security groups and network ACLs everywhere, plus cloud-native or virtual firewalls in a central "inspection" VPC or VNet for traffic between environments and to the internet.
Routing through firewalls
- Stateful firewalls must see both directions of a connection. Asymmetric paths, where the reply takes a different route, cause dropped sessions.
- Design routing so each zone's traffic enters and leaves through the same firewall (or HA pair), and keep routing simple around firewalls: static or a single dynamic protocol.
- Avoid hairpinning traffic across the WAN to a central firewall when local inspection would do.
Sizing
Check the vendor's figures for threat prevention and TLS inspection throughput, connections per second and concurrent sessions. Internal segmentation firewalls in data centres may need to handle very high east-west traffic, which can be expensive; keep high-volume flows (such as storage and backup) on dedicated, controlled paths where appropriate.
Real-world example: the flat network
A manufacturer had a strong internet edge firewall, but inside, the office PCs, production line controllers and servers were all on one routed network. Ransomware entering through a phishing email reached the production systems within hours and stopped the factory for three days. The rebuild added an internal segmentation firewall between office, server and OT zones, with only specific, documented flows allowed into OT.
Practice
What is the difference between north-south and east-west traffic?
What is a DMZ for?
Why must stateful firewalls see both directions of traffic?
Key takeaways
- Control both north-south and east-west traffic.
- Use an edge HA pair, a DMZ for public services and internal segmentation firewalls.
- Protect branches and remote users with edge or cloud-delivered security.
- Route symmetrically through firewalls and size them with inspection enabled.
Original content written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.