In IPTV scenarios, after the client software is upgraded or the server recovers from a fault, a large number of clients initiate a large number of TCP connection requests to the server at the same time. As a result, the server cannot respond to these requests within a short period of time. Then the clients continuously attempt to connect to the server, interrupting services for a long time. In this scenario, the TCP proxy and source detection functions for SYN flood attack defense do not take effect because these clients are real source devices. The cause of the service fault is that the requests sent from the clients at the same time are beyond the processing capability of the server. Therefore, you need to limit the new connection rate within the server performance range to ensure that the server can properly process the requests initiated by the clients.
You need to configure source IP address-based rate limiting on internal interfaces and destination IP address-based rate limiting on external interfaces. You are advised to set the defense mode to alarm mode. After a period of time, you can evaluate the new connection rate of a single IP address on the live network based on logs. After the maximum new connection rate is adjusted, you can set the defense mode to packet loss mode. If services are abnormal after the defense mode is set to packet loss mode, you can switch the defense mode to alarm mode and check whether services are restored.
None
firewall defend ipcar source session-rate-limit 5000 firewall defend ipcar destination session-rate-limit 5000 firewall defend ipcar source mode alert firewall defend ipcar destination mode alert interface GigabitEthernet 0/0/1 firewall defend ipcar source session-rate-limit enable quit interface GigabitEthernet 0/0/2 firewall defend ipcar destination session-rate-limit enable quit