All Products
Search
Document Center

Cloud Firewall:Deny access from international regions

Last Updated:Sep 08, 2026

Configure an Internet Firewall access control policy with region-based filtering to block inbound traffic from international regions. This example applies to businesses that serve users only in Chinese mainland.

Scenario

In the scenario shown in the following figure, you have an ECS instance with the EIP 47.100.XX.XX. Because your business serves users only in Chinese mainland, you need to configure a policy to block all traffic from international regions.

image

Prerequisites

You have purchased Cloud Firewall and enabled Internet firewall protection. For more information, see Purchase Cloud Firewall and Internet firewall.

Procedure

  1. Log on to the Cloud Firewall console.

  2. In the left-side navigation pane, select Prevention Configuration > Access Control > Policy Configuration > Internet Border.

  3. On the Inbound tab, click Create Policy. In the Create Inbound Policy panel, click the Create Policy tab and configure the policy with the following parameters.

    Parameter

    Description

    Example value

    Source Type

    The source of the network traffic. Select a source type and enter its address.

    Location

    Source

    All Locations Outside China

    Destination Type

    The destination of the network traffic. Select a destination type and enter its address.

    IP

    Destination

    Enter the public IP address of the ECS instance, 47.100.XX.XX/32.

    Protocol Type

    The transport layer protocol. Valid values are TCP, UDP, ICMP, and ANY. If you are unsure which protocol to use, select ANY.

    ANY

    Port Type

    The type and number of the destination port.

    Port

    Port

    Enter 0/0 to apply the policy to all ports.

    Application

    The application type associated with the traffic.

    ANY

    Action

    The action to apply to matching traffic.

    • Allow: Allow the traffic.

    • Drop: Block the traffic without any notification.

    • Monitor: In this mode, traffic is allowed by default. You can filter and observe this traffic by using relevant fields in Traffic Logs, After a period of observation, adjust to Allow or Deny.

    Drop

    Priority

    • Highest: The access control policy takes effect with the highest priority.

    • Lowest: The access control policy takes effect with the lowest priority.

    • Custom: Customize the priority. Minimum: 1, Maximum: 50. The smaller the number, the higher the priority.

    Highest

    Policy Validity Period

    • Always

    • Single Time Range: Select a one-time time period.

    • Recurrence Cycle: Select a recurring time period and effective dates.

      Note

    Always

    Status

    Specifies whether the policy is enabled upon creation. You can enable disabled policies later from the policy list.

    Enable

Next steps

After your business has been running for a period, you can view the hit count of access control policies in the Hits/Last Hit At column in the access control policy list.

Click the hit count to go to the Traffic Logs page to view traffic logs. For information about how to view traffic logs, see Traffic Logs.

image.png

Related documentation