Foundations
Firewall
A set of rules that allows or drops network traffic based on details such as address and port.
In more detail
A common setup blocks every incoming port except the few a machine needs. A firewall reduces who can reach a service but does not fix flaws in that service, so it complements patching rather than replacing it.
