Anti-DDoS Pro and Anti-DDoS Premium allow you to export multiple port configurations at a time. You can export manually created forwarding rules, session and health check settings, and anti-DDoS protection policies under an Anti-DDoS Pro or Anti-DDoS Premium instance as a TXT file. You can also download the file to your local machine. The exported file has the same format as the file used to manage multiple rules, session and health check settings, and anti-DDoS protection policies.
- Log on to the Anti-DDoS Pro console.
- In the top navigation bar, select the region of your Anti-DDoS instance.
- Mainland China: Anti-DDoS Pro
- Outside Mainland China: Anti-DDoS Premium
- In the left-side navigation pane, choose .
- On the Port Config page, select the target instance.
- Below the rule list, click Batch Export and select Export Rule, Export Session/Health Settings, or Export Anti-DDoS Protection Policy as required.
- After the export task is delivered, click the Tasks icon in the upper-right corner of the page.
- In the Tasks pane, click Download in the Actions column that corresponds to the export record after the export task
Note If the task is in the Pending Export state, wait until the task is completed.After the exported file is downloaded to your local machine, you can open the TXT file to view the rules or settings. For more information about the format in the TXT file, see The format of content in the files.
- Optional:In the Tasks pane, find the task that you want to delete and click Delete in the Actions column.
The format of content in the files
- Rule files
Each row represents a rule that contains four values. From left to right, the fields in each rule indicate the following parameters: forwarding protocol, forwarding port, origin server port, and origin server IP address.
For more information, see Create multiple forwarding rules at a time.
- Files of session and health check settings
Each row represents a rule. From left to right, the fields in each rule indicate the following parameters: forwarding port, forwarding protocol, session persistence timeout, health check type, port, response timeout period, check interval, unhealthy threshold, healthy threshold, path, and domain. If the value of session persistence timeout is 0, session persistence is disabled. If no value is specified for the health check type, the health check is disabled, and the values that follow the parameter are left blank. The values of path and domain are only provided for HTTP-based health checks.
For more information, see Configure session persistence or health checks for multiple rules at a time.
- Files of anti-DDoS protection policies
Each row represents a rule. From left to right, the fields in each rule indicate the following parameters: forwarding port, forwarding protocol, source new connection rate limit, source concurrent connection rate limit, destination new connection rate limit, destination concurrent connection rate limit, minimum packet length, maximum packet length, and false source and empty connection. The value of the last field applies only when TCP is used. You must turn on False Source before you turn on Empty Connection.
For more information, see Create anti-DDoS policies for multiple forwarding rules at a time.