# config firewall service customTo set the session TTL value of a policy to never.
edit "tcp_23"
set tcp-portrange 23
set session-ttl never <---- Set to never.
next
end
# config firewall policyTo set the session TTL value of a VDOM to never.
edit 201
set srcintf "wan1"
set dstintf "wan2"
set srcaddr "all"
set dstaddr "all"
set action accept
set schedule "always"
set service "TCP_8080"
set logtraffic disable
set session-ttl never <----- Set to never.
set nat enable
next
end
# config system session-ttlEnable this feature for many applications like live streams, medical applications, etc where the session will be ended for idle and timeouts configured.
set default never <----- Set to never.
# config port
edit 1
set protocol 6
set timeout never <----- Set to never.
set start-port 8080
set end-port 8080
next
end
end
# diagnose sys session list
session info: proto=6 proto_state=01 duration=9 expire=never timeout=never flags=00000000 sockflag=00000000 sockport=0 av_idx=0 use=3
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 2025 Fortinet, Inc. All Rights Reserved.