FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
btey
Staff & Editor
Staff & Editor
Article Id 323438
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:

 

ICMP unreachable.png

 

log detail.PNG

 

The log matched policy ID 2 even though the source field does not match.

firewall policy.png

 

Policy ID 2 allowed the ICMP unreachable packet because the encapsulated IP header matches the existing session.

 

ICMPdata.png