Bitzu

100-150 CCST ยท Network security basics

How firewalls filter traffic

Permit and deny rules, blocking ports and protocols, rule order, stateful filtering, and host versus network firewalls.

Key points

  • A firewall compares a packet or connection with an ordered rule list
  • Rule: permit or deny, matches e.g. source, destination, protocol, port (blocking port 23 stops Telnet, port 443 can stay open)
  • Read top to bottom, first match wins; most end with an implicit deny
  • Stateful: remembers established connections, lets replies back in
  • Host firewall protects one computer; network firewall everything behind it

Practice questions

Single choice

What does a firewall deny rule do to traffic that matches it?

  1. It blocks the matching traffic
  2. It encrypts the matching traffic
  3. It allows the matching traffic faster
  4. It copies the matching traffic to a log server only
Show answer

Answer: A. It blocks the matching traffic

A deny rule drops or rejects matching traffic. A permit rule is the one that allows it; a firewall does not encrypt or speed up traffic by itself.

Select all that apply

Which items can a basic firewall rule match on?

  1. Destination port number
  2. Cable colour
  3. Source IP address
  4. Age of the user account
  5. Monitor resolution
Show answer

Answer: A. Destination port number, C. Source IP address

Basic rules match on addresses, protocol and port. The colour of a cable and the age of a user account are not packet attributes.

True or false

True or false: if a host-based firewall is enabled on every PC, a network firewall is no longer useful.

Show answer

Answer: False

False. The two layers complement each other: the network firewall filters traffic for everything behind it at the edge, while host firewalls protect each machine, including against threats from inside the network.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More 100-150 CCST topics in this module