Skip to content
Pixel
العربية

2-2Unit 2 · Cybersecurity

Network Security Design

10 min readStart exercises
In this lesson
  1. The Big Idea
  2. Why Isn't One Barrier Enough?
  3. The Firewall: Who Gets Through
  4. The Virtual Private Network (VPN)
  5. The Demilitarized Zone (DMZ)
  6. Defence in Depth: Layers on Layers
  7. Zero Trust: No Automatic Trust for Anyone
  8. Try It Yourself
  9. Common Mistakes
  10. Key Points
  11. FAQ

The Big Idea

In the previous lesson we protected connections and accounts with encryption and authentication. This lesson goes one level up: how do you design the network itself for a whole organisation? The core idea is that one barrier is not enough; if it fails, everything behind it is exposed. So several measures are stacked in layers: a firewall at the network's entrances, a virtual private network (VPN) to protect remote connections, a DMZ to keep public servers apart, and protection on the endpoints. That is defence in depth. On top of that, nobody is trusted automatically just because they are "inside"; that is the zero trust approach.

Why Isn't One Barrier Enough?

Organisations such as a bank, a hospital or a shipping company keep important data and services on their networks: customer data, financial records, the website, email. Those assets are exactly what an attacker may try to reach.

If an organisation relies on a single protection, then one mistake in its settings, one weakness in it, or one trick that gets around it, leaves the road open to everything. That is why network security design is built on multiple layers: each layer lowers the likelihood of a breach, and if one fails, the others limit the damage.

In this lesson we meet the tools for those layers one by one, see how they fit together, and then look at the modern way of thinking that trusts nobody automatically.

The Firewall: Who Gets Through

A firewall is a system or program that monitors network traffic and allows or blocks it according to security rules set in advance. The Arabic edition notes it can sit in more than one place:

  • At the network boundary: between the organisation's network and the internet, at the entry and exit point.
  • Between parts of the network: for example, between the public-server area and the internal network.
  • On a host: firewall software running on one particular computer or server.

An example of firewall rules

The book's example: allow access to the web server, while blocking direct outside access to the database. A visitor from the internet needs to see the organisation's website, so that is allowed. But they never need to connect directly to the customer database, so that is blocked.

You can picture firewall rules as a written list:

| From | To | Decision | |---|---|---| | Internet | Web server | Allow | | Internet | Database, directly | Block | | Internal network | Internet, for browsing | Allow |

The Virtual Private Network (VPN)

A virtual private network (VPN) is a private logical connection or network created over a public network such as the internet. It usually uses encryption and tunnelling to protect data between the two ends. "Virtual" means there is no actual private cable between them; the data travels over the public internet, but it is protected as if it were on a private line.

Two main uses

  1. Remote work: an employee at home or travelling connects securely to the organisation's network.
  2. Linking branches: a company's Cairo office and Alexandria office connect to each other securely over the internet.

Why does it help on public Wi-Fi?

Because the content of the connection is encrypted when you use a VPN, the risk of eavesdropping goes down, even on public Wi-Fi in a café or train station where you do not know who runs the network or who else is on it.

The Demilitarized Zone (DMZ)

Some of an organisation's servers must be reachable from outside because of what they do: the web server that shows the site to visitors, and the mail server that receives email from the world. These servers face more attacks than others, because anyone can reach them.

A DMZ (demilitarized zone) is an area where servers exposed to the external network are placed separately from the internal network. Usually it sits between two firewalls, or between network parts controlled by a firewall.

A network with a DMZ Three zones separated by two firewalls. The external network (the internet) holds users and an attacker. The DMZ holds the web server and mail server, the servers exposed to the outside. The internal network holds the database server, staff PCs and confidential data. A green arrow: users reach the web server, which is allowed. A dashed red arrow: direct access from outside to the database is blocked. A red arrow from a compromised server in the DMZ towards the internal network is stopped by the second firewall. Footer: if a public server is hacked, the attack is less likely to reach the internal network. External network (the internet) DMZ public-facing servers Internal network (the organisation) Firewall Firewall Users Attacker Web server Mail server Database server Staff PCs Confidential data allowed Direct access to the database: blocked Public server hacked? the 2nd firewall is in the way If a public server is hacked, the attack is less likely to reach the inside
Public servers sit in a middle zone; confidential data stays behind an extra firewall.

