| Description | This article describes the method to generate ICMP unreachable logs and the policy matching. |
| Scope | FortiGate. |
| Solution |
To generate ICMP log message:
config log setting set log-invalid-packet enable end
In FortiOS v7.4.X and above, the command shown above has been replaced with the following:
config log setting set extended-log enable end
The ICMP log is generated as below:
The log matched policy ID 2 even though the source field does not match.
Policy ID 2 allowed the ICMP unreachable packet because the encapsulated IP header matches the existing session.
|
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2026 Fortinet, Inc. All Rights Reserved.