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.
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.
Computer Science · Structure
Where the barrier sits
Tap a box to see what it does.
Tap any part of the diagram to see what it does.
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
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?
The three forms a firewall can take
What does a firewall do with traffic as it passes?
What happens to a packet that breaks the rules? One that meets them?
Three properties a firewall rule can be based on
Where does a firewall sit?
Why filter incoming and outgoing traffic?
What does a software firewall protect?
What does a hardware firewall protect?
Limit: threats in allowed traffic
Limit: malware already on the computer
Limit: insiders and tricks
Limit: the rules themselves
So how should a firewall be used?
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 postedMore Eduqas GCSE Computer Science topics
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.