Easier to read with cream paper, a tint, more contrast or larger text? Choose your colours and text, once, for every page.

Preview

SC 2.1: Firewall rule order

This is the first page of the lesson. Read it and have a go at the activities. The rest is in the full lesson.

50 minutes

Two rules that disagree

Rule one says: allow the web. Rule two says: block everything from the internet.

A visitor asks for the web server. Which rule wins? The answer depends on one thing: the order.

By the end of this lesson

Note

I can set the order of allow and block rules so traffic is handled as I want.

Key words

WordWhat it meansExample
Firewalla device or program that allows or blocks traffic
Ruleone instruction that says allow or block
Allowlet the traffic through
Blockstop the traffic
Precedencewhich rule is used first when two match
Porta numbered door on a computer for one service80 is the web
Default denyblock anything no rule allows

The cells students fill in are left blank in this preview.

Starter

Have a go

Starter

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Your answers are marked here and are not kept. A college account keeps every student’s marks.

The first matching rule wins

A firewall reads its rules from the top. It stops at the first rule that matches the traffic.

It does not read the rest. So precedence is the order of the list. A rule higher up beats a rule lower down.

Worked example: web traffic on port 80

OrderRuleResult for traffic on port 80
1ALLOW port 80Matches. Allowed. Stop reading.
2BLOCK everythingNever reached for port 80

The cells students fill in are left blank in this preview.

Swap the order and it breaks

OrderRuleResult for traffic on port 80
1BLOCK everythingMatches. Blocked. Stop reading.
2ALLOW port 80Never reached, so the web is blocked

The cells students fill in are left blank in this preview.

Check

Have a go

Check

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Your answers are marked here and are not kept. A college account keeps every student’s marks.

The lesson goes on

6 more parts of this lesson are in the full curriculum, with the tasks, the final check and the labs. A college account gives your students all of it.