The term comes from construction, where a firewall prevents fire from spreading. In IT, a firewall separates zones with different levels of trust, typically the internal corporate network from the internet. It decides for each connection whether it may pass.
Firewalls exist as dedicated devices at the internet connection, as virtual systems in data centers and cloud environments, and as software directly on workstations and servers, such as the firewall built into Windows.
How does a firewall work?
It is based on rules that define which traffic is allowed from which source to which destination over which service. A proven principle is to block everything that is not explicitly allowed.
The technology has evolved over several stages:
- Packet filters check the addresses and ports of individual data packets.
- Stateful firewalls (stateful inspection) keep track of existing connections and only let matching responses back in.
- Next-generation firewalls also recognize applications and users, can inspect encrypted traffic under certain conditions, and often include features for intrusion detection, web filtering, and VPN access.
A widely used example of a next-generation firewall is the FortiGate from Fortinet.
A web application firewall (WAF) specializes in protecting web applications and inspects requests to websites and portals.
Typical examples
- At the company site, the firewall separates the office network, guest Wi-Fi, servers, and production systems from one another, see network segmentation.
- Employees working from home connect via a VPN that terminates at the firewall.
- An online shop is reachable only through the necessary ports, and all other access is blocked.
- The firewall on the laptop prevents the device's services from being reachable from outside on an unfamiliar Wi-Fi network.
What companies should keep in mind
- Document rule sets and clean them up regularly, because old or overly broad rules are a common risk.
- Keep firmware and security features up to date, since firewalls are reachable from the internet and are therefore an attractive target themselves, see patch management.
- Allow management access only from the internal network and with multi-factor authentication.
- Analyze logs or forward them to a central system.
- See the firewall as one building block among several: on its own, it protects neither against phishing nor against stolen credentials.