What is the benefit?

If an attacker manages to compromise the web server, they find themselves in the DMZ, not inside the internal network. Between them and the database and internal machines there is another firewall with other rules. So keeping public servers separate helps lower the likelihood of the attack reaching the internal network.

Defence in Depth: Layers on Layers

Defence in depth means using multiple layers of security controls, so that if one layer fails, the other layers help reduce the risk and limit the impact of the breach. In short: stacking security measures.

The book shows four layers in network security:

| Layer | Example measures | |---|---| | 1: Network entry | Block unauthorised connections with a firewall | | 2: Communication path | Encrypt the connection with a VPN | | 3: Server placement | Separate public-facing servers from the internal network with a DMZ | | 4: Endpoints | Install antivirus software and keep the operating system updated |

Defence in depth: four layers Four protection layers stacked above the data and services. Layer 1, network entry: a firewall blocks unauthorised connections. Layer 2, communication path: a VPN encrypts the connection. Layer 3, server placement: a DMZ separates public servers from the internal network. Layer 4, endpoints: antivirus and an up-to-date operating system. A red attack arrow crosses layer 1, which has failed, and stops at the next layers. Footer: if one layer fails, the other layers help reduce the risk and limit the impact. Layer 1: Network entry Firewall blocks unauthorised connections Layer 2: Communication path VPN encrypts the connection Layer 3: Server placement DMZ separates public-facing servers Layer 4: Endpoints Antivirus + up-to-date operating system Data and services Each layer protects in a different way Attack failed stopped If one layer fails, the others help reduce the risk and limit the impact
One layer failing does not mean the whole system is exposed.

Endpoints: the layer people forget

Endpoints are the computers, phones and other devices that staff actually use. An employee may open an infected email attachment or plug in a contaminated USB stick. The firewall sees nothing crossing the network entrance, but antivirus software and an updated operating system on the device can stop or reduce the danger. That is why this layer is a key part of the design.

Why is stacking stronger?

Each layer covers a gap the others leave:

  • A firewall does not encrypt an employee's connection from a café, but a VPN does.
  • A VPN does not separate public servers from internal ones, but a DMZ does.
  • A DMZ does not clean a device infected with malware, but antivirus software tries to.

An attacker who gets past one layer runs into the next, so it becomes unlikely that a single breach exposes the whole system.

Zero Trust: No Automatic Trust for Anyone

The traditional model: protecting the perimeter

Traditional network security was designed around protecting the security perimeter, the edge of the network. The assumption was: "inside the organisation's network is safe; outside is dangerous." Anyone who got past the firewall and was "inside" was treated as trusted without further checks. It is like a castle with one strong wall: once you are inside the wall, you can wander freely.

What changed?

With the spread of cloud services and remote work, the line between "inside" and "outside" became blurred:

  • The organisation's data may live on cloud servers outside its building.
  • Staff work from home, from cafés and from their phones.
  • A device inside the network may already be infected.

So designs that protect only the perimeter are no longer enough.

The zero trust approach

Zero trust is a security approach that does not trust a user or device automatically just because it is inside the network or owned by the organisation. Every time someone requests access to resources, their identity, permissions and context are checked against the organisation's policy. Its slogan: "verify every access."

  • Identity: who are you? (for example, with 2FA)
  • Permissions: are you allowed to reach this particular resource? An accountant does not need the HR files.
  • Context: does the request look normal? Which device, from where, at what time?
