This article was automatically translated from the original Turkish version.
A firewall is a software and/or hardware-based security mechanism that controls access according to a defined security policy by inspecting incoming and outgoing traffic in a computer network. Its primary purpose is to protect a private network from unauthorized access, malicious software, and network attacks originating from the external world such as the internet.

Güvenlik duvarın ve tehditleri simgeleyen görsel (Anadolu Ajansı)
Firewalls operate by filtering data packets according to predefined rules. These rules are configured based on characteristics of network traffic such as source IP address destination IP address port number and protocol type. These controls are grounded in two fundamental security approaches:
In enterprise networks these two approaches are often applied in combination. Strict rules are enforced for regions such as DMZ (Demilitarized Zone) while user internet access may be governed by more permissive rules.
Firewalls are classified according to the following technical architectures:
Filtering is performed solely based on packet header information such as IP address port and protocol. Previous connection states are not considered. It is simple and fast but weak in detecting attacks.
Decisions are made based on connection states. The firewall tracks whether a connection has been initiated and whether a session is still active. It is more secure but consumes more processor and memory resources.
Acts as an intermediary between client and server examining traffic at the application level. Used for protocols such as HTTP FTP and SMTP. Provides content filtering and user authentication. Can operate in transparent or non-transparent modes.
Tracks TCP sessions without inspecting packet contents. SOCKS protocol is an example. Operates at the connection layer and provides low-level filtering.
Enhances privacy by preventing private IP addresses from being visible externally. Although primarily used for address management it also contributes to security.
Modern firewalls are integrated with the following services:
The performance of firewalls should not be evaluated solely based on network parameters such as bandwidth or number of sessions but also by the extent to which they block malicious traffic. Filter coverage can be measured by integrating with IP data from independent blacklisting providers. Additionally the effectiveness of firewalls can be assessed by using them in conjunction with multi-port IDS systems.
Firewalls must be configured in accordance with the organization’s access control policy. It must be clearly defined who can access which services when and in which direction. This is achieved through access control lists ACLs time-based rules and user authentication mechanisms. Network security policies must be documented in writing and integrated with all system components.

The visual representing the 'encryption' feature of the firewallAnadolu Ajansı)
Although firewalls form a strong defense line they have certain limitations:
Firewalls are one of the fundamental security components in modern computer networks. These systems which operate at different levels and through various methods are indispensable for filtering network traffic enforcing access control and preserving system integrity. However effective use requires more than just installation; it must be supported by security policies up-to-date threat intelligence and continuous monitoring processes.
GeeksforGeeks. "Introduction of Firewall in Computer Network." Accessed May 15, 2025.Accessed Adresi.
Karaaslan, Enis. "Ağ Güvenlik Duvarı Çözümü Oluştururken Dikkat Edilmesi Gereken Hususlar." Ege Üniversitesi Network Güvenlik Grubu.Accessed Adresi.
Ottekin, M. Fikret. “Güvenlik Duvarı Etkinlik Ölçümü.” Uluslararası Bilgi Güvenliği Mühendisliği Dergisi 3, no. 2 (2017): 10–15.Accessed Adresi.
Soğukpınar, İsmail. "Güvenlik Duvarı (Firewall) Notları." Gebze Yüksek Teknoloji Enstitüsü Bilgisayar Mühendisliği Bölümü.Accessed Adresi.
Teke, Abdullah, Enis Karaaslan, and Halil Şengonca. "Bilgisayar Ağlarında Güvenlik Politikalarının Uygulanması." Ege Üniversitesi Bilgisayar Mühendisliği Bölümü.Accessed Adresi.
İstanbul Bilgi Üniversitesi. "Firewall." Bilgi İşlem Daire Başkanlığı. Accessed May 15, 2025.Accessed Adresi.

Working Principle and Approaches
Components and Types
Static Packet Filtering (Stateless Packet Filtering)
Dynamic Packet Filtering (Stateful Packet Filtering)
Application Layer Gateways (Proxy Firewall)
Circuit-Level Gateways
NAT (Network Address Translation)
Integrated Services
Effectiveness and Performance Measurement
Alignment with Security Policies
Limitations