Help Center/ Cloud Firewall/ User Guide/ CFW Protection/ Enabling VPC Border Traffic Protection/ Enterprise Router Mode (New)/ Enabling the VPC Border Firewall and Ensuring the Traffic Passes Through CFW
Updated on 2026-11-10 GMT+08:00

Enabling the VPC Border Firewall and Ensuring the Traffic Passes Through CFW

Scenario

Once you create a VPC border firewall and associate it with an enterprise router, the firewall defaults to the Disabled state. In this mode, the firewall engine does not inspect or parse packets, meaning your workloads remain unprotected. You need to manually enable the VPC border firewall to activate policy enforcement. After enabling protection, generate test traffic via cross-VPC service communication. You can then verify the routing state using the CFW traffic logs. This confirms that traffic is successfully routed through, inspected, and filtered by the firewall, validating that your internal network border defenses are active.

This section describes how to enable a VPC border firewall and verify that traffic passes through CFW.

Impacts on Services

Before enabling VPC border protection, check whether there is any protection rule or blacklist that blocks all traffic.

  • If protection is enabled for a VPC, such a protection rule or blacklist will take effect and block all the traffic of the VPC. This may interrupt services. Before enabling protection, check for persistent connections and services that do not support session reestablishment. If any, handle them first.

    For details about how to edit a protection rule, see Managing Protection Rules. For details about how to edit a blacklist, see Managing the Blacklist and the Whitelist.

  • If there is no protection rule or blacklist that blocks all traffic, enabling or disabling VPC protection will not interrupt services.

Enabling a VPC Border Firewall

  1. Go to the VPC border firewall management page.
  2. Click in the upper left corner of the management console and select a region.
  3. (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.
  4. Click the next to Firewall Status and click OK in the displayed dialog box to enable the VPC border firewall.
  5. After traffic is generated, perform the following operations:

Follow-up Operations

Once VPC border traffic protection is enabled, your service traffic is routed through CFW. By default, all traffic is allowed. You can monitor traffic trends or configure access control and attack defense policies for the VPC border firewall to achieve fine-grained control over traffic between VPCs and on-premises IDCs, or between separate VPCs.

Related Operations