GCSE · Computer Science · Eduqas · Spec C500QS

Firewalls

A guard checks each visitor against a list of rules. A firewall is that guard: only the list, no judgement. You're the guard next, then you get a bad list.

Computer Science · Firewalls

Be the firewall

You are the firewall for a school network (its computers have addresses starting 10.0.0). Read the rules, pick a packet, then pick Allowed or Blocked.

Rule 1: no packet to or from 198.51.100.7, an address the school has put on its blocked list. Rule 2: no incoming packet to port 9999. A packet that breaks either rule is blocked; one that breaks neither is allowed.

Still to sort

Allowed (0)

Meets the rules, so it passes through.

Where the line is: A packet is allowed when it breaks none of the rules in force, whichever way it is travelling.

Blocked (0)

Breaks at least one rule, so it is stopped.

Where the line is: One broken rule is enough. The firewall does not ask whether a data packet is really harmful, only whether its properties break a rule.

6 of 6 still to sort.

Six packets arrive at the school network's boundary. Sort each one as Allowed or Blocked, then switch to a second rule set and sort the same six again.

Exam line: A firewall allows or blocks by checking a packet's properties against its rules. It does not know what is harmful, so it is only as effective as the rules it is given.
Watch out: Outgoing packets are checked too. A packet leaving for a blocked destination breaks the rule just as an incoming one would.

Computer Science · Structure

Where the barrier sits

Tap a box to see what it does.

Untrusted networkTrusted networktraffic in and out

Tap any part of the diagram to see what it does.

Computer Science · Firewalls

What a firewall can't see

For each threat, tick the box if it is true. Does it arrive as new traffic passing through the firewall? Would it break a rule, so that the firewall blocks it?

Packets from an address on the blocked list
A harmful email attachment, sent in traffic the rules allow
Malware that is already on a computer
A person already inside the network who means harm
A caller who persuades a user to read out private information

Exam line: A firewall only controls traffic passing through it, and only blocks what breaks a rule. Anything else needs other security measures.

Computer Science · Firewalls

What do you really think a firewall does?

A company switches on a firewall and its manager announces: "Great, we're fully protected now." Three colleagues disagree about what the firewall actually does.

Which colleague is closest to what you think right now?
How sure are you?

Exam line: A firewall is one layer of protection used alongside other security measures, not complete protection on its own.

Computer Science · Your turn

Write it like a full answer

A company connects its network to the internet through a firewall. Describe how the firewall helps to protect the network, and explain why the company should not rely on the firewall alone. [6 marks]

0 words · your answer stays on this page and is not sent anywhere.

Exam line: Describe the checking, then give two different limits and say what they mean for how a firewall should be used.

WHAT YOU'VE LEARNED

A quick recap of today's lesson.

Be the checkpoint: test every packet against a rule list, then see why a firewall is only as good as its rules.

What you need to know

  • A firewall protects a computer system or network against threats by monitoring traffic coming in and going out.
  • Each data packet is checked against a set of rules, sometimes called a rule set or security policy.
  • Traffic that meets the rules is allowed through; traffic that breaks them is blocked.
  • Have a goYour classmate says: "A firewall lets a packet in as long as it is harmless." A harmless packet arrives that breaks one of the firewall's rules. What happens, and is your classmate right?

    It is blocked, so your classmate is wrong.

    Traffic that breaks the firewall's rules is blocked. The firewall checks the data packet against its rules, not against some idea of whether it is harmless.

  • Rules can be based on a packet's source or destination IP address, its port number or its protocol.
  • Have a goA rule says: block any packet from 192.0.2.44. Which of the three properties from the bullet above is that rule using?

    The source IP address.

    The rule looks at where the data packet came from. A rule about where it is going would use the destination IP address, and the other two properties are the port number and the protocol.

  • Blocking unauthorised incoming connections helps keep hackers out; filtering outgoing traffic stops programs sending data to blocked destinations.
  • A firewall sits between a trusted network or computer and an untrusted one, such as the internet, acting as a barrier.
  • Firewalls can be hardware, software or both. A software firewall runs on one computer and protects that computer.
  • A hardware firewall is a separate device, often built into a router, that protects every device on the network.
  • Have a goA family router has a firewall built in, and four devices connect through it. How many of those devices does that hardware firewall protect?

    All four.

    A hardware firewall sits between the network and the internet, so it protects every device on that network. A software firewall protects just the one computer it runs on.

  • A firewall can't stop threats carried in allowed traffic, remove malware already inside, or guard against insiders and tricks on users.
  • A firewall is only as effective as its rules, so it is one layer of protection alongside other security measures.

The big picture

A firewall protects a system or network by checking each data packet, coming in or going out, against a set of rules. Break a rule and it is blocked; meet the rules and it is allowed through. Hardware and software firewalls protect different things, and because a firewall has limits it is one layer of protection, never the whole answer.

Key points

1A firewall checks each packet, incoming and outgoing, against a rule set and blocks traffic that breaks the rules.
2Rules can use source or destination IP address, port number or protocol.
3A software firewall protects the computer it runs on; a hardware firewall, often in a router, protects every device on the network.
4A firewall cannot stop threats carried in allowed traffic, remove malware already on a computer, or guard against insiders and tricks on users.
5It is only as effective as its rules, so it is one layer of protection alongside other security measures.

Worked example

Problem

A firewall has two rules. Rule 1: block any packet from IP address 192.0.2.50. Rule 2: block any outgoing packet that uses port 7777. A packet is leaving a computer at 10.0.0.8, heading for 203.0.113.5 on port 7777 using TCP. Is it allowed or blocked, and which rule decides it?

⚠ Watch out

Writing that a firewall only keeps hackers out. It also checks traffic going out, so it can stop a program on the computer from sending data to a blocked destination.

🧠

Memory hook

Two tests before a firewall can help: does the threat pass THROUGH it, and does it BREAK a rule? Fail either test and the threat strolls past.

✓

Check yourself

Cover the page. A packet is leaving a computer for a blocked address. Does the firewall check it, and what decides whether it gets through?

Flashcards

(14)
What is a firewall?
A way of protecting a computer system or network against threats.
The three forms a firewall can take
Hardware, software, or a combination of both.
What does a firewall do with traffic as it passes?
It monitors traffic coming in and going out, checking each data packet against a set of rules (a rule set or security policy).
What happens to a packet that breaks the rules? One that meets them?
Breaking the rules: blocked. Meeting the rules: allowed through.
Three properties a firewall rule can be based on
Source or destination IP address, port number, or protocol.
Where does a firewall sit?
Between a trusted network or computer and an untrusted network such as the internet, acting as a barrier.
Why filter incoming and outgoing traffic?
Blocking unauthorised incoming connections helps prevent hackers gaining access; filtering outgoing traffic stops programs sending data out or connecting to blocked destinations.
What does a software firewall protect?
The individual computer it runs on.
What does a hardware firewall protect?
Every device on the network. It is a separate device, often built into a router, between the network and the internet.
Limit: threats in allowed traffic
A firewall only controls traffic passing through it, so a harmful email attachment or a download the user chooses to make can get past it.
Limit: malware already on the computer
A firewall cannot detect or remove it.
Limit: insiders and tricks
It does not protect against people already inside the network, or against tricks that persuade users to give away information.
Limit: the rules themselves
A firewall is only as effective as its rules. Badly configured rules can let harmful traffic through or block legitimate traffic.
So how should a firewall be used?
As one layer of protection alongside other security measures, not as complete protection on its own.

Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.

Learning with Lightbulb is opening soon

You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.

Keep me posted

More Eduqas GCSE Computer Science topics

See the full Eduqas Computer Science curriculum →

How this lesson was checked. This Eduqas GCSE Computer Science (specification C500QS)lesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 14 November 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.