Cloud Firewall protection

Updated at:
Copy as MD

Egress Proxy Gateway (EPG) supports one-click enablement of Cloud Firewall protection. After the feature is enabled, EPG sends outbound traffic (TLS interception must be enabled for HTTPS traffic) to Cloud Firewall for threat detection, and requests that hit threat rules are blocked. This helps you prevent egress risks such as malicious external connections and data leakage. You do not need to modify clients, rebuild or restart instances, or interrupt business traffic.

How it works

Cloud Firewall protection is enabled on a per-EPG-instance basis. After the feature is enabled, the outbound traffic proxied by the instance is sent for inspection in the following process:

  1. The client sends an outbound request to the EPG instance over the explicit proxy.

  2. If TLS interception is enabled for the instance, EPG decrypts HTTPS traffic. For HTTPS traffic whose TLS interception is not enabled, EPG only passes through the encrypted tunnel and does not send it for inspection.

  3. EPG sends HTTP requests and decrypted HTTPS requests to Cloud Firewall for threat detection. The inspected traffic is transmitted only within the Alibaba Cloud internal network. The decrypted plaintext is used only for inspection and is not written to disk.

  4. If a request hits a block rule, EPG terminates the forwarding and returns an HTTP 403 status code and a block message to the client. The block message contains information such as the request ID, the requested URL, and the request time. If a request passes the inspection, EPG continues to select an egress IP address and forward the request.

Important

EPG continuously monitors the connectivity with Cloud Firewall. If Cloud Firewall is unreachable, EPG allows outbound requests by default to ensure business continuity, and the outbound traffic does not go through threat detection. After the connectivity is restored, the traffic is automatically sent for inspection again.

Prerequisites

Enable Cloud Firewall protection

  1. Log on to the EPG console. In the left-side navigation pane, choose Instance Management > Instance List, and then click the ID of the target instance to go to the details page.

  2. In the Basic Information section, find the Cloud Firewall Protection field, and click Enable Protection.

  3. In the confirmation dialog box, select I understand the billing rules, and then click Enable Protection. After the feature is enabled, the Cloud Firewall Protection field displays Protected. For more advanced protection policies, go to the Cloud Firewall console to configure them.

    If Cloud Firewall is not activated for the current account, the system guides you to activate Cloud Firewall pay-as-you-go 2.0.
    After you enable the feature on the EPG side, Cloud Firewall automatically creates an explicit proxy firewall instance for each EPG instance.

Disable Cloud Firewall protection

Warning

After the feature is disabled, the outbound traffic of the instance is no longer sent to Cloud Firewall for inspection, and the access control and security policies configured in Cloud Firewall no longer take effect.

  1. In the Basic Information section of the instance details page, click Disable Protection next to the Cloud Firewall Protection field.

  2. In the confirmation dialog box, click Confirm. After the feature is disabled, the Cloud Firewall Protection field displays Not Protected.

View protection records

After the feature is enabled, the Cloud Firewall Protection field displays the number of requests blocked in the last 7 days. You can go to the Proxy Logs page of Cloud Firewall, filter the log entries by EPG instance ID, and view the details. The Proxy Logs page displays the Request ID, which you can use to find the corresponding request entry in Access logs.

Billing

Enabling Cloud Firewall protection does not incur fees on the EPG side. For the billing rules on the Cloud Firewall side, see Pay-as-you-go 2.0 and Subscription 2.0.