Read a sample: 1. What a Firewall Rule Decides
A request for network access often arrives in the simplest possible language: “The staff computers need to reach the scheduling system.”
That sentence explains a business need, but it is not yet a firewall rule. It does not say which staff computers, where the scheduling system runs, or what kind of connection the system accepts. It also does not explain whether every device in the building should be able to reach the system, or whether access is needed indefinitely.
A firewall rule turns part of that human request into a decision a network device can apply to traffic. To review the rule well, you need to understand both sides: what the business is trying to accomplish and what the rule actually permits.
This chapter introduces that distinction through a small fictional company. You do not need prior firewall experience or a particular vendor’s product. The goal is to develop a habit that will serve you throughout the book: describe the connection before deciding what should be allowed.
Imagine a business called Cedar & Finch, a local design and print company. Its employees use office computers to manage orders, prepare artwork, and check production schedules. The company also operates a scheduling application on an internal server. Visitors can connect their phones and laptops to a separate guest wireless network.
For our example, Cedar & Finch organizes its network into three areas:
- The staff network contains employee workstations.
- The server network contains business applications, including the scheduling server.
- The guest network provides visitors with internet access but is not intended for access to internal business systems.
A firewall sits between these areas and examines traffic passing through it. The staff network and the guest network may both have devices in the same building, but they do not have the same reason to reach the scheduling server. Separating the networks gives the company a place to make different access decisions.
That separation is a trust boundary. It is a point where traffic moves between environments with different expectations or levels of control. The boundary does not mean that every device on one side is trustworthy or that every device on the other side is dangerous. It means the organization has a reason to treat traffic crossing between them deliberately.
For example, Cedar & Finch manages its staff workstations and expects employees to use the scheduling application. It does not manage visitors’ personal devices or expect them to connect to that application. A rule can reflect this difference by permitting a defined staff-to-server connection without granting the same connection from the guest network.
The firewall is not necessarily the only control protecting the scheduling system. The application may require a user account, the server may have its own firewall, and administrators may limit what each signed-in user can do. The network firewall answers a narrower question: should this traffic be allowed to pass through this point?
When a staff member opens the scheduling application, the workstation and server exchange data over the network. That data travels in pieces called packets. Each packet contains information used to deliver it, along with data associated with the communication.
A packet has a source and a destination. You can think of these as the sender and intended recipient for that piece of traffic. Depending on the protocol, the traffic may also include port information that helps identify the service or application endpoint involved.
A packet-filtering firewall examines selected characteristics of traffic and applies configured rules. Common characteristics include:
- The source address or network.
- The destination address or network.
- The network protocol.
- A source or destination port, when applicable.
- The direction or interface through which traffic is being evaluated.
A rule associates a set of conditions with an action, such as allowing or denying matching traffic. In plain language, one possible rule might say:
> Allow traffic from the staff network to the scheduling server using TCP destination port 443.
That sentence describes a particular kind of access. It does not say that staff devices may reach every server, that guest devices may reach the scheduling server, or that every service on the scheduling server is open to staff.
In this example, TCP is the transport protocol used for the connection, and destination port 443 identifies the service endpoint the scheduling application is configured to use. You do not need to memorize the mechanics of TCP or ports yet. For now, notice that the protocol and destination port help distinguish this connection from other traffic between the same devices.
The firewall’s view is also limited. A rule that matches a staff workstation’s address does not, by itself, prove which person is using the workstation or whether that person is authorized inside the application. Some firewall products can use additional identity or application information, but the basic address-and-port rule in our example does not make those determinations.
Suppose Maya, Cedar & Finch’s operations manager, submits this request:
> Staff members need to open the scheduling application from their office computers.
The request is reasonable as a statement of purpose. It tells the reviewer who needs the service in business terms and what they want to do. It does not yet specify a network permission.
A junior administrator, Leon, checks the details with the application owner and the network team. For this fictional example, they confirm the following:
- The office computers that…