Skip to main content
adhillon
Staff
Staff
June 5, 2025

Troubleshooting Tip: Workaround to achieve per policy level anti-replay strict in NGFW policy-based mode

  • June 5, 2025
  • 0 replies
  • 848 views
Description This article describes an issue where it is not possible to configure the anti-replay check to be applied per policy for a FortiGate operating in policy-based mode.
Scope NGFW Policy-based mode.
Solution

When FortiGate is operating in the profile-based mode, it is possible to configure the anti-replay check in global settings as well as the per policy:

 

config system global
        set anti-replay ?
disable    Disable anti-replay check.
loose      Loose anti-replay check.
strict     Strict anti-replay check.
end

Or:

 

config firewall policy
    edit <>
       set anti-replay ?

enable     Enable anti-replay check.

disable    Disable anti-replay check.
end

 

However, for a FortiGate operating in policy-based mode, anti-replay checking is a global configuration only and cannot be applied per-policy, as this setting is unavailable within security-policies. As a workaround, anti-replay(strict) checks can be applied on a per-policy level by configuring the DoS policies to match traffic for specific security policies, to detect and mitigate SYN-flood and port scan protections.

 

Related articles: