Correct option is B
• A firewall enforces network security policies by inspecting packets travelling between a private network and the outside network.
• It determines whether traffic should be allowed, blocked, or logged based on security rules defined by network administrators.
• Works on multiple layers depending on type:
– Packet-filtering firewalls: Network & Transport layers (OSI Layer 3/4)
– Application-level firewalls: Application layer (OSI Layer 7)
• Protects against unauthorized access, intrusion attempts, malicious traffic, and supports network segmentation to minimize impact of breaches.
• Often used together with intrusion detection systems for complete network defense architecture.