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

Preview

Firewalls, segregation and monitoring

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

55 minutes

The guard at the gate

A big office has a guard at the gate. The guard has a list. Delivery vans may come in. Visitors need a pass. Nobody may carry a box out without a note.

A computer network (linked computers) has a guard like that. It checks everything that comes in and goes out, using a list of rules.

Key words

WordWhat it meansExample
NetworkComputers and devices that are linked together.a school network
FirewallA guard that allows or blocks network traffic using rules.a gate with a list
InboundTraffic coming into your network.a visitor to your website
OutboundTraffic going out of your network.a worker opening a web page
PortA numbered door on a computer that network traffic uses.port 443 for secure web pages
IP addressThe number that names a device on a network.192.168.1.20
SegregationKeeping parts of a network apart.a guest network and a staff network
Network monitoringWatching network traffic and logs for problems.a screen of alerts
Port scanningChecking which ports are open on a computer.a list of open doors

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

Quick check: in or out?

Have a go

Quick check: in or out?

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.

Four kinds of firewall rule

Kind of ruleIt decides byExampleWhy use it
Traffic directionWhether it is inbound or outboundBlock all inbound traffic unless asked forStrangers cannot start a chat with your computers
Traffic typeThe kind of traffic, such as web pages or emailAllow web traffic. Block file sharingStops kinds of traffic the business does not need
ApplicationWhich program sends itBlock a game, allow the work programStops unwanted programs sending data out
IP addressWhere it comes from or goes toBlock a list of addresses known to attackShuts out sources that are known to be bad

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

A small rule list. The first match wins.

RuleActionDirectionPortMeaning
1AllowInbound443Visitors may reach secure web pages
2DenyInbound23Nobody may use door 23
3AllowOutboundanyStaff may go out to the internet
4DenyEverything elseanyDefault: block what is not listed

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

Extra: Some real port numbers

PortWhat uses itUsual rule
443Secure web pages (HTTPS)Allow
80Web pages that are not secureOften sent on to 443
22Secure login to a computer from far awayAllow only for staff
23Telnet, an old login that sends passwords as plain textDeny
3389Remote desktop (using a computer from far away)Deny from the internet

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

Try it: first match wins

Code: python
rules = [["allow", "in", 443], ["deny", "in", 23], ["allow", "out", "any"]]

def decide(direction, port):
    for rule in rules:
        if rule[1] == direction and (rule[2] == "any" or rule[2] == port):
            return rule[0]
    return "deny"

print(decide("in", 443))
print(decide("in", 23))
print(decide("in", 8080))

# Add a new rule at the start to allow port 8080 and run it again.

The lesson goes on

13 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.