Skip to main content
mle2802
Staff
Staff
March 7, 2025

Troubleshooting Tip: FortiGate does not reply with TCP RST when 'set send-deny-packet' is enabled

  • March 7, 2025
  • 0 replies
  • 2123 views

Description

This article describes how to control on how the FortiGate should reply to firewall policies with 'set send-deny-packet' is enabled, TCP RST flag or ICMP Unreachable.

Scope

FortiGate.

Solution

When a firewall policy is configured with the feature 'set send-deny-packet enabled'. By default, TCP RST flag (reset) will be sent for traffic matching a deny policy instead of silently dropping the packet.

Screenshot 2025-03-01 162115.png

 

Checking packet capture, no TCP RST is being sent back from FortiGate, and the connection time out after some time.

download (2).png


This is due to the command 'set deny-tcp-with-icmp' being enabled under 'config system settings'. 

Screenshot 2025-03-01 162806.png


Disable that option and try to re-connect. This time. TCP RST packet is sent and the connection is refused instead of a time out/drop.

image (21).png

 
It is worth noting that UDP traffic matched such a policy, will always reply with ICMP unreachable and is unaffected by the global change.

Another consideration to note is that, as of right now, the setting is global. This means it will affect the entire device or a specific VDOM if enabled.


Related articles: