A firewall is a device that can be configured to permit or block traffic to help secure a computer network.
Wikipedia
In computing, a firewall is a network security system that monitors and controls incoming and outgoing network traffic based on predetermined security rules. A firewall typically establishes a barrier between a trusted network and an untrusted network, such as the Internet.