Firewall
A firewall allows or blocks network traffic according to a set of rules.
Updated
Explanation
Rules may check addresses, protocols, ports or whether traffic belongs to an established connection. Firewalls can run on an endpoint or between networks.
Worked examples
A network firewall permits incoming HTTPS connections to a web server and drops other incoming connections to that server.