IT Glossary
What is a firewall?
The filter between your network and the rest of the world: it lets through only the traffic the rules allow and blocks the rest, in both directions.
- 6
- sections
- 6
- questions answered
A firewall (paravan de protecție in Romanian) is a device or program that checks network traffic between two zones, for example a company network and the internet, and lets it through or blocks it according to predefined rules: IP addresses, ports, protocols or applications. Windows Firewall runs on every computer and is enabled by default in all editions; according to Microsoft, it blocks unsolicited incoming connections by default and allows outgoing traffic unless a rule says otherwise. On a Mac, the firewall is turned on from System Settings › Network › Firewall. A company meets firewalls in three places: at the edge of the network (the router or a dedicated appliance), on each workstation or server (host firewall) and in front of the website (WAF).
A firewall stops neither phishing nor stolen passwords: traffic started by a user who opens a link or types a password is permitted traffic. The hygiene rule stands: everything not needed stays closed, and a port opened "temporarily" for a vendor or an old application tends to stay open for years. OUG 155/2024 (Romania's NIS2 transposition) does not name the firewall, but DNSC Order no. 1/2026, which details the measures, explicitly requires it (see the NIS2 section). The law asks essential and important entities for security measures proportionate to risk, and a firewall can serve several of them.
Why it matters for your business
Attack surface cut to the minimum
Ports and services exposed only where strictly necessary — the attackers' automated scanners move on to easier targets.
The website shielded from application attacks
A WAF filters injections and exploits before they reach the application — a safety layer even for imperfect code.
Visibility into traffic
Firewall logs show which connections were attempted and blocked — the raw material of any security investigation.
How a firewall works
On many network firewalls (routers, dedicated appliances) the rules are read in order and the first rule that matches a connection decides: allow or block. Windows Firewall has no ordering: an explicit block rule takes precedence over an allow rule, and a more specific rule over a more general one (Microsoft). For incoming traffic the healthy setting is "blocked unless explicitly allowed". A stateful firewall remembers connections started from inside, so the reply from a site you opened gets through, while a connection started by a stranger on the internet is stopped.
An example rule set for a small company: allow TCP 443 (HTTPS) to the web server, block Remote Desktop (default port TCP 3389, per Microsoft) from the internet, and block every other incoming connection. The firewall logs record what was blocked and from where, the raw material of any security investigation.
Types of firewall
NIST SP 800-41 Rev. 1, "Guidelines on Firewalls and Firewall Policy" (September 2009), groups firewalls by technology: packet filtering (decides by addresses, ports, protocol), stateful inspection (tracks connections), application firewalls or application-proxy gateways (understand the application protocol, such as HTTP) and host-based (personal) firewalls installed on each computer.
The market also uses the term NGFW (next-generation firewall) for appliances that add application identification and intrusion prevention. By form, a firewall can be a hardware appliance, software, or a cloud or virtual service.
Want an estimate for your project?
Message us on WhatsApp. We reply the same working day, and the first 30-minute call is free.
Network firewall, WAF and host firewall: the difference
A network firewall decides by IP, port and protocol between two networks. A host firewall does the same on a single device, for example Windows Firewall. A WAF (web application firewall) is different: according to OWASP, it is an application firewall for HTTP applications that applies a set of rules to an HTTP conversation and protects servers, meaning websites and APIs.
The difference matters because a SQL injection attack arrives over port 443, which the network firewall leaves open anyway, so only the WAF looks inside the HTTP request. At Cloudflare, the Free Managed Ruleset is available on all plans, including Free, while the Cloudflare Managed Ruleset and the OWASP Core Ruleset require a Pro plan or higher. A firewall is neither a proxy nor a VPN: a proxy forwards traffic on your behalf, a VPN encrypts it between two points, and a firewall filters it.
Firewalls and NIS2 (OUG 155/2024)
Under OUG 155/2024, art. 11(1), essential and important entities take technical, operational and organisational measures proportionate to the risk. Art. 13 lists the minimum measures (points a–j) and does not name the firewall. A firewall still serves several of them: point e) security in the acquisition, development, maintenance and decommissioning of networks and information systems, point f) access control policies and asset management, and point i) basic cyber hygiene practices.
The detailed technical requirements come through DNSC Order no. 1/2026 (Official Gazette no. 712 bis of 27 August 2026), issued under art. 12(1), and it does name the firewall. Annex 1 contains control PR.IR-01.1 (firewalls installed, configured and actively maintained on all networks, a key measure) and control DE.CM-01.1 (firewalls at network boundaries, including at endpoint level). Both apply at Basic, Important and Essential levels. Who is covered, the deadlines and the penalties are explained on the pages about OUG 155/2024 and NIS2.
Frequently asked questions
What does firewall mean?
A firewall is a device or program that filters network traffic by predefined rules, allowing or blocking connections between two zones such as a company network and the internet. In Windows it is a built-in feature, active by default, and it sits at the edge of the network in appliances and routers.
What is the difference between a firewall and antivirus software?
A firewall controls network traffic, meaning who talks to whom, while antivirus controls the files and processes on the computer. A company needs both, but neither stops phishing, where the user starts the connection. That is why staff training and 2FA matter as well.
What is the difference between a firewall and a WAF?
A firewall filters traffic by IP, port and protocol, while a WAF filters HTTP requests to a website or API and protects the server from attacks such as SQL injection. At Cloudflare, the Free Managed Ruleset is available on all plans, including Free; the Managed and OWASP rulesets need Pro or higher.
Is the built-in Windows firewall enough for a company?
On a workstation it is a good layer: it is enabled by default, blocks unsolicited incoming connections and should stay on. It cannot see the whole network, so a company also needs a perimeter firewall that is not left on factory settings, and a WAF for the website.
Is a firewall required by law?
Yes, for essential and important entities under NIS2. OUG 155/2024 does not name the firewall, but DNSC Order no. 1/2026, issued under art. 12(1), requires at every level (Basic, Important, Essential) firewalls installed, configured and maintained on all networks (control PR.IR-01.1) and at network boundaries, including on endpoints (DE.CM-01.1). Companies outside NIS2 have no obligation that names the firewall.
How do you check that the firewall is on?
On Windows, open the Windows Security app and choose Firewall & network protection, where each network profile shows its status. On a Mac, go to System Settings › Network › Firewall and turn it on from there if it is off.
Let’s talk about your project
Book a free 30-minute call or send us an email. We reply the same working day.
office@northdan.com · +40 750 252 851