An ACL-based packet capture task captures packets that
pass through the AntiDDoS and match an ACL. Generally, ACL-based packet capture is applied
to capturing packet traffic when no attack is launched. In this way,
it extracts the features of normal traffic and employs them as comparison
conditions. Alternatively, when packet loss or access failure occurs
due to defense failure such as no attack detecting, you are advised
to adopt the ACL-based packet capture to determine the type of attack
packets for analyzing defense failures. After a packet capture operation
is complete, the ACL packet capture becomes in Disable state. Enable this task upon the next packet capture operation.
Prerequisites
Service configurations are complete.
The packet capture length was configured. For details, see Configuring Packet Capture Length.
Ensure that ACL 3999 on the AntiDDoS is not used.
Procedure
- Choose .
- On the Capture attack packets page,
click
.
- On the Create Packet Capture Task page,
select ACL Matched from the Type drop-down list.

- Set other basic parameters. For details, see Table 1.
Table 1 Creating a packet capture task
| Parameter |
Description |
Reference Value |
| Task name |
Indicates the packet capture task name. |
The name cannot be null and can contain letters, digits and
special characters "!", "@", "#", "$", "*", "^", "+", "-", "=", "|",
"}", "{", "]", "[", ";", "?", "/", ".". |
| Sampling ratio |
Indicates the ratio of the number of packets complying with
packet capture conditions to that of captured packets. |
The default value is 1024:1. In this
value, the device captures one packet from 1024 packets that match
packet capture conditions. |
| Captured packets |
If the packet capture type is Global Defense Matched or ACL Matched, the value is the sum of packets
captured by the device.
When the number of captured packets
hits Captured Packet and a packet capture operation
is complete, the packet capture task becomes in Disable state.
If packets are captured on the basis of Zone Attack
Matched and Zone Anomaly Matched, the number of captured packets is the number of packets (of the
same attack or anomaly) captured by each CPU.
For example, a
device has four CPUs, Captured Packet is set
to 1000. If an attack with ACK and UDP flood
attack packets is launched, the packet capture result is as follows: - 4 x 1000 ACK flood attack packets are captured and four packet
capture files are generated.
- 4 x 1000 UDP flood attack packets are captured and four packet
capture files are generated.
After the packet capture operation is complete, the packet
capture task is in Enable state. Capture packets
upon the next attack.
|
The default value is 1000. |
- Add an ACL rule.
- In the ACL Rule group box, click
.

- Set parameters. For details, see Table 2.
Table 2 Adding an ACL rule
| Parameter |
Description |
| IP version |
IPv4 or IPv6. |
| Protocol |
Indicates the protocol type of packets. |
| Source IP address |
Indicates the source IP address of packets. |
| Source port |
This item is required when TCP or UDP is selected for Protocol Type. |
| Destination IP address |
Indicates the destination IP address of packets. |
| Destination port |
This item is required when TCP or UDP is selected for Protocol Type. |
- Click OK.
The Create Packet Capture Task page is
displayed.
- Click Next.
- Click
, click Detection/Cleaning Device to add network elements, and click OK.On the Create Packet Capture Task page,
click VPN to select a VPN instance.
- On the Create Packet Capture Task page,
click Finish.
The Packet Capture page is displayed. The
packet capture task is displayed in the list.
- Select the check box of a packet capture task and click
to enable the task.
NOTE: Only one ACL-based packet capture task can
be enabled on an AntiDDoS within a period of time.
Copyright © Huawei Technologies Co., Ltd.