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
What does a firewall deny rule do to traffic that matches it?
- It blocks the matching traffic
- It encrypts the matching traffic
- It allows the matching traffic faster
- 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.
Which items can a basic firewall rule match on?
- Destination port number
- Cable colour
- Source IP address
- Age of the user account
- 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: 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.
