Importing and Exporting Protection Policies
Scenario
You can add and export protection rules, blacklist/whitelist items, IP address groups, domain name groups, and service groups in batches.
Notes and Constraints
- To import and export VPC border protection policies, use the Professional edition.
- For policy imports, each sheet supports up to 640 rules or members.
Importing Protection Rules in Batches
- Log in to the CFW console.
- Click
in the upper left corner of the management console and select a region or project. - (Optional) Switch to another firewall instance. If there are multiple firewall instances, you can select a desired instance from the drop-down list in the upper left corner of the page.
- In the navigation pane, choose Internet Border Protection Rules or VPC Border Protection Rules under .
- Click Import/Export Policy in the upper right corner of the page.
- Click Download Template to download the rule import template to the local host.
- Configure protection policy information as required.
- Import restrictions:
- For policy imports, each sheet supports up to 640 rules or members.
- Do not change the template file format, or it may fail to be imported.
- Parameter description:
- Protection rule parameters:
- For details about Internet border protection rule parameters, see Parameters of Rule Import Template - Rule-Acl-Table (Internet Border Protection Rules).
- For details about VPC border protection rule parameters, see Parameters of Rule Import Template - Vpc-Rule-Acl-Table (VPC Border Protection Rules).
- For details about the blacklist and whitelist parameters, see Configuring the Blacklist/Whitelist to Block or Allow Internet Border Traffic, Adding Blacklist or Whitelist Items to Block or Allow VPC Border Traffic, Adding Blacklist or Whitelist Items to Block or Allow NAT Gateway Border Traffic.
- For details about IP address group parameters, see Managing IP Address Groups.
- For details about service group parameters, see Managing Service Groups.
- For details about domain name group parameters, see Managing Domain Name Groups.
- Protection rule parameters:
- Import restrictions:
- After filling in the template, click Import Rule to import the template.
- Rule import takes several minutes.
- During rule import, you cannot add, edit, or delete access policies, IP address groups, and service groups.
- The priority of the imported policies is lower than that of the created policies.
- Click Import/Export Policy in the upper right corner of the page to check the status of the rule import task. If the Status is Imported, the import succeeded.
- Return to the protection rule list to view the imported protection rule.
By default, the priority of imported rules is lower than that of manually added rules.
Exporting Protection Rules in Batches
- Log in to the CFW console.
- Click
in the upper left corner of the management console and select a region or project. - (Optional) Switch to another firewall instance. If there are multiple firewall instances, you can select a desired instance from the drop-down list in the upper left corner of the page.
- In the navigation pane, choose Internet Border Protection Rules or VPC Border Protection Rules under .
- Click Import/Export Policy in the upper right corner of the page.
- Click Export Rule.
If the task status changes to Exported successfully, you can click Download to download the exported protection rules to the local PC.
Parameters for Importing a Rule Template
Fill in the template by referring to the following parameter descriptions.
References
- For details about how to add a protection rule, see Configuring Protection Rules to Block or Allow Internet Border Traffic.
- For details about how to batch add blacklist or whitelist items, see Configuring the Blacklist/Whitelist to Block or Allow Internet Border Traffic.
- Checking protection outcomes
- Policy hits: For details about the protection overview, see Viewing Protection Information Using the Policy Assistant. For details about logs, see Viewing Attack Event Logs.
- For details about the traffic trend and statistics, see Traffic Center. For details about traffic records, see Log Query.
- For details about how to adjust rule priority, see Adjusting the Priority of a Protection Rule.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot