Manage egress address pools
An egress address pool centrally manages the egress IP addresses of an Egress Proxy Gateway (EPG) instance. You can aggregate Elastic IP Addresses (EIPs) or private IP addresses into a pool, and associate different rule groups with different pools to control the source IP addresses of outbound traffic. This provides centralized management of egress IP addresses, business isolation, and IP address rotation for scenarios such as IP whitelists, tenant isolation, and internal network access.
Address pool types
|
Network type |
Egress method |
Addition method |
Scenarios |
|
Public network |
Access the Internet through EIPs |
Add available EIPs in the same region to the address pool |
Access public services on the Internet, such as third-party APIs and SaaS |
|
Private network |
Access the internal network through private IP addresses |
Allocate private IP addresses from the vSwitch that corresponds to the address pool |
Internal access scenarios, such as accessing services on the corporate intranet and private communication across virtual private clouds (VPCs) |
Prerequisites
-
You have created an EPG instance.
Create an egress address pool
You can create multiple egress address pools for an EPG instance.
-
Log on to the EPG console, and click the ID of the target instance to go to the instance details page. On the Egress address pool tab, click Create an egress address pool.
-
On the Create an egress address pool page, complete the following configurations, click Confirm Creation, and wait until the address pool is ready.
-
Name: Required. Enter an easily identifiable name for the address pool.
-
Network type: Select Public network (access the Internet through EIPs) or Private network (access the internal network through private IP addresses). Default value: Public network.
-
Scheduling policy:
-
Random: Default value. Applies to scenarios such as stateless API calls and IP address rotation.
-
Consistent Hashing: Requests from the same source are always mapped to the same egress IP address. Applies to scenarios such as session persistence and tenant isolation. You must select Hash factor:
-
source IP: Fixes the egress IP address based on the client IP address.
-
quintet: Fixes the egress IP address based on the 5-tuple, which provides finer granularity than the source IP address.
-
HttpHeader: Fixes the egress IP address based on the value of a specified HTTP header. When you select this option, you must also specify Request header name. If a request does not contain the specified HTTP header or the value of the HTTP header is empty, the system randomly selects an egress IP address and session consistency is not guaranteed. If a request contains multiple HTTP headers with the same name, the first value is used for hashing. Applies to scenarios in which the same business identity, such as the same API key, must use the same egress IP address.
-
-
-
(Optional) Set as default address pool: The default address pool is the fallback egress of the instance. Requests that are allowed but not assigned to a specific address pool leave the network through the default address pool. If no default address pool is set, the instance cannot forward traffic. The first address pool created for an instance automatically becomes the default address pool.
-
Zone Mapping: Select a Switch for each zone. The zones are consistent with those of the EPG instance and do not need to be added manually.
-
Public network address pool: Select one or more EIPs to bind for each zone. If no EIP is available, click Create an EIP to purchase one. EIPs are billed separately from EPG.
-
Private network address pool: For each zone, enter the number of IP addresses to allocate (the system allocates them automatically), or manually specify IPv4 addresses (which must be available addresses in the corresponding vSwitch). You can set both, in which case the number of manually specified IP addresses cannot exceed the number that you entered, and the system automatically allocates the remaining addresses. Make sure that the CIDR block of the corresponding vSwitch has enough available IP addresses.
-
-
Add and remove egress IP addresses
On the Egress address pool tab of the EPG instance details page, click the ID of the target address pool to go to its details page, and switch to the IP Address Management tab:
-
Add egress IP addresses: Click Add IP. In the dialog box that appears, select an Availability Zone and add IP addresses, and then confirm.
-
Public network address pool: Select one or more available EIPs.
-
Private network address pool: Enter the number of IP addresses to allocate automatically, or specify a particular IPv4 address (an available address in the corresponding vSwitch).
-
-
Remove egress IP addresses: Click Remove in the Operation column of the target IP address and confirm, or select multiple IP addresses, click Batch Remove, and confirm. Each zone must retain at least one available address.
Edit the scheduling policy
-
On the Egress address pool tab of the EPG instance details page, click the ID of the target address pool to go to its details page.
-
Click Edit next to Scheduling policy, and set Scheduling policy to Random or Consistent Hashing. If you select Consistent Hashing, you must also select a Hash factor (source IP or quintet or HttpHeader). If you set Hash factor to HttpHeader, you must also specify Request header name. When done, click Confirm.
Request header name can be modified. Modifying Request header name resets the egress IP address mappings of all existing sessions. We recommend that you perform this operation during off-peak hours.
Change the default address pool
If an instance has multiple address pools, you can set any one of them as the default address pool: On the Egress address pool tab of the EPG instance details page, click Set as default in the Operation column of the target address pool and confirm.
Delete an address pool
Before you delete an address pool, make sure that the target address pool meets the following conditions:
-
The target address pool is not associated with any rule group.
-
The target address pool is not the default address pool of the instance. The default address pool cannot be deleted directly. First click Set as default for another address pool of the instance, and then delete the target address pool.
On the Egress address pool tab of the EPG instance details page, click Delete in the Operation column of the target address pool and confirm.
Quotas
To request a quota increase, contact your business manager.
|
Quota item |
Default value |
Adjustable upper limit |
|
Number of egress address pools per instance |
10 |
100 |
|
Number of IP addresses per egress address pool |
100 |
1,000 |