API Doc
Search Docs...
⌘ K
OverviewDeploymentManagementOperationSecurityReferenceGlossary

Configuring the distributed firewall

  1. Choose whether to enable Deny communication by default.

    When a virtual machine in the ANS service does not apply any custom security policy or quarantine policy: If this option is enabled, the virtual machine is not allowed to receive or send any flow; if this option is disabled, the virtual machine is allowed to receive or send any flow.

    Note:

    • This configuration applies only to: Virtual machines with any VM network linked to a virtual distributed switch that has been associated with this ANS service, and the virtual machines are not used as policy objects.

      If a virtual machine has multiple virtual NICs, this configuration applies only to the traffic on the NICs whose virtual distributed switches are associated with this ANS service.

    • This setting will take effect after the ANS service is successfully deployed.

  2. Create the Global allowlist and choose whether to enable it immediately.

    When the Deny communication by default option is enabled or custom security policies are set, a global allowlist ensures normal communication between services deployed outside the data center (such as bastion hosts) and virtual machines in the data center.

    • Choose whether to enable the global allowlist immediately.

      Information:

      When the network traffic visualization feature of Observability is used in combination, you can configure the global allowlist during the ANS deployment stage, but not enable it immediately. After deployment, run the relevant applications for a period of time, then turn on the Preview switch of network traffic visualization to observe the current flow type and the expected flow type after the global allowlist takes effect. If the expected flow type does not match your expectations, refer to Editing the global security policy to adjust the global allowlist, continue running the applications for a period of time, and observe the expected flow type again until it meets your expectations before enabling the global allowlist. In this way, you can learn the effect of the global allowlist in advance, and identify and address potential security risks without any actual impact on normal application traffic. For detailed operations, refer to Security policy monitoring mode.

    • Click + Add IP address to configure ingress and egress allowlists. This operation is optional if the global allowlist is not enabled.

      1. Add ingress or egress allowlists by IP address: Supports IPv4 and IPv6. You can enter IP addresses, CIDR blocks, or IP address ranges. After entering a CIDR block, you can click the ellipsis (...) on the right side of the input box, and click Exclude specific IP address to manually exclude specific IP addresses or CIDR blocks from the entered CIDR block.

      2. Protocol: You can choose Specific and then enter the allowed protocols and ports, or select specific services. If no protocol is to be restricted, choose Any.

    Note:

    • Global allowlists apply only to: Virtual machines with any VM network linked to a virtual distributed switch that has been associated with this ANS service, and the virtual machines are not quarantined.

      If a virtual machine has multiple virtual NICs, global allowlists apply only to the traffic on the NICs whose virtual distributed switches are associated with this ANS service.

    • The IP addresses filled in the global allowlist should be IP addresses outside the scope of the ANS service. If the allowlist includes virtual machines in the clusters associated with the ANS service, the global allowlist will not set symmetric traffic rules for them. As a result, their access to other virtual machines associated with the ANS service cannot be guaranteed. The traffic handling method will depend on other security policies to which such virtual machines belong.