What is a firewall? The filter between your network and the rest of the world.

Bonbay Updated 3 min read

How it decides.

A firewall reads each connection: where it comes from, where it is going, on which port and, for recent models, which application is carrying it. It compares it against its list of rules, from top to bottom, and applies the first one that matches: allow, block, or log.

The right starting rule is default deny: anything not explicitly allowed is blocked. This applies to incoming traffic and to outgoing traffic too: a computer with no reason to reach an unknown server on an unusual port should not be able to.

An SME’s four firewalls.

TypeWhat it protectsWhat it does not do
Router firewallThe network entrance, by refusing unsolicited connections from the internetFew logs, no zones, no filtering of outgoing traffic
Next-generation hardware firewallThe whole network: separate zones, application recognition, web filtering, remote accessNothing for remote workers off the VPN, or for online services
Windows or macOS firewallEach computer, including against other computers on the same networkAn overall view: it is set computer by computer, or from a central console
Web application firewall, or WAFA website or web application, against malicious requestsThe internal network and computers

Common hardware firewall brands among SMEs include Stormshield, designed in France, Fortinet, Sophos and WatchGuard.

The workstation firewall.

The Windows firewall, called Windows Defender Firewall, is on by default. It is sometimes switched off to fix a problem and then forgotten. Yet it is what stops a compromised computer from attacking another: ransomware often spreads from machine to machine through Windows file sharing or remote administration.

The useful setting is simple: workstations accept no incoming connections from other workstations, and only identified servers and administration tools are allowed in. You set it once and for all through a Group Policy or Microsoft Intune. On a Mac, the built-in firewall is off by default and is turned on in System Settings, under Network.

The WAF, in front of your website.

A website must, by definition, accept connections from everyone, so a traditional firewall lets that traffic through. A WAF, short for web application firewall, reads the content of requests and blocks those that look like an attack: code injected into a form, rapid-fire login attempts on the admin page, bots looking for a vulnerable plugin.

It is offered by hosting providers, by services placed in front of the site such as Cloudflare, or as a WordPress plugin. It does not replace updates: it buys time between a flaw being published and being fixed. To find out what an attacker could still do, see the web penetration test.

What it cannot see.

A firewall judges connections, not their intent. A malicious email arrives via the mail service, an authorised connection. A stolen password used on Microsoft 365 never even passes through your premises. Malware communicating over HTTPS with an ordinary-looking site resembles normal browsing.

The firewall is therefore one layer among others, alongside two-factor authentication, EDR on computers and offline backups, following the principle of defence in depth. Practical network settings, port forwarding, zones and Wi-Fi, are on the network security page.

Bonbay. Updated 15 November 2026.

Your questions.

Can Windows Firewall stay switched off behind a hardware firewall?

No. A hardware firewall filters what goes in and out of the building, not traffic between two computers on the same network. Ransomware often spreads through this internal traffic. So the Windows firewall stays on on every computer, configured centrally.

What does a next-generation firewall add?

It recognises applications, not just ports: for example, it can tell file sharing from ordinary browsing. It often adds intrusion detection, web filtering and a gateway for remote access. Its logs also help you understand an attack after the event.

Is a WAF useful for a brochure website?

For a WordPress site, often yes, because its plugins are a frequent target for bots. Many hosting providers and services such as Cloudflare offer one, sometimes included in the package. It does not replace updating the site: it blocks the most common attacks in the meantime.

Who should administer the firewall?

A named person, in-house or external, who keeps the list of rules and knows why each one exists. Rules added one day for a one-off need and then forgotten are a common weakness. An annual review of the rules, with the reason and owner for each, fixes this.

Does a firewall need updating too?

Yes, and quickly: a firewall is exposed to the internet by nature, and its vulnerabilities are hunted down as soon as they are published. Follow the vendor’s alerts and those from CERT-FR. Also check the model’s end-of-support date, and plan its replacement before then.

Further reading.

Le sujet plus largeCyber glossaryThis glossary explains the cybersecurity terms business leaders come across most often, grouped into three families: threats, such as ransomware and phishing; protections, such as two-factor authentication and firewalls; and monitoring services, such as SOC, SIEM and MDR.On the same subjectSOCThe team that monitors alerts, investigates and responds, in-house or outsourced.On the same subjectMDRAn external team monitors your workstations and acts: the service built around EDR.On the same subjectSOARThe software that runs the response to an alert on its own, under an analyst's supervision.On the same subjectDefence in depthStack independent protections so that a single failure is never enough.On the same subjectSIEMThe tool that collects logs, links them and produces the alerts the SOC reads.On the same subjectZero trustChecking every access against identity, device and context, step by step.On the same subjectNetwork securityFirewall, zones, guest Wi-Fi, remote access: the settings that lock down the network.On the same subjectVPNThe encrypted tunnel that connects a remote employee to the company network.On the same subjectWeb and application testingA web and application penetration test puts a website, online shop, business application or API to the test.Bonbay Académie · With another serviceCours d'intelligence artificielleLes cours et le glossaire de Bonbay Académie pour comprendre l'IA avant de s'en servir.Bonbay IA · With another serviceComprendre l'intelligence artificielleLe guide et le lexique de Bonbay IA : définitions, types d'IA, limites.Bonbay, le groupe · With another serviceRançongiciel : vos sauvegardes tiendraient-elles ?Les questions à se poser sur ses sauvegardes, par le groupe Bonbay.