< Home

Configuring Status Check Using the CLI

This section describes how to configure the status check function using the CLI.

Context

You can enable or disable the IPv4/IPv6 TCP or ICMP status check function as required.

Procedure

  1. Access the system view.

    system-view

  2. Enable or disable the status check function as required.

    After the status check function is enabled, a session is established only when the first packet passes through the FW. After the status check function is disabled, sessions can be established even if no subsequent packets are found.

    If status detection is disabled, the aging time of first-fin does not take effect for the first first-fin session. The aging time of the first first-fin session keeps unchanged.

    Disabling the TCP status check function makes defending against SYN flood attacks in TCP proxy mode unavailable.

Follow-up Procedure

Run the display firewall [ ipv6 ] session link-state command to check whether the status check function is enabled.

Check whether the IPv4 status check function is enabled. The command output shows that the status check function is enabled for TCP traffic, excluding the traffic matching ACL 3456. The status check function is disabled for ICMP traffic.

<FW> display firewall session link-state
 Current firewall session link-state:                                                                                               
 ------------------------------------                                                                                               
 TCP check:                        on                                                                                               
 ICMP check:                       off 
 Exclude acl:                      3456   
------------------------------------ 

Check whether the IPv6 status check function is enabled. The command output shows that the status check function is enabled for TCP and ICMP traffic, excluding the traffic matching ACL 3333.

<FW> display firewall ipv6 session link-state
 Current firewall ipv6 session link-state:                                      
 -----------------------------------------                                      
 TCP check:                          on                                      
 ICMPv6 check:                       on                                      
 Exclude acl:                        3333          
-----------------------------------------           
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic