Introduction of Firewall in Computer Network (original) (raw)

Last Updated : 28 Apr, 2026

A Firewall is a network security system, available as hardware or software, that monitors and controls incoming and outgoing traffic based on predefined rules. It acts like a security guard, filtering data packets to either:

firewal

Firewall acting as a barrier between LAN and WAN.

Importance

Working of Firewall

A firewall inspects all incoming and outgoing traffic and decide whether to allow or block it.

  1. All data packets entering or leaving the network must first pass through the firewall.
  2. The firewall examines each packet against predefined security rules set by the organization.
  3. If the packet matches safe rules, it is allowed; if it is suspicious, blacklisted, or contains malicious content, it is blocked.
  4. Blocked or unusual traffic is recorded in logs, and real-time alerts may be generated for serious threats.
  5. Since it is not possible to define every rule, the firewall applies a default policy (accept, reject, or drop). Setting the default policy to drop or reject is considered best practice to prevent unauthorized access.

**Default Policy: A firewall needs a default action (accept, reject, or drop) for traffic not covered by rules. For example, if no rule exists for SSH, the default applies. To prevent unauthorized access, it is best set to drop or reject.

Types of Firewall

Firewalls can be categorized based on their generation.

1. Network Placement

2. Systems Protected

3. Data Filtering Method

4. Form Factors