0
0
Computer Networksknowledge~10 mins

Firewalls and packet filtering in Computer Networks - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the sentence to define a firewall.

Computer Networks
A firewall is a network security device that monitors and controls incoming and outgoing network traffic based on [1] rules.
Drag options to blanks, or click blank then click option'
Afiltering
Bsecurity
Crouting
Dencryption
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'routing' because firewalls do not primarily route traffic.
2fill in blank
medium

Complete the sentence to explain packet filtering.

Computer Networks
Packet filtering works by inspecting packets and deciding to allow or block them based on [1] such as IP addresses and ports.
Drag options to blanks, or click blank then click option'
Aprotocols
Bcriteria
Chardware
Dencryption
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'protocols' because protocols define communication, but filtering uses criteria.
3fill in blank
hard

Fix the error in the sentence about firewall types.

Computer Networks
A [1] firewall filters traffic based on packet header information only, without inspecting the packet content.
Drag options to blanks, or click blank then click option'
Astateless
Bapplication
Cproxy
Dstateful
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'stateful' which tracks connection state, unlike stateless.
4fill in blank
hard

Fill both blanks to describe how a stateful firewall works.

Computer Networks
A stateful firewall keeps track of [1] and uses this information to [2] packets more accurately.
Drag options to blanks, or click blank then click option'
Aconnection states
Bpacket sizes
Cfilter
Dencrypt
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'packet sizes' which is not tracked by stateful firewalls.
5fill in blank
hard

Fill all three blanks to complete the dictionary comprehension filtering packets by port and protocol.

Computer Networks
filtered_packets = {pkt[1]: pkt for pkt in packets if pkt['port'] [2] 80 and pkt['protocol'] == [3]
Drag options to blanks, or click blank then click option'
A['id']
B==
C'TCP'
D!=
Attempts:
3 left
💡 Hint
Common Mistakes
Using '!=' instead of '==' for port comparison.