Before adding a proxy to a created host cluster, you need to perform the following operations on the proxy:
Required Resources
You have configured the following resources in a Virtual Private Cloud (VPC):
Resource Type | Supported Resource Specifications | Quantity | Description |
|---|---|---|---|
EIP | Bandwidth ≥ 5 Mbit/s | 2 | 1. When creating a proxy, you need to add an ECS bound to an elastic IP address as the proxy. 2. When creating an SNAT gateway, you need to bind an EIP to it. |
Procedure
grep AllowTcpForwarding "/etc/ssh/sshd_config"
service sshd restart
in the upper left corner and choose Networking > NAT Gateway to access the console.
and choose Networking > Virtual Private Cloud to access the network console.Check the route information.
Route Information | Description |
|---|---|
Destination | Destination CIDR block. The default value is 0.0.0.0/0. Select the IP address for the access environment based on project requirements. |
IP Addresses | Click to view detailed information about the IP addresses. |
Next Hop Type | Set it to NAT gateway. |
Next Hop | Set it to the public NAT gateway that you have added the SNAT rule to. |
Type | System: A system route is automatically added by the system and cannot be modified or deleted. Custom: A user-defined route is added by a user to direct traffic to a desired destination, and can be modified and deleted. The destination of a custom route cannot overlap with that of a system route. |
Description | Description of the route. |
Operation | You can modify and delete routes. |
Required Resources
Procedure
netsh interface portproxy add v4tov4 listenaddress=${proxy_ip} listenport=${proxy_port} connectaddress=${host_ip} connectport=${host_port}
Parameter | Description |
|---|---|
${proxy_ip} | Private IP address of the proxy. |
${proxy_port} | Listening port of the proxy, for example, 54. |
${host_ip} | Private IP address of the host. |
${host_port} | Port of the host. Generally, the port is 5986. |
