Technical Tip: Anti-replay per policy when FortiGate is in profile mode
Description
This article describes anti-replay option available per policy.
Related link:
https://docs.fortinet.com/document/fortigate/6.2.0/new-features/519101/expanding-fabric-family
Solution
When the global anti-replay option is disabled, the FortiGate does not check TCP flags in packets. This feature adds a per policy anti-replay option that overrides the global setting. This allows you to control whether or not TCP flags are checked per policy. In this example, a policy is created with the anti-replay option enabled so that TCP flags are checked:
This feature is not applicable when the device is set to policy mode.
All the available options per policy having FortiGate in policy mode are shown below and it does not include anti-replay settings:
When the global anti-replay option is disabled, the FortiGate does not check TCP flags in packets. The default is strict.
This article describes anti-replay option available per policy.
Related link:
https://docs.fortinet.com/document/fortigate/6.2.0/new-features/519101/expanding-fabric-family
Solution
When the global anti-replay option is disabled, the FortiGate does not check TCP flags in packets. This feature adds a per policy anti-replay option that overrides the global setting. This allows you to control whether or not TCP flags are checked per policy. In this example, a policy is created with the anti-replay option enabled so that TCP flags are checked:
# config firewall policyNote that the above option is only available when the firewall is set to profile mode.
edit 1
set name "policyid-1"
set uuid dfcaec9c-e925-51e8-cf3e-fed9a1d42a1c
set srcintf "wan2"
set dstintf "wan1"
set srcaddr "all"
set dstaddr "all"
set action accept
set schedule "always"
set service "ALL"
set anti-replay enable
set logtraffic all
set nat enable
next
end
This feature is not applicable when the device is set to policy mode.
All the available options per policy having FortiGate in policy mode are shown below and it does not include anti-replay settings:
# config firewall consolidated policyWhen the unit is set to profile mode, the only available option is to change anti-replay settings globally.
edit 1
set status enable
set name "test"
set uuid c64653e4-53b2-51ea-68fd-b11529dd97ec
set srcintf "port1"
set dstintf "port2"
set srcaddr4 "all"
set dstaddr4 "all"
set srcaddr-negate disable
set dstaddr-negate disable
set service-negate disable
set internet-service disable
set internet-service-src disable
set service "ALL"
set ssl-ssh-profile "no-inspection"
set diffserv-forward disable
set diffserv-reverse disable
set tcp-mss-sender 0
set tcp-mss-receiver 0
set session-ttl 0
set comments ''
next
end
When the global anti-replay option is disabled, the FortiGate does not check TCP flags in packets. The default is strict.
# config system global
set anti-replay {disable | loose | strict} <----- Level of checking for packet replay and TCP sequence checking.
end
Related Articles
