Computer Networking Basics

Which correctly describes the basic function of a (packet-filtering) firewall?

  1. AIt encrypts communication to prevent eavesdropping along the path
  2. BIt passes only permitted traffic and blocks the rest, according to rules based on source and destination IP addresses, port numbers and so on
  3. CIt distributes incoming packets among several servers to spread the processing load
Show answer and explanation

Answer: B. It passes only permitted traffic and blocks the rest, according to rules based on source and destination IP addresses, port numbers and so on

A firewall is placed, for example, at the boundary between an internal network and the internet, and allows or denies traffic according to predefined rules. A typical setting is "from outside, allow only traffic to port 443 of the public web server and deny all other incoming connections." Most firewalls today perform stateful inspection, keeping track of connection state and automatically letting through the return packets of connections started from inside. They do not encrypt, so they are combined with TLS or a VPN to protect traffic. They also cannot stop attacks that come through an allowed port (such as those exploiting web application vulnerabilities), so other measures such as a WAF are used as well.

  • A. Encryption is the job of TLS or a VPN.
  • B. Correct. It filters traffic by rules on addresses and port numbers.
  • C. That is what a load balancer does.
Practice this topic Back to topic

Related calculators

Books on Computer Networking Basics Ad

As an Amazon Associate I earn from qualifying purchases.

More Computer Networking Basics questions

  1. Which correctly describes an internet VPN?
  2. In the OSI reference model, which layer uses logical addresses such as IP addresses to relay packets between different networks until they reach their destination?
  3. In the four-layer TCP/IP model, which layer do TCP and UDP belong to?
  4. When a web page's data is sent, what happens on the sending side each time the data is passed from an upper layer to a lower layer?
  5. Which statement about MAC addresses is correct?