Policy Verification
Describe a flow and see which rules match its fields, which objects each field hits, and which enriched fields the device looks up.
Policy verification checks a rule base without sending traffic. You describe a flow by its session fields, and the device evaluates that synthetic flow against one policy type. It reports:
- Matched rules: rules whose conditions the supplied fields satisfy, with the matching objects.
- Matched objects: for each field, the objects its value hit, directly or through a group.
- Enriched fields: the values the device looked up using the IP addresses you supplied, such as the source country or destination ASN.
Open it from Device > Diagnostics > Policy Verification.
Describing the flow
Policy
Select the policy type to evaluate: Security or NAT.
Application signature rules cannot be verified here. They match on the first payloads of a session to identify its application, which is application identification, not rule matching.
Session fields
Start with Source IP, Destination IP, and IP Protocol. Use Add field for other session fields and fill in only the values needed for the test. To test a domain condition, enter Destination FQDN. For country or ASN conditions, supply the address and inspect the lookup in the result.
For Destination Zone, supply the zone from the initial route lookup for NAT and the zone after any DNAT for Security. If the original destination is in the WAN zone and DNAT sends traffic to a server in the LAN zone, enter the WAN zone for NAT and the LAN zone for Security. Use the original destination IP for both checks. See NAT decision.
Application
The application is an input you supply, not something the device identifies. On live traffic the application engine identifies a session's application from its payload; policy verification does not run it, so you can test a rule base independently of application identification.
If you leave Application UUID out, the flow is evaluated as it would be before its application is identified. Rules without an application condition can still match, but no rule with an application condition matches, negated or not. The result says the application was pending.
Reading the result
Rule Match
Rule Match lists rules whose conditions were satisfied by the supplied fields. Each result shows the conditions and the objects that satisfied them. For how the firewall selects the rule to apply to live traffic, see NAT Rules and Security policy.
- For a condition that references a group, the object that hit is shown via the group.
- For a negated condition, the objects the field was required not to match are listed.
If no rule in the selected policy matched, the result says so.
Object Match
Object Match lists, for each field you supplied, the objects its value hit:
- A direct hit is an object whose items the value matched, with the item that hit.
- An indirect hit is a group reached through one of its member objects.
Enriched fields that hit objects, such as a source country matching a country object, are listed here as well.
Enriched fields
The result lists every enriched field the device looked up for the flow, whether or not a rule references it. A field has no value when the lookup found no match, for example no ASN for a private address.
Rejected fields
If the device cannot accept a field, it rejects the whole verification and reports each field with its reason:
| Reason | Meaning |
|---|---|
| Undefined field | The field does not exist. |
| Unsupported field | The field exists but is not a verification input, such as an enriched field. |
| Type mismatch | The value is of the wrong type; the expected and supplied types are shown. |
| Invalid value | The value is of the right type but not valid, such as a malformed address. |
If the expected rule matches but the client still cannot connect, continue with Diagnose a failed connection to check the live path.