Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
Help Center/ Cloud Firewall/ Best Practices/ Using CFW to Protect VPCs Across Accounts

Using CFW to Protect VPCs Across Accounts

Updated on 2024-12-02 GMT+08:00

Application Scenarios

Protect resources across accounts. For example, different departments in an enterprise use different accounts but need to share CFW protection policies.

This section describes how to use CFW to protect the VPC of account A and add the VPC of another account to CFW.

Solution Overview

VPC border protection has been enabled for account A for a period of time, and you need to add the VPCs of accounts B and C for protection. The solution is as follows:

Account A shares an enterprise router with accounts B and C. Accounts B and C add attachments to the enterprise router. Account A accepts the attachments in the enterprise router and adds associations and propagations. Accounts B and C add routes to their VPCs to configure access for protection. In this way, CFW protection policies will protect the VPC resources of accounts B and C as well.

Figure 1 Cross-account protection solution
Figure 2 Procedure

Resource and Cost Planning

Table 1 Resource description

Resource

Description

Quantity

Cost

Enterprise Router

An enterprise router routes traffic between VPC and CFW.

1 (existing)

For details about billing rules, see Enterprise Router Billing.

Cloud Firewall (CFW)

Only the CFW professional edition provides VPC border protection.

1 (existing)

For details about billing rules, see CFW Billing.

Virtual Private Cloud (VPC)

Protected resource.

1

For details about billing rules, see VPC Billing.

Adding VPCs of Another Account to CFW

VPC border protection has been enabled for account A (for details, see Configuring a Protection Rule to Protect Traffic Between Two VPCs) and has been running for a period of time. To add the VPCs of accounts B and C to protection, perform the following steps:

  1. Use account A to share the enterprise router with accounts B and C. For details, see Creating a Sharing.
  2. Use accounts B and C to add attachments to the enterprise router. For details, see Creating a VPC Attachment.

    NOTE:
    • One attachment needs to be added for each VPC.
    • In the following example, account B has a VPC named VPC1 and an attachment named VPC_B. Account C has a VPC named VPC2 and an attachment named VPC_C.

  3. Use account A to configure the route table.

    1. Accept the attachment requests. For details, see Accepting an Attachment Request.
    2. Add associations.

      Click an enterprise router and click the Route Tables tab. On the page that is displayed, select the association route table (er-RT1), click the Associations tab, and click Create Association.

      NOTE:
      How to identify the association route table: The association route table is used to transmit traffic from VPC to CFW. The current configurations are as follows:
      • Associations tab (having multiple attachments):
        • Attachment Type: VPC
        • Attachment: connections to multiple VPCs under account A
      • Key parameters on the Routes tab:
        • Attachment Type: CFW instance
        • Next Hop: firewall connection (cfw-er-auto-attach)

      This section uses account B as an example to describe how to add VPCs. If you need to add multiple (for example, three) VPCs, you need to add the corresponding number (for example, three) of associations.

      • Attachment Type: VPC
      • Attachment: Select the VPC attachment of account B, that is, VPC_B.
      NOTE:

      In this case, the configurations of the association route table are as follows:

      • Associations tab (having multiple attachments + VPC_B):
        • Attachment Type: VPC
        • Attachment: attachments of VPCs of accounts A and B
      • Key parameters on the Routes tab:
        • Attachment Type: CFW instance
        • Next Hop: firewall connection (cfw-er-auto-attach)
    3. Add propagations.

      Select the propagation route table (er-RT2), click the Propagations tab, and click Create Propagation.

      NOTE:
      How to identify the propagation route table: The propagation route table is used to transmit traffic from CFW to VPC. The current configurations are as follows:
      • Key parameters on the Associations tab:
        • Attachment Type: CFW instance
        • Attachment: firewall connection (cfw-er-auto-attach)
      • Propagations tab (having multiple propagations):
        • Attachment Type: VPC
        • Attachment: connections to multiple VPCs under account A

      This section uses account B as an example to describe how to add VPCs. If you need to add multiple (for example, three) VPCs, you need to add the corresponding number (for example, three) of propagations.

      • Attachment Type: VPC
      • Attachment: Select the VPC attachment of account B, that is, VPC_B.
      NOTE:

      In this case, the configurations of the propagation route table are as follows:

      • Key parameters on the Associations tab:
        • Attachment Type: CFW instance
        • Attachment: firewall connection (cfw-er-auto-attach)
      • Propagations tab (having multiple propagations + VPC_B):
        • Attachment Type: VPC
        • Attachment: attachments of VPCs of accounts A and B

  4. Use accounts B and C to configure VPC route tables.

    For example, to protect traffic between VPC1 and VPC2, configure the route of VPC1 to point to VPC2 and the route of VPC2 to point to VPC1.
    1. Return to the Enterprise Router page. In the navigation pane on the left, choose Network > Virtual Private Cloud > Route Tables.
    2. In the Name/ID column, click the route table name of a VPC. The Summary page is displayed.
    3. Click Add Route and configure parameters as follows:
      • Add a route to VPC1 of account B:
        • Destination Type: Select IP address.
        • Destination: Enter the CIDR block of VPC2.
        • Next Hop Type: Enterprise Router
      • Add a route to VPC2 of account C:
        • Destination Type: Select IP address.
        • Destination: Enter the CIDR block of VPC1.
        • Next Hop Type: Enterprise Router

  5. Configure a protection policy.

    NOTE:

    By default, VPC resources connected to the same enterprise router use the protection policies of the CFW instance bound to the enterprise router.

  6. View log information. For details, see Protection Log Overview.

Reference

To protect EIP resources across accounts, see Using CFW to Protect EIPs Across Accounts.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback