Concept:
Computer networks require protection against unauthorized access, malicious software, hackers, and unsafe data packets.
A firewall is a security system that monitors and controls incoming and outgoing network traffic according to predefined security rules.
One of its primary functions is to allow or block communication through specific network ports.
Step 1: Understanding the role of each option.
• Mother Board
The motherboard is the main circuit board of a computer.
It connects all hardware components together.
It does not perform network security functions.
Hence, incorrect.
• Webcam
A webcam is an input device used to capture images and video.
It has no role in controlling network traffic.
Hence, incorrect.
• Form Factor
Form factor refers to the size, shape, and physical design specifications of computer hardware.
It is not a security device.
Hence, incorrect.
• Firewall
A firewall filters network traffic and blocks unauthorized connections through network ports.
This exactly matches the requirement stated in the question.
Hence, correct.
Step 2: Matching the definition with the correct device.
Since the question specifically mentions blocking and restricting network ports, only a firewall performs this task.
Therefore,
\[
\boxed{\text{Firewall}}
\]
is the correct answer.