A firewall is a system designed to protect computers from unauthorized access. It does this by filtering traffic between networks and only allowing certain types of traffic through. Firewalls can be hardware, software, or a combination of both.
Hardware firewalls are usually installed at the point where a network connects to the internet.