Description
This article describes how to enable tcp-session-without-syn in firewall policy with variable versions.
Scope
FortiGate.
Solution
In some cases, enabling TCP session without SYN on a firewall can also be used for legitimate purposes, such as allowing certain types of traffic to pass through a firewall that would otherwise be blocked. For example, some network applications use non-standard methods of establishing TCP sessions, and these may require special handling by the firewall in order to function correctly.
However, it's important to note that enabling TCP session without SYN on a firewall can also introduce security risks. It can make it easier for attackers to bypass the firewall's security mechanisms and gain unauthorized access to the network. As such, this technique should only be used when it's absolutely necessary, and with appropriate security measures in place to mitigate the associated risks.
1) FortiOS 5.4 and earlier:
config system settings
set tcp-session-without-syn enable
end
2) FOS 5.6 and later:
config system settings
set tcp-session-without-syn enable
end
When the 'tcp-session-without-syn' option is selected in system settings, it becomes accessible on individual IPv4 policies for more granular control. (On both CLI and GUI.)
In the CLI:
config firewall policy
edit {id}
set tcp-session-without-syn {all | data-only | disable} SYN flag.
end
'all': enable TCP session without SYN.
'data-only': enable TCP session data only.
'disable': disable TCP session without SYN (default).
In the GUI:
Note: This feature is available only when the firewall is set to ngfw-mode profile-based.
show ful sys settings | grep ngf
set ngfw-mode profile-based
show full-configuration | grep tcp
set tcp-session-without-syn disable
Related article:
Technical Note: Enable creation of TCP session on the firewall without checking for a SYN packet.
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.