Sophos Firewall rule not matching: check causes
When a firewall rule does not match, the firewall is rarely “broken”. Usually one condition does not fit, a more general rule is above it, NAT changes how the traffic is seen, user matching is not fulfilled or logging is not enabled cleanly.
This checklist helps work systematically instead of changing rules at random.
First principle: the first matching rule wins
Sophos Firewall processes firewall rules from top to bottom. As soon as a rule matches, subsequent rules are no longer checked. The same basic principle also applies to NAT rules.
Important:
- The position in the list determines evaluation.
- The Rule ID is only a reference and says nothing about the current order.
- Rule groups help with overview, but they do not add separate match logic.
- A general rule above can completely “swallow” a more specific rule below.
If a rule does not match, the position should therefore be checked first.

Reset the rule counter
When matches are unclear, resetting the rule counter helps.
- Open Rules and policies > Firewall rules.
- Find the affected rule.
- Open the three-dot menu.
- Select Reset data transfer count.
- Reproduce the traffic.
- Check whether the counter increases.

If the counter does not increase, the rule does not match. If it increases but the application still does not work, the issue is more likely related to Security Profiles, NAT, routing, return path or the target system.
Check matching fields
A firewall rule only matches when all relevant criteria fit.
| Field | Typical mistakes |
|---|---|
| Source zones | Wrong zone, VLAN is in another zone, VPN traffic comes from VPN |
| Source networks and devices | Wrong object, wrong IP, incomplete host group |
| Destination zones | Wrong destination zone, especially with DNAT or VPN |
| Destination networks | Pre-NAT and post-NAT view confused |
| Services | Missing port, TCP/UDP mixed up, application uses additional ports |
| Users or groups | User is not authenticated or wrong group |
| Schedule | Schedule does not currently apply |
| Exclusions | Traffic is excluded from the rule and processed further below |

For web traffic, also check whether QUIC is active. If browser traffic uses UDP 443, some web filtering and scanning expectations behave differently than with classic HTTPS over TCP.
More details: Sophos Firewall and the QUIC protocol.
Read DNAT correctly
With DNAT, the view in firewall rules is especially important. As a rule of thumb:
Firewall rules for DNAT traffic use the destination zone after NAT, but the destination IP before NAT.
Example:
- An external client connects to the WAN IP of the firewall.
- NAT translates to an internal server in the
DMZ. - The firewall rule uses the zone of the internal server as Destination zone, for example
DMZ. - The Destination network remains the public IP or WAN object that the client contacted.
If this combination is wrong, the NAT rule may look correct, but the firewall rule still does not match.
More details: Publish a server via DNAT on Sophos Firewall.
Check NAT rules
NAT does not allow traffic. NAT only translates. A matching firewall rule is always required as well.
Under Rules and policies > NAT rules, check:
- Is the matching NAT rule above more general NAT rules?
- Is the rule enabled?
- Do Original source, destination and service match?
- Do Translated source, destination and service match?
- Is
MASQor a fixed SNAT IP used? - Is there a Linked NAT Rule that matches unexpectedly?
- Is there a generic SNAT rule matching before a more specific rule?
For simple environments, Sophos usually recommends standalone NAT rules instead of creating a Linked NAT Rule for each firewall rule.
More details: Understand NAT on Sophos Firewall: SNAT, DNAT, MASQ, PAT.
Check routing and SD-WAN
If the rule matches but the connection does not work, routing may be the problem.
Check:
- Is there a matching default route?
- Is there a static route?
- Does an SD-WAN route apply?
- Is the gateway active?
- Are there return routes on the target system or in the remote network?
- Is the return path symmetric?
- Does traffic go through VPN, MPLS or another interface than expected?
Important: Policy tester does not fully represent SD-WAN routing. It is very helpful for firewall, SSL/TLS and web policy decisions, but it does not replace a real packet-flow test.
More details: Change routing priority on Sophos Firewall.
Enable logging
Without logs, troubleshooting becomes painful. Check two places:
- Log firewall traffic must be enabled in the firewall rule.
- Under System services > Log settings, the correct log type must be enabled locally, for Sophos Central or for syslog.
The Log viewer typically shows firewall sessions when the firewall ends a connection and receives a Destroy event. If an internet connection simply drops, not every session may appear as expected.
Open Log Viewer in the top-right corner of the WebAdmin console. Useful filters are:
- Source IP
- Destination IP
- Port or service
- Rule ID
- Rule name
- Action
- User
- NAT rule ID

More details: Sophos Firewall services and log files explained.
Use Packet Capture
If Log Viewer and rule counters are not enough, use Diagnostics > Packet capture.
The key question is:

| Observation | Meaning |
|---|---|
| No packet arrives | Problem is before the firewall: client, switch, VLAN, gateway, provider, Cloud Security Group |
| Packet comes in but does not go out | Check firewall rule, NAT, routing or security feature |
| Packet goes out but no reply comes back | Check return route, target system, NAT or external blocking |
Packet is shown with Violation | Policy or security feature blocks it |
| Packet shows NAT ID and Rule ID | Compare rule and NAT hits precisely |
More details: Use Packet Capture in WebAdmin.
Check security features individually
If the rule matches but the application does not work, a protection profile may interfere:
- Web Policy
- SSL/TLS inspection rule
- Decryption Profile
- IPS Policy
- Application Control
- Malware Scan
- Zero-day protection
- Security Heartbeat
- Traffic Shaping
For tests, do not permanently disable everything across the board. It is better to check briefly and specifically, watch Log Viewer and then fix the root cause cleanly. For TLS Inspection, see Roll out TLS Inspection on Sophos Firewall step by step.
Common causes
| Symptom | Likely cause |
|---|---|
| Rule counter stays 0 | Rule position, Source zone, Destination zone or Service is wrong |
| Log shows another rule | More general rule is above it |
| No log visible | Logging not enabled or traffic does not reach the firewall |
| DNS works, web does not | Check service, Web Policy, TLS Inspection or QUIC |
| HTTPS is not scanned | No matching SSL/TLS inspection rule or CA not distributed |
| DNAT does not work | Firewall rule uses wrong Destination zone or wrong Destination network |
| VPN traffic does not match | Check zone VPN, route, tunnel interface or XFRM context |
| Only some users affected | Check User Matching, group, SSO, Captive Portal or Heartbeat |
Practical process
- Note the issue with Source IP, destination, port, user and time.
- Check rule position.
- Reset rule counter.
- Reproduce the test.
- Filter Log Viewer by Source IP and Destination IP.
- Check NAT rule and routing.
- Start Packet Capture with a narrow filter.
- Check Security Profiles only specifically.
- Document the change.
For a combined test workflow, see Test firewall rules with Log Viewer, Policy Test and Packet Capture.