1. Gyanastra
  2. Computer Networks
  3. Firewalls
  4. Firewall Security Policy and Access Rules
Free lesson, no account needed 4 min read 30 practice questions after it

Computer Networks · Firewalls

Firewall Security Policy and Access Rules

Overview

A firewall is a barrier that all traffic must pass through in both directions, and its security policy (access rules) decides which traffic is authorized to pass each way.
It matters because it stops illegal or unauthorized access, protects proprietary code and repositories, and prevents unwanted remote logins to internal machines.

Key concepts

  • Firewall: A barrier through which traffic going in each direction must pass. Any packet entering the network from outside, or leaving the network to the outside internet, must go through the firewall.
  • Firewall Security Policy: Dictates which traffic is authorized to pass in each direction.
  • Access Rules: The rules written in the security policy; they specify which packets can go inside and which packets can go outside.
  • Purpose: A firewall stops illegal or unauthorized accesses; depending on the rules framed, it acts accordingly.
  • Filtering levels: The firewall must be designed to operate as a filter either at the level of IP packets (using information present in the IP headers) or at higher layer protocols (using information present in headers above the IP layer).
  • Single choke point: The firewall defines a single choke point that keeps unauthorized users out of the protected network and prohibits potentially vulnerable services from entering or leaving the network.

How it works

  1. The firewall acts as a barrier on the path of all traffic — both inbound (a packet going inside a network) and outbound (a packet going onto the outside internet).
  2. The firewall security policy (access rules) defines which traffic is authorized to pass in each direction — i.e., which packets may go inside and which may go outside.
  3. The firewall must be designed to operate as a filter:
    • at the level of IP packets, using information present in the IP headers, or
    • at higher layer protocols, using information present in headers above the IP layer.
  4. The firewall defines a single choke point that keeps unauthorized users out of the protected network and prohibits potentially vulnerable services from entering or leaving the network.

Worked examples

Why a firewall is needed:

  • An organization may need to protect its code/repository so that outside people cannot illegally take it.
  • An organization may not want anyone from outside to log in to its machines; the firewall can protect against this.

Revision summary

  • A firewall is a barrier through which all traffic in both directions must pass — not just inbound traffic.
  • The security policy (access rules) decides which traffic is authorized in each direction.
  • Filtering can be done at the IP packet level (IP header information) or at higher layer protocols (headers above IP).
  • The firewall provides a single choke point that keeps unauthorized users out and blocks vulnerable services from entering or leaving the network.
  • Typical uses: protecting proprietary code/repositories from illegal access and preventing unauthorized remote logins to internal machines.

Previous-year exam insights

  • A packet-filtering firewall examines each packet's header fields in isolation (source/destination IP address, source/destination port, protocol) and applies the rule list top-down, taking the first matching rule; an implicit 'deny all' default rule is normally placed at the end.
  • Stateless packet filters cannot detect that a packet belongs to an already-established connection, so they must explicitly permit return traffic (e.g., ACK-set TCP segments or the reverse direction of a connection); stateful firewalls keep a connection table and allow reply packets automatically.
  • An application-level gateway (proxy firewall) terminates the client connection and opens a separate connection to the server, filtering at the application layer; it gives finer control but adds latency and per-application overhead compared with packet filters.
  • A DMZ (screened subnet) is a separate network segment between the external firewall and the internal network that hosts publicly reachable servers, so that compromising them does not expose the internal LAN.
  • Firewalls cannot stop attacks that bypass them: internal attacks by insiders, viruses/malware carried in on removable media or already inside, and traffic over channels not routed through the choke point (e.g., dial-up or wireless links).
  • A firewall cannot protect against traffic that is not forced through it, so the security policy must ensure it is the only path in and out; also, firewalls do not by themselves provide confidentiality or integrity of data — that requires encryption such as a VPN or IPsec.
Pages 1–2 of 2