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.

Procedure

  1. Log on to the Anti-DDoS Pro console.
  2. In the top navigation bar, select the region of your Anti-DDoS instance.
    • Mainland China: Anti-DDoS Pro
    • Outside Mainland China: Anti-DDoS Premium
  3. In the left-side navigation pane, choose Provisioning > Port Config.
  4. On the Port Config page, select the target instance.
  5. Below the rule list, click Batch Export and select Export Rule, Export Session/Health Settings, or Export Anti-DDoS Protection Policy as required.Batch Export
  6. After the export task is delivered, click the Tasks icon in the upper-right corner of the page.Export task
  7. In the Tasks pane, click Download in the Actions column that corresponds to the export record after the export task is completed.
    Note If the task is in the Pending Export state, wait until the task is completed.
    Download an exported file
    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.
  8. 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

All exported files are in TXT format. The format in the files varies with the exported content.
Note If you use Anti-DDoS Pro, the name of the exported file starts with DDoSCoo_. If you use Anti-DDoS Premium, the name of the exported file starts with DDoSDip_. The formats of the files exported from the Anti-DDoS Pro and Anti-DDoS Premium consoles are the same.
  • 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.

    Exported rules

    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.

    A session and health check settings file

    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.

    Anti-DDoS protection policy file

    For more information, see Create anti-DDoS policies for multiple forwarding rules at a time.