Created on 11-23-2023 06:37 AM Edited on 11-20-2024 01:27 AM By Jean-Philippe_P
Description |
This article provides and explains a full script for reducing memory usage in small FortiGate units that are experiencing conserve mode.
This is intended for entry-level FortiGate units and FortiWiFi 40F, 60E, 60F, 80E, and 90E series of devices and their variants, and FortiGate-Rugged 60F (2 GB versions only) that are suffering from insufficient memory and resources.
Fluctuations in network traffic or spikes in sessions may push these firewalls into 'conserve mode', where they might lock up and block new sessions as a protective measure.
Using the recommended FortiOS for the FortiGate model in use is also highly recommended. Visit this link to find the best version of FortiOS to use for a given model.
It is important to keep in mind the maximum capacity of entry-level FortiGate devices and be aware of their limitations. Below are some key points to explain the restrictions affecting entry-level FortiGate devices (with less than 2GB of RAM) starting from FortiOS version 7.4.4. |
Scope | FortiGate. FortiOS 7.x. |
Solution |
Suggested actions:
Configuration steps:
Global System Configuration:
set memory-use-threshold-extreme 97 end
IPS Configuration:
config ips global set np-accel-mode none set engine-count 2 set exclude-signatures none end
Session TTL Configuration:
set default 300 config port edit 0 set protocol 17 next end end
DNS Configuration:
set dns-cache-limit 600 end
FortiGuard Configuration:
config system fortiguard set webfilter-cache-ttl 600 end
Automation Action Configuration:
edit "RestartWAD" set action-type cli-script next end
Automation Trigger Configuration:
config system automation-trigger edit "Enters Conserve Mode" set event-type low-memory next end
Automation Stitch Configuration:
edit "Restart WAD during Conserve Mode" set trigger "Enters Conserve Mode" config actions edit 1 set action "RestartWAD" next end next end
Auto-Script Configuration:
config system auto-script edit restart_IPSengine set interval 43200 next end
Log optimization:
config log memory setting config log disk filter
Disabled the security rating submission:
Reduce internet-service-database:
exe update-ffdb-on-demand < to manually trigger an update of the FortiGuard Web Filtering Database (FFDB) on demand.
In conclusion, these steps can make smaller FortiGate devices handle memory better. It is important to change these settings to fit a given network's specific needs.
Related articles: |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.