Skip to content

Firewall Logs and Rule Outcomes

Firewall logs document policy decisions at a specific device and can be joined to session and translation records for context.

By Reviewed by Jeevesh Kumar

Last updated:

A firewall record describes traffic and a policy outcome at a particular enforcement point. It can support a finding that a device allowed or blocked a packet or session. Determine what the event represents and where it was logged before using it to explain whether communication reached its destination.

Start with the recorded action, rule identifier, interface or zone, direction and timestamp. A nearby service log might show a matching request, but the endpoints can differ after network address translation. Keeping both views in the timeline makes it easier to explain apparent disagreements.

Key terms

Rule tracking ID
A policy identifier that can connect a logged outcome to the historical rule and configuration.
Enforcement point
The hardware or software boundary that evaluates traffic under a policy. Its direction and address view define what a verdict covers.
Stateful firewall
A firewall that can evaluate packets using connection state. A later packet can inherit context from an earlier decision.
Stateless ACL
An access control list that evaluates traffic without retained connection state. Check forward and return directions independently.
Network Address Translation (NAT)
A change to addresses or ports across a network boundary. Preserve the before and after values for correlation.
Session end reason
A product-defined classification of why firewall session state ended. Compare it with recorded action and endpoint observations.
More key terms (2)
Quoted packet
Part of the triggering packet embedded within an ICMP error. It can support a scoped join to the original traffic.
Repeat count
A product-specific aggregate of qualifying observations. Read the grouping fields and period before counting sessions.

Read the Decision and Its Scope

Identify the action, policy reference and the unit that was logged. Some products log a packet match and others emit session records at start or end. A permitted packet can still encounter another control or fail during the application exchange. A blocked packet supports a finding about the observing enforcement point and the fields in that row.

Retain the product’s own action and reason values before normalizing them. A reason can explain why a message exists while the action describes the policy result. A rule name can be edited, reused or present on more than one firewall. Use stable IDs with the device, virtual context and policy version whenever those details are available.

Distinguish a default policy match from a match on an explicitly named rule. Both can have a tracking identifier. A current configuration export may reflect a policy revision after the incident, so find the configuration or change log covering the event time. If the rule can only be matched to a current name, retain that limitation when presenting policy context.

Keep the device and policy context with the rule ID, and use dated configuration or change records to verify the historical match.

Reconstruct the Address View

Record source and destination addresses and ports with transport protocol, interface and direction. Direction is relative to the named device or interface. An inbound record on one interface and an outbound record on another may describe the same communication from two perspectives.

A firewall that performs network address translation (NAT) may log original and translated tuples. Label each side before joining to a packet or application record. Shared public addresses can map to several devices, making the translated port and time important. Keep the mapping and its time basis with the resulting evidence table. PAN-OS traffic log field descriptions

A load balancer or proxy can create a new connection with its own ports. That change differs from simple address translation because the new connection can carry different session behavior. Where a firewall event may belong to traffic passing through one of these intermediaries, use application request identifiers or logs from the intermediary to connect the two network observations. Tuple similarity remains a useful lead within the same network view.

Use Session Time and Counters Carefully

A session-end record can arrive after the action or transfer it summarizes. If the row includes a session start time, duration and receipt time, retain each concept separately. A short investigation window built from receipt times can omit a long-running session that carried relevant activity.

Compare packet and byte counters according to the product’s field definitions and direction. They can describe a session total, one direction or a packet. An end reason such as timeout may explain why the firewall removed state, while service logs can address whether the client completed a request.

Preserve missing and zero values separately. An exported zero can be a recorded count, while a blank value can mean a field was unavailable, excluded or inapplicable to that event type. Consult the raw row and parsing documentation when a central collector substitutes defaults. A report can then explain whether the source recorded no packets in one direction or gave no usable directional count.

Inspect the raw field and parser documentation before using a zero to describe traffic volume.

Evaluate Gaps and Disagreements

Map where firewall logs were available during the incident and which rules logged their decisions. A policy can allow or block traffic without emitting a retained row. Logging settings, retention, export filters and collection failures all affect a search. Bound any negative finding to the devices, rule coverage and time window actually reviewed.

If two records seem inconsistent, check whether they describe separate attempts, different interfaces, a changed policy or different source times. Use a downstream trace or server log to confirm arrival when that is the question. If a firewall became active after failover, look for records under both device identifiers before closing the timeline.

An audit table should let another examiner repeat the comparison. Preserve the raw log location and time basis, identify the rule and interface, and state which destination observation was expected. If that destination source has a retention gap, describe the blocked or allowed observation that is supported and specify the unavailable downstream period. This bounds the finding even when later delivery cannot be verified.

Distinguish Policy Outcomes From Application Outcomes

Consider an investigation into an interrupted service request. A block record close in time establishes a candidate cause, but it may describe a different attempt to the same service. Compare the full observed tuple, whether the event occurred on the expected path, and whether it corresponds to the request interval. If the request was retried, map each candidate policy decision separately.

Where both ends are in scope, a server-side record can show that the request reached the application despite a nearby block. A packet capture on the receiving segment can also show how far the traffic progressed. Check which source can see each protocol stage before interpreting the difference. A blocked setup packet and a completed response may belong to separate connections.

Compare direction, tuple and request interval before linking a block to a service outcome.

Policy action can describe a stage within a security product that has multiple processing stages. Obtain the documented semantics for its traffic, threat and content logs, then preserve the record type on each row. Use the traffic outcome to describe what happened at the enforcement point and any related content or application outcome to support a separate statement about the request.

Locate a Firewall Decision Within an IPv4 Datagram

An IPv4 packet record can describe one fragment of a larger datagram. Use the identification, fragment offset and More Fragments flag to place it. A nonzero offset refers to a later part of the IP payload, so it may lack the transport header where the ports appear. Check whether the firewall logs fragments before or after reassembly. IPv4 fragmentation fields

In a hypothetical authorized review of a routine telemetry exchange, a firewall row records a block for IPv4 identification 314, protocol UDP and a nonzero fragment offset. In a saved trace on the same side of the firewall, search the narrow event window for the same source, destination, protocol and identification. Retain the interface and direction to preserve the observation point.

Find the first fragment and verify its zero offset and More Fragments flag. Use its available UDP header for ports, and mark those as trace-derived fields. Compare offset units before joining because the IPv4 header encodes offsets in eight-byte units and an export may already have converted them to byte positions.

If multiple datagrams share the candidate fields within the window, keep the first-fragment join unresolved. Even with a reliable match, the block row applies to the unit that the product logged. Evidence from the receiving side can address whether the complete telemetry message arrived.

Separate a Sent Reset From State Expiry

A firewall can report why it removed a session. In PAN-OS, tcp-rst-from-server describes a reset attributed to the server side of the connection. An aged-out value describes expiry of firewall session state. Retain the logged action and end reason as separate fields, along with the product version and session subtype. PAN-OS traffic log fields

In a hypothetical practice export for a document viewer, two session-end rows show action allow and the same server address. The session that used client port 51010 has end reason aged-out. The session that used port 51011 has tcp-rst-from-server. Map the ports and addresses to the corresponding capture conversations before attributing either result to the viewer’s request.

Use the two connection tuples to match corresponding capture conversations. Keep policy action and end reason in separate columns.

Suppose the receiving-side capture shows a reset from the server-facing peer on the second connection, and the application’s request record associates the viewer’s request with that connection. Record the capture frame, session row and request record together. This supports a reset observation on the relevant connection. The process or component responsible still requires a source with that view.

For the first connection, state that the firewall reported expiry of session state. A capture ending before the firewall’s logged end cannot verify whether a FIN or reset occurred after the trace ended. Keep that coverage boundary with the state-expiry finding.

Evaluate Forward and Return Policy Separately

An enforcement point can evaluate the return direction independently or carry forward session state from the initiating packet. In Amazon Virtual Private Cloud (VPC), security groups are stateful and network access control lists (ACLs) are stateless. A subnet ACL can therefore require an applicable rule for returning traffic even when a security group allows it as part of existing state. Amazon VPC security groups and network ACLs

In a hypothetical internal catalogue service, an endpoint requests TCP port 443 from local port 52432. The service-side sensor observes the request and a response with source port 443 and destination port 52432. The client-side capture shows repeated requests and no corresponding response. Use the historical subnet association and ACL to evaluate the return packet as its own decision.

Document each direction’s addresses, ports, protocol and boundary. Compare the archived ACL rules in priority order and verify which rule configuration was in effect. If the return packet matches the ACL’s fallback deny rule, describe a policy-based explanation. Where the decision itself is absent, keep the independent evidence that the response reached the service sensor and the client trace did not observe it.

A forwarding or routing issue can produce similar paired traces. An enforcement row from the relevant boundary or an intermediate capture would narrow the explanation. The table of direction-specific evidence should make clear which statements come from captures and which were inferred from archived policy.

Read ICMP Errors Against the Quoted Packet

An Internet Control Message Protocol (ICMP) error includes part of the packet that prompted the error. For an IPv4 Destination Unreachable message, the quoted IP header and initial payload bytes can identify the original direction and, when present, transport ports. Preserve both the outer ICMP addresses and the embedded packet fields. The two headers describe different observations. ICMP Destination Unreachable format, RFC 792

In a hypothetical practice capture, the original UDP request goes from 192.0.2.14 port 52010 to 198.51.100.30 port 5300. A later ICMP Destination Unreachable, Port Unreachable message quotes those addresses and ports. Match the quote to the request within the observed segment and window. If another request shares the tuple, check the quoted header values and retain competing candidates as necessary.

The error reports that the emitting system described the destination port as unreachable. A log search should include legitimate service configurations and packet handling records as well as policy actions. An ICMP error alone leaves the exact rule or component responsible open. Capture location and address translation can change which tuple appears in the original request and the quote.

To practice, produce one row for the request and a second for the ICMP message. Include the quoted protocol, ports and error type and code. Add a firewall decision row only when it can be matched in the correct address view. This avoids counting the outer ICMP path as a second copy of the questioned UDP exchange.

Separate Repeated Sessions from Duplicate Log Delivery

A firewall export can contain aggregate rows and repeated deliveries of an identical log entry. In PAN-OS traffic logs, repeatcnt counts sessions sharing source address, destination address, application and subtype within five seconds. The sequence number identifies a log entry within its log type’s number space. These fields answer different questions about the report and the underlying sessions. PAN-OS traffic log field definitions

Suppose two authorized collectors receive a traffic row from the same firewall serial number, virtual system and log type with seqno 8402 and repeatcnt 4. Compare generation time, subtype and matching raw fields before marking one copy as duplicate delivery. Preserve the distinct collector receipt records in the acquisition notes. The source row reports four sessions under the vendor’s grouping definition.

Record one original entry after verifying the source and raw fields. Preserve both collector receipts and report the grouped session count separately.

One displayed source port in the row does not establish the port for all four sessions because the repeat grouping does not include that field. If the question concerns a particular client request, find a matching packet or session observation at the relevant boundary. A sequence gap in a filtered export also requires checking filter and forwarding scope before interpreting it as a missing firewall decision.

Report the number of original traffic log entries, separately from the counts those entries report. If the review includes both session starts and session ends, account for those subtypes before adding aggregates. Without the corresponding detailed evidence, a sum across the rows can mix overlapping observations of the same session.

Casework Example

Lesson Review

Check Your Understanding

Question 1 of 5· 0 answered
In the pfSense sample, which field lets you locate the matching rule?

Test yourself on Network Forensics with free, timed mocks.

Practice Network Forensics questions

Found this useful? Pass it along.