info@soykanbilisim.com.tr +90 535 011 07 27 Pzt–Cum 09:00–18:00 · Cmt 09:00–13:00

What Is a Firewall? A 2026 Guide for Businesses

From packet filtering to next-generation firewalls (NGFW), from WAFs to cloud firewalls: firewall types explained in plain language. Which ones does your business need, and how do you build layered protection?

What Is a Firewall? A 2026 Guide for Businesses

"We have a firewall" is something we hear a lot. But which one? Today the word firewall is used for very different products, from a simple filter in your router to an advanced cloud service. In this article we separate the types in plain language and explain how to build the right setup for your business.

What does a firewall do?

A firewall allows or blocks traffic going into and out of your network or server according to predefined rules. The most basic rule is: anything not explicitly allowed is denied (*default deny*). That way only the services you actually need (for example ports 80 and 443 for a website) stay reachable from the outside.

Types of firewalls

1. Packet filtering

The simplest type. It looks at each packet on its own: where it comes from, where it goes, which port. It is fast but has no idea about the context of a connection. Using it on its own is no longer recommended.

2. Stateful firewall

It tracks the state of connections. It recognises and accepts the reply to a connection started from inside, and rejects packets from outside that don't belong to any connection. iptables/nftables on Linux and its friendly front end UFW, as well as Windows Defender Firewall, belong to this group. Almost every firewall today is built on this approach.

3. Application-layer (proxy) firewall

It sits in the middle of the traffic and inspects its content at the application level. It offers deeper control but uses more resources.

4. Next-generation firewall (NGFW)

On top of stateful inspection it adds deep packet inspection (DPI), intrusion prevention (IPS), application awareness, URL filtering and inspection of encrypted traffic. It usually runs as a hardware or virtual appliance at the edge of an office network.

5. Web application firewall (WAF)

It protects your web application, not your network. By inspecting HTTP requests it stops SQL injection, XSS and similar attacks before they reach your site. You need it for attacks a network firewall cannot see. (We cover this in detail in a separate article.)

6. Host-based firewall

It runs directly on the server or computer. It protects that machine even if another device on the same network is compromised. It should always be enabled on every server running in the cloud or on a VPS.

7. Cloud firewall (FWaaS)

Delivered as a service: providers like Cloudflare filter traffic in their own network before it ever reaches your server. DDoS protection and WAF usually live in this layer.

Which one do I need?

Short answer: more than one. These types are not alternatives; they complement each other. No single product can stop every kind of attack. The layered setup we recommend looks like this:

  • Edge (cloud) layer: DDoS protection, bot filtering and a WAF through a service such as Cloudflare
  • Provider / network layer: only the necessary ports open in your VPS provider's firewall
  • Server layer: a "deny by default" rule with UFW / nftables, rate limiting for SSH and fail2ban
  • Application layer: up-to-date software, strong passwords, two-factor authentication

If you have an office, add an NGFW at the edge of the office network.

Common mistakes

  • Setting up a firewall and never reviewing the rules: unnecessary open ports pile up over time.
  • Leaving database ports (3306, 5432, 6379, 27017) open to the internet.
  • Writing rules for IPv4 only and forgetting IPv6.
  • Not knowing that ports published with Docker can bypass the firewall.
  • Not keeping logs, or keeping them and never looking at them.

Conclusion

A firewall is not a product you install once and forget; it is a process that needs regular maintenance. Built with the right layers, it stops the vast majority of attacks before they even reach your server.

Let's review your server's or office network's firewall setup together: contact us for a free initial assessment.

Back to all posts Share on WhatsApp

Let's plan your project together

Tell us what you need; we'll send you the right solution and a clear quote the same day.

Chat with us