Technical Tip: Sustained TCP SYN flood traffic may trigger a Memory Leak and cause Conserve Mode after upgrading to FortiOS v7.4.10 or v7.4.11
| Description | This article describes an issue where the device may experience a memory leak when subjected to sustained TCP SYN flood traffic. |
| Scope | FortiOS v7.4.10 and v7.4.11. |
| Solution | This issue is under investigation with ID# 1260308. After the upgrade, a memory leak may be observed during a sustained TCP SYN flood DoS attack.
diagnose sys session stat
diagnose sys session stat
diagnose hardware sysinfo memory
Note: Increased memory and CPU usage during a TCP SYN flood is expected. The issue under investigation is only matched if memory usage does not recover after a flood, or increases during a sustained incident without recovery. Workaround:
config system automation-stitch edit "Reboot_FGT_When_Conserve_Mode" set trigger "Conserve Mode" config actions edit 1 set action "Reboot FortiGate" next end next end
If a particular source IP address or group of addresses is associated with the TCP SYN flood, it is possible to prevent the increased memory usage by blocking the affected IP addresses.
config firewall address edit "DoS_Attack_Source_IP" set subnet X.X.X.X/YY next end
config firewall acl edit <index> set name "Deny_DoS_Attack_Source_IP" set interface <incoming interface> set srcaddr "DoS_Attack_Source_IP" set dstaddr "all" set service "ALL" next end |