๐ Firewalls โ Exam Notes (Network Security)
๐ 1. Definition
A Firewall is a network security device or software that monitors and controls incoming and outgoing network traffic based on predefined security rules.
๐ Simple idea:
A firewall acts like a security guard between a trusted network (internal) and an untrusted network (internet).
๐ฏ 2. Objectives of a Firewall
- Prevent unauthorized access
- Protect internal network from external threats
- Allow safe and legitimate communication
- Monitor and log network traffic
๐งฑ 3. Types of Firewalls
๐ธ 1. Packet Filtering Firewall
โ Fast
โ Less secure (no deep inspection)
๐ธ 2. Stateful Inspection Firewall
- Tracks the state of connections.
- Allows only valid sessions.
โ More secure than packet filtering
๐ธ 3. Proxy Firewall (Application-Level Gateway)
- Acts as an intermediary between user and server.
- Inspects application data.
โ High security
โ Slower performance
๐ธ 4. Next-Generation Firewall (NGFW)
-
Advanced firewall with:
- Deep packet inspection
- Intrusion prevention
- Application awareness
โ Very strong security
๐ 4. How a Firewall Works
-
Data packet arrives
-
Firewall checks rules (ACL)
-
Decision:
-
Log the activity
๐ 5. Firewall Rules (ACL - Access Control List)
๐ก๏ธ 6. Firewall Deployment Types
๐ธ Network-Based Firewall
๐ธ Host-Based Firewall
- Installed on individual devices.
โ ๏ธ 7. Advantages of Firewalls
- Blocks unauthorized access
- Reduces risk of attacks
- Controls network traffic
- Provides logging and monitoring
โ 8. Limitations of Firewalls
- Cannot stop internal attacks
- Cannot prevent all malware
- Requires proper configuration
- May reduce performance
๐จ 9. Firewall vs Other Security Tools
| Tool |
Function |
| Firewall |
Blocks/filters traffic |
| IDS |
Detects attacks |
| IPS |
Detects & prevents attacks |
๐ง 10. Best Practices
- Use strong firewall rules
- Regularly update firewall
- Monitor logs
- Combine with other security tools
๐ 11. Important Concept
๐ธ Default Deny Rule
Block all traffic unless explicitly allowed
๐ This is the safest firewall policy.
๐ผ๏ธ 12. Diagram Descriptions
๐ Firewall Placement
- Internet โ Firewall โ Internal Network
๐ Packet Filtering
- Packets checked against rules โ Allow/Block
๐ Proxy Firewall
- User โ Firewall (Proxy) โ Server
๐งพ 13. Real-Life Examples
- ๐ข Company networks protected by firewalls
- ๐ Home routers have built-in firewalls
- ๐ Websites use firewalls to block attackers
- ๐ป Personal computers use host-based firewalls
๐ Likely Exam Questions
- Define firewall and its purpose.
- Explain different types of firewalls.
- How does a firewall work?
- What is ACL in firewall?
- Differentiate between packet filtering and stateful firewall.
- What are advantages and limitations of firewalls?
- Explain network-based vs host-based firewall.
- What is default deny rule?
- Compare firewall, IDS, and IPS.
- Write short notes on:
- Proxy firewall
- NGFW
- Firewall rules
๐ Quick Summary / Conclusion
- A firewall is a key security tool that controls network traffic.
- It acts as a barrier between trusted and untrusted networks.
- Types include packet filtering, stateful, proxy, and NGFW.
- Firewalls use rules (ACLs) to allow or block traffic.
- Best security comes from combining firewalls with other tools.
๐ In short:
Firewalls are essential for protecting networks by filtering and controlling traffic based on security policies.