Traditional perimeter security vs zero trust Two panels. Traditional security: a firewall separates the untrusted outside from the inside, which is treated as trusted without checks and holds the user, device and data. Zero trust: there is no automatically trusted inside; an office user, a user at home and a device each pass a check of identity, permissions and context before reaching the apps and data. Footer: cloud services and remote work blurred the line between inside and outside, so every access is checked. Traditional (perimeter) Zero trust Outside user Outside: untrusted Firewall Inside: trusted (no checks) User PC Data Office user Check User at home Check Device Check Apps and data identity · permissions · context Cloud and remote work blurred inside and outside: check every access
In zero trust, being “inside” means nothing; every access request is checked.

Try It Yourself

Try
Which layer does it belong to?
Sort each security measure into the defence-in-depth layer it belongs to.
Items (8)
Tap an item to select it, then tap the category it belongs to.
Nothing here yet
Nothing here yet
Nothing here yet
Nothing here yet
Try
Security adviser for Nile Shipping
The situation
A shipping company has a public website for tracking parcels, staff who work from home, and a database with customers' addresses and phone numbers. The manager asks you: what is the best security design?
What would you do? You can try more than one choice.
Try
What if this layer were missing?
Tap a card to flip it and see the other side.

Common Mistakes

"A strong firewall is enough to protect the network"

A firewall is one layer. If an attacker gets past it, or the danger comes from inside, it cannot protect the resources on its own.

Defence in depth: multiple layers, each reducing the risk and limiting the impact when another fails.

"A DMZ exposes all of the organisation's servers to the internet"

Exactly the opposite: it is the place for only the servers that must be exposed, and its purpose is to keep them apart from the internal network.

A DMZ is a separate zone for public servers (web and mail) that lowers the likelihood of an attack reaching the internal network if one of them is hacked.

"A VPN removes viruses and protects the device"

A VPN protects the communication path with encryption. The device itself needs endpoint protection.

VPN for remote work, linking branches and reducing eavesdropping; antivirus and updates for protecting devices.

"If a user is inside the company network, they can be trusted"

That is the traditional security assumption, and cloud services, remote work and infected inside devices have weakened it.

Zero trust: no automatic trust because of location or device ownership; identity, permissions and context are checked at every access.

"Zero trust means getting rid of the firewall"

Zero trust is a way of thinking about verification, not a replacement for the layers.

The strongest design combines multiple layers with checking every access.

Key Points

  • A firewall monitors network traffic and allows or blocks it by rules; it can sit at the boundary, between parts of the network, or on a host.
  • A VPN is a private logical connection over a public network using encryption and tunnelling; used for remote work and linking branches, and it reduces eavesdropping on public Wi-Fi.
  • A DMZ separates servers exposed to the outside (web, mail) from the internal network, lowering the likelihood of an attack reaching the inside.
  • Defence in depth stacks controls in layers: network entry, communication path, server placement, endpoints.
  • If one layer fails, the others help reduce the risk and limit the impact.
  • Traditional security protects the perimeter and assumes the inside is safe; cloud and remote work have blurred that line.
  • Zero trust: no automatic trust; check identity, permissions and context at every access.

FAQ

What is the difference between a firewall and a VPN?

A firewall decides which connections are allowed and which are blocked, according to rules. A VPN protects the connection itself as it crosses a public network, using encryption and tunnelling. The first is a guard at the door; the second is a protected road between two places.

Why is it called a DMZ?

DMZ stands for demilitarized zone, a buffer area between two sides. In networks it is a middle zone between the internet and the internal network, holding the servers the public must reach, kept apart from internal data.

Does zero trust mean the organisation does not trust its staff?

No. It means trust is not granted automatically just because a user or device is inside the network. Staff are checked for identity, permissions and context when they access resources, which also protects them if their password is stolen or their device is infected.

What are the book's four layers of defence in depth?

Network entry (firewall), communication path (VPN), server placement (DMZ) and endpoints (antivirus and an updated operating system).

Done reading? Test yourself