Networking Basics

What Is a Network Firewall?

A network firewall enforces traffic rules between networks or devices. It permits, blocks or inspects connections based on configured policy and available connection context.

A stateful firewall tracks connection state and can allow response traffic for an established session. Rules may consider source and destination addresses, ports, protocols, interfaces and application context.

Two practical examples

Example 1. A home router blocks unsolicited inbound connections by default.

Example 2. A company firewall allows employees to reach approved business services while restricting direct access to internal servers.

What to check in practice

  • Identify the exact device, software version or service involved before changing a setting.
  • Record the current configuration so you can reverse a change that causes problems.
  • Test one variable at a time and confirm the result using reliable measurements or logs.
  • Use the official documentation for model-specific limits, compatibility and safety requirements.
Important consideration

A firewall cannot compensate for every insecure application or stolen credential. Keep rules narrow, review logs and remove obsolete exceptions.

Common question

What is the first thing to do? Start by identifying the exact use case and the system involved. Then verify the relevant settings or measurements before making changes. A general explanation is a starting point, not a substitute for checking your own environment.

TryHook publishes independent educational explainers. Product names and technical standards belong to their respective owners. Some pages may eventually contain clearly disclosed affiliate links; editorial explanations are not paid endorsements.

Explore more in Networking Basics

Continue with related beginner-friendly guides.

What Is a Fiber-Optic Cable?Read guideWhat Is GPON?Read guide