Created on 12-18-2017 01:04 AM Edited on 10-22-2024 07:44 AM By Stephen_G
Description
Solution
config system session-ttl
set default ?
<integer> value range (300 - 2764800)
It is possible to override this default session TTL value for specific ports or port ranges using the ‘timeout’ variable’ of the ‘config port’ command. The ‘timeout’ variable can be set to a value ranging from 1 to 2764800 seconds. It is 300 seconds by default.
config system session-ttl
config port
edit <>
set timeout ?
integer> value range (1 - 2764800)
It is also possible to define a custom service to either specify a new service or refine an existing service. In this case, the value set in the ‘session-ttl’ variable of the ‘config firewall service custom’ command supersedes the session TTL value that was defined in 2).
config firewall service custom
edit <>
set session-ttl ?
session-ttl Enter an integer value from <300> to <2764800> or (special = <0>)
The ‘config firewall service custom’ command also allows modifying of the UDP session timeout via the ‘udp-idle-timer’ variable. The value set in this variable supersedes the global value set in the ‘udp-idle-timer’ variable of the ‘config system global’ command which is 180 seconds per default.
The session TTL value can be modified under the firewall policy as well. This would be applied to any traffic handled by the firewall policy. An illustration is shown below:
config firewall policy
edit <>
set session-ttl ?
session-ttl Enter an integer value from <300> to <2764800> or (special = <0>).
When a firewall policy has "set session-ttl" to 0, it will use the global TTL setting in ‘config system session-ttl'.
In the following example, global session-ttl is 1200, policy setting is 0, so the TTL for that policy will be 1200.
config system session-ttl
set default 1200
end
Config firewall policy
edit 3
set session-ttl 0
end
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.