Home › Cybersecurity wiki › What is a firewall?

Wiki

What is a firewall?

A firewall decides, by rules, which network connections are allowed and which are dropped.
It stands between zones of different trust, such as between the internal network and the internet or between a server and the other machines.

Types of Firewalls

Types of firewalls differ by whether they protect a whole network or only a single device, and by how deeply they inspect traffic.
Both forms are often used together because they cover different places.

Network Firewalls

Network firewalls sit at the edge of a network and filter traffic for many devices at one point.
They suit shared rules, but they do not see what two machines inside the same zone exchange directly if that traffic does not pass through them.

Host-based Firewalls

Host-based firewalls run on the individual computer and check connections to and from that device.
They stay effective when a laptop leaves the corporate network, and they can hold rules that apply only to that system.

Firewall Techniques

Firewall techniques range from a simple comparison of addresses and ports to inspection of application content in newer devices.
The deeper the inspection, the more context is available for the decision and the more computing effort it takes.

Packet Filtering

Packet filtering looks at single packets by source, destination, protocol, and port and decides without memory of earlier packets in the same connection.
It is fast and clear, but it does not know whether a packet belongs to a dialogue that was already allowed.

Stateful Inspection

Stateful inspection remembers allowed connections and permits reply packets that match that state.
Packets that arrive unsolicited and do not continue an existing dialogue are dropped, even if port and address look similar.

Proxy Service

A proxy service accepts the connection, inspects it, and opens a separate connection to the real destination.
Client and server do not see each other directly, and the proxy can interpret protocols more tightly than a pure packet rule could.

Next-Generation Firewalls

Next-generation firewalls add application recognition, user identity, and threat-intelligence hints to address and state checks.
They are meant to tell an allowed application apart from another program that uses the same port.

Firewall Policies and Responses

Firewall policies and responses define what happens when no specific rule matches and how the device reacts to violations.
The baseline stance, either open passage or dropping by default, shapes every later exception.

Default Allow

Default allow lets through everything that is not explicitly forbidden.
That is simple to operate, but it opens every service nobody remembered to block.

Default Deny

Default deny drops everything that is not explicitly allowed.
New services work only after an approval, and unknown traffic stays out.

Firewall Limitations

Firewall limitations exist because the device only sees traffic that passes through it, and because allowed paths can be abused.
Encrypted content and people with legitimate rights sit outside what a pure network rule can recognize.

Firewall Bypassing

Firewall bypassing uses allowed ports, encrypted tunnels, or a computer that is already inside, so the block at the edge no longer applies.
Effective rules therefore also limit outbound traffic and separate zones, instead of only filtering the entrance from the internet.

Insider Threats

Insider threats come from people or accounts that are already in an allowed zone.
A firewall at the outer edge does not see their activity when they reach internal systems that sit in the same zone.

Conclusion

A firewall remains a filter at a defined point, not a complete protection of the network.
Its value depends on a default-deny stance, maintained exceptions, and additional controls on the devices themselves.