Firewall

A network security device or software that monitors and controls incoming and outgoing traffic based on predetermined security rules.

Also known as:Network FirewallSecurity Gateway

What is a Firewall?

A firewall is a network security system that monitors and controls incoming and outgoing network traffic based on predetermined security rules. It establishes a barrier between a trusted network and untrusted networks, such as the Internet.

Types of Firewalls

Packet Filtering

  • Examines packets individually
  • Based on IP, port, protocol
  • Stateless, simple rules

Stateful Inspection

  • Tracks connection state
  • Context-aware decisions
  • More intelligent filtering

Application Layer (WAF)

  • HTTP/HTTPS inspection
  • Application-specific rules
  • Protects web applications

Next-Generation (NGFW)

  • Deep packet inspection
  • IPS integration
  • Application awareness
  • User identity tracking

Deployment Models

Network Firewalls

  • Hardware appliances
  • Perimeter protection
  • Internal segmentation

Host-Based Firewalls

  • Software on endpoints
  • OS-level protection
  • Personal firewalls

Cloud Firewalls

  • Cloud-native (AWS SGs, Azure NSGs)
  • Firewall-as-a-Service
  • Virtual appliances

Common Rules

DirectionSourceDestinationPortAction
InboundAnyWeb Server443Allow
InboundAnyAny*Deny
OutboundInternalAny443Allow

Best Practices

  • Default deny policy
  • Principle of least privilege
  • Regular rule review
  • Logging and monitoring
  • Change management