Know and understand firewall including its purpose
8 Safety and Security
Firewalls: Purpose and Function 🔐
A firewall is like a security guard at the entrance of a building. It checks every person (or data packet) that wants to enter or leave and decides whether they are allowed. The main purpose of a firewall is to protect a network from unwanted or harmful traffic while still letting legitimate communication flow.
Key Features of a Firewall 🚦
- Packet Filtering: Looks at the header of each packet (source IP, destination IP, port) and allows or blocks it based on rules.
- Stateful Inspection: Keeps track of the state of a connection (e.g., a TCP handshake) and only allows packets that belong to a valid session.
- Proxy Service: Acts as an intermediary, hiding the real IP address of the internal network.
- Next‑Gen Features: Includes intrusion detection, application awareness, and content filtering.
How Firewalls Work: Step‑by‑Step Guide 🛠️
- Incoming packet arrives at the firewall.
- Firewall checks the packet against its rule set.
- If the packet matches a permit rule, it is forwarded to the destination.
- If it matches a deny rule, the packet is dropped and an alert may be logged.
- For stateful firewalls, the firewall also verifies that the packet is part of an established session.
Firewall Types Explained 📊
| Type | How It Works | Common Example |
|---|---|---|
| Packet Filtering | Checks packet headers only. | Basic home routers. |
| Stateful Inspection | Tracks connection state. | Enterprise firewalls. |
| Proxy | Forwards requests on behalf of users. | Web filtering proxies. |
| Next‑Gen | Adds IDS/IPS, application control. | Modern corporate firewalls. |
Why Firewalls Matter in Everyday Life 🌐
Imagine your school’s computer lab. Without a firewall, any student could try to download harmful software or access restricted websites. The firewall acts like a gatekeeper, ensuring that only approved traffic (e.g., school-approved educational sites) can pass through, keeping the network safe for everyone.
Quick Quiz: Identify the Firewall Type ❓
- Which firewall type forwards requests on behalf of users, hiding their real IP address?
- Which type keeps a record of active connections to ensure packets belong to a valid session?
- What is the primary difference between a basic packet filter and a next‑gen firewall?
Answers: 1️⃣ Proxy, 2️⃣ Stateful Inspection, 3️⃣ Next‑Gen adds IDS/IPS and application awareness.
Revision
Log in to practice.
3 views
0 suggestions