📝 Firewalls in computer networks (10 MCQs)
📖 From Data Communication and Networks • 32. Internet Security • 10 questions available
What is Firewalls in computer networks?
A firewall is a network security device or software that monitors and controls incoming and outgoing traffic based on predetermined security rules, acting as a barrier between trusted internal networks and untrusted external networks.
📝 All Firewalls in computer networks MCQs
Q1. What is the primary function of a packet‑filter firewall?
📖 Explanation: A packet‑filter firewall operates at the network layer, examining only the header information of each packet. It makes decisions based on source/destination IP addresses, protocol type, and port numbers, allowing or blocking traffic accordingly. It does not perform encryption, content scanning, or user authentication, which are functions of other security mechanisms.
Q2. If an organization replaces its packet‑filter firewall with a proxy firewall, which of the following outcomes is most likely?
📖 Explanation: A proxy firewall operates at the application layer, so it can terminate client connections, examine full payloads, and enforce policies based on protocol semantics. This capability allows it to filter HTTP headers, MIME parts, and other application data, a function the simpler packet‑filter firewall cannot provide. The other options describe effects that are not typical of this transition.
Q3. When IPSec tunnel mode is deployed between two corporate sites, how does it affect the existing firewall rule set at each perimeter?
📖 Explanation: In tunnel mode, the original IP packets are encapsulated inside a new IP header protected by ESP (protocol 50). The firewall therefore sees only the outer header, so it must allow ESP and typically create a rule that permits any traffic between the tunnel endpoints. Because the inner payload is encrypted, the firewall cannot apply port‑level filters until the traffic emerges from the tunnel, making the broader rule necessary.
Q4. Which statement best differentiates packet‑filter firewalls from proxy firewalls?
📖 Explanation: A packet‑filter firewall inspects only the network‑layer header fields—source/destination IP, protocol, and ports—to permit or deny traffic. In contrast, a proxy firewall acts as an intermediary at the application layer, terminating client connections, parsing the full payload, and applying content‑based policies. Therefore, proxy firewalls add deep inspection capabilities that packet filters lack, which is captured by the correct statement.
Q5. An enterprise deploys a hybrid security architecture that uses a packet‑filter firewall at the perimeter and a proxy firewall for internal web servers. Which of the following evaluations most accurately reflects the security posture?
📖 Explanation: The hybrid approach embodies defense‑in‑depth: the perimeter packet‑filter firewall quickly discards traffic from disallowed IP addresses and protocols, while the internal proxy firewall performs deep packet inspection, content filtering, and user authentication for web services. This layered strategy protects against attacks targeting either the network layer or the application layer, providing a more robust security posture than either device alone.
Q6. Applying the principle of defense‑in‑depth, how should an organization integrate firewalls with IPSec VPNs to protect remote employee connections?
📖 Explanation: A robust deployment places a packet‑filter firewall at the VPN termination point to verify that only legitimate ESP (or AH) packets enter the network. After the IPSec tunnel is decrypted, the firewall can apply further policies—such as restricting access to specific subnets or services—thereby enforcing security both before and after the encrypted channel, consistent with defense‑in‑depth.
Q7. Consider a scenario where an email system uses PGP for personal communication and S/MIME for corporate messages. How does the presence of a proxy firewall influence the security guarantees of each method?
📖 Explanation: A proxy firewall operates at the application layer and can examine protocol metadata such as SMTP commands and headers while leaving the actual message body encrypted. Because PGP and S/MIME provide end‑to‑end encryption of the email content, the firewall’s inspection does not compromise confidentiality or integrity. Therefore, the firewall can enforce policies without undermining the cryptographic protections offered by either scheme.
Q8. Which of the following best illustrates how a proxy firewall can mitigate a zero‑day exploit targeting a web application?
📖 Explanation: A proxy firewall acts as an intermediary that terminates the client’s HTTP session, allowing it to parse the full request and response. Even unknown (zero‑day) attacks can be detected by heuristics or anomaly detection on the payload. When malicious content is identified, the firewall can drop or sanitize it before it reaches the vulnerable web application, thereby providing a protective layer that pure network filters cannot offer.
Q9. When comparing the performance impact of packet‑filter firewalls versus proxy firewalls, which inference is most accurate?
📖 Explanation: Packet‑filter firewalls operate on the network layer and evaluate only the packet header, which requires minimal processing time and results in lower latency and higher throughput. Proxy firewalls, by contrast, must terminate sessions, decode full application payloads, and apply content‑based policies, which adds processing overhead and can reduce performance, especially under heavy traffic loads.
Q10. If a network administrator observes that a proxy firewall is logging frequent “CONNECT” method requests to external ports, what logical conclusion can be drawn about the traffic pattern?
📖 Explanation: The HTTP CONNECT method is used by clients to request that a proxy open a TCP tunnel to a specified host and port, which is commonly employed for HTTPS or other SSL/TLS connections. Frequent CONNECT logs therefore indicate that many clients are initiating encrypted sessions through the proxy, reflecting normal TLS traffic rather than a misconfiguration or attack.