Troubleshooting traffic still allowed after removing an FQDN from a firewall policy
Confirmed 8/8/2026
Problem
A FortiGate administrator permits Server A to reach selected external destinations by adding FQDN address objects to an address group used in a firewall policy. After a particular FQDN is removed from the group, Server A can still connect to that destination. The objective is to identify the firewall policy or existing session that continues to allow the traffic.
Symptoms
Traffic to an external FQDN remains permitted even though its FQDN address object is no longer a member of the address group referenced by the intended firewall policy. The object may still exist in the configuration but is believed not to be referenced by any firewall policy.
Environment
FortiGate using FQDN or wildcard FQDN address objects in forward-traffic firewall policies. Source host is Server A; destination IP, port, and protocol depend on the tested FQDN and application.
FortiOS version
6.4.2 and 7.4.1 are referenced by the supporting documentation; the affected FortiOS version is unknown.
Root Cause
The connection may belong to an already valid session, or it may match another firewall policy that independently permits the traffic. Removing an FQDN from one address group does not prove that no other policy allows the resolved destination. It is also necessary to establish whether the object is a standard FQDN or wildcard FQDN.
Solution
- Confirm that the FQDN is no longer referenced where access was previously permitted. Check the FortiGate FQDN IP mapping and search the configuration, replacing
<fqdn>with the actual name:
diagnose firewall fqdn list-ip | grep -A3 <fqdn>
show | grep -f <fqdn>
-
Resolve the FQDN to the destination IP used by the test connection. Determine whether the configured address is a standard FQDN or wildcard FQDN, because wildcard FQDN handling differs from an exact FQDN object.
-
Reproduce the connection from Server A, then filter the session table to identify the matching session. Replace the placeholders with the source IP, resolved destination IP, destination port, and protocol number:
diag sys session filter src XXXXX.XXXXX.XXXX.XXXX
diag sys session filter dst XXXXX.XXXXX.XXXX.XXXX
If the destination port is known, add this filter; otherwise, skip it:
diag sys session filter dport XXX
Set the protocol filter, using 6 for TCP or 17 for UDP:
diag sys session filter proto zzzz
List the matching sessions:
diag sys session list
-
Review the session output to determine which firewall policy allowed the flow. The same information can also be inspected in FortiView by reviewing the session data.
-
Check the traffic logs for the matching source, destination, port, and protocol. Confirm the policy ID recorded for the accepted traffic. The connection may be matching a different firewall policy rather than the policy from which the FQDN was removed.
-
Use the policy finder tool in the Policy Table to determine which firewall policy the traffic follows.
-
If additional packet-level confirmation is required, run a FortiGate CLI sniffer trace or packet capture while reproducing the connection. Use the FortiOS 6.4.2 Administration Guide procedure for a sniffer trace and packet capture or the Fortinet packet-capture technical tip referenced in the source material.
-
Review the identified policy and any existing valid session. Adjust the policy configuration so that only the required FQDN destinations are allowed.
-
For simpler ongoing administration, place all permitted FQDN address objects in one address group and reference that group from the intended firewall policy. Add or remove FQDN members as requirements change.
-
For wildcard FQDN configurations, validate the design against the Fortinet wildcard FQDN guidance and the FortiOS 7.4.1 Administration Guide section titled
Using wildcard FQDN addresses in firewall policies.
Verification
Initiate a new connection from Server A to the previously removed FQDN. Check the traffic log, FortiView session data, session-table output, or policy finder result. Verify that the flow no longer matches an unintended allow policy and is blocked unless the destination is included in the permitted FQDN address group. For an allowed FQDN, verify that the expected firewall policy ID accepts the session.
Tags
No tags yet.
Community rating
— / 5 (0)
Discussion (0)
No comments yet.