Cybersecurity

What is a Firewall?

A firewall monitors and filters network traffic based on security rules, acting as a barrier between trusted and untrusted networks.

A firewall is a security system that monitors and controls network traffic based on rules. It sits between a trusted network (like your computer or company network) and untrusted ones (like the internet), deciding what traffic to allow or block.

How It Works:

  1. Traffic arrives as packets of data
  2. The firewall inspects each packet against its rules
  3. Allowed traffic passes through
  4. Disallowed traffic is blocked or dropped

Types of Firewalls:

  • Packet-filtering: Checks source, destination, and ports
  • Stateful: Tracks the state of active connections
  • Application-layer: Understands specific protocols like HTTP
  • Next-generation (NGFW): Adds deep inspection and threat intelligence

What It Protects Against:

  • Unauthorized access: Blocking unwanted connections
  • Malware communication: Stopping data exfiltration
  • Port scanning: Hiding open services

FAQ

Is a firewall enough to stay secure?

No. A firewall is one important layer, but real security needs multiple defenses: updates, strong authentication, encryption, and monitoring. This is called defense in depth.

What's the difference between hardware and software firewalls?

A hardware firewall is a dedicated device protecting a whole network. A software firewall runs on an individual device. Many setups use both together.

Promote your content

Reach over 400,000 developers and grow your brand.

Join our developer community

Hang out with over 4,500 developers and share your knowledge.