For scenarios such as on-premises data centers (IDCs), hybrid clouds, and Alibaba Cloud VPCs that cannot directly connect to Security Center, you can set up proxy servers to route hosts and containers that have no internet access into Security Center for protection. This topic describes how to connect servers to Security Center through proxy access.
Use cases
VPC that cannot directly connect to Security Center
If your Alibaba Cloud VPC has strict access restrictions and cannot directly connect to Security Center, you can use proxy access to connect ECS instances to Security Center for protection.
On-premises data centers
Hybrid clouds
Limitations
Only Linux servers can serve as proxy servers.
Servers connected through proxy access support most Security Center features, but do not support the following features. For the full feature list, see Functions and features.
Security Center features not supported through proxy access
|
Module |
Features |
|
Asset Center |
Batch O&M and Cloud Monitor, container assets, cloud products, and websites |
|
Risk Governance |
Asset exposure analysis, CSPM overview, Integrate third-party cloud assets, and AccessKey pair leak detection |
|
Protection Configuration |
Anti-brute-force cracking. Only servers with the AliNet plugin online support this feature. |
|
|
Prerequisites
-
Prepare one or more servers that can access the internet to serve as proxy servers, meeting the following requirements:
-
Reserve sufficient network bandwidth. Each connected server requires 10 Kbit/s of bandwidth. For example, connecting 50 servers requires 500 Kbit/s of reserved bandwidth on the proxy server.
-
Ports 80, 443, and 8080 are open on the proxy server for connections from hosts or containers.
-
-
If you use multiple servers as proxies, use domain name access. Make sure you have a domain name for the proxy servers and it resolves to the proxy server IP addresses, load balancing IPs, or virtual IP addresses (VIPs).
-
A single 8-core, 16 GB proxy server supports up to 6,000 hosts or containers. Plan proxy server specifications and quantity based on your actual needs.
-
If you do not use domain name access (for example, using a public IP address directly), use multiple servers to build a proxy cluster for connection stability.
-
For hybrid cloud scenarios, establish network connectivity between third-party cloud servers and Alibaba Cloud VPCs.
Step 1: Create a proxy cluster
-
Log on to the Security Center console.
-
On the Agent > Proxy Access tab, click Create Cluster.
-
In the Create Cluster dialog box, configure the cluster name, communication address, and description, then click OK.
-
Address: Enter the IP address or domain name of the proxy server. After the cluster is created, hosts or containers in the cluster connect to the proxy server through this Address.
-
When Address is set to a proxy server IP address, you can configure only one proxy server. Use this method when connecting a small number of hosts or containers (for example, 5).
-
To configure multiple proxy servers, use a domain name as the Address and make sure the domain name resolves to the proxy server IP addresses, load balancing IPs, or virtual IP addresses (VIPs).
-
After cluster creation, the cluster name and communication address cannot be modified. Enter a meaningful cluster name and a reachable communication address.
-
Step 2: Deploy a proxy server
-
On the Agent > Proxy Access tab, in the Actions column of the target cluster, click Deploy Proxy.
-
In the Deploy Proxy Server panel, select a deployment mode and complete the configuration.
If the proxy server already has the Security Center agent installed and online, select quick deployment. If the proxy server does not have the Security Center agent installed, use manual deployment.
-
Quick deployment
When you select Quick Deployment, select the Linux server to use as the proxy server from the asset list, then click OK.
-
Manual deployment
When you select Manual Deployment, copy the manual deployment command from the page, log on to the proxy server as administrator, and run the command.
About 5 minutes after deployment, you can view the proxy server online status on the Agent > Proxy Access tab.
After deploying the proxy server, if the Security Center agent is not installed, the server only has proxy capabilities and cannot use security features such as vulnerability detection and baseline checks. To protect the proxy server, install the Security Center agent. For more information, see install the Security Center agent.
-
Step 3: Connect servers to the proxy cluster
After creating the cluster and deploying the proxy server, add servers as clients to the proxy cluster to connect them to Security Center through proxy access.
-
A single 8-core, 16 GB proxy server supports up to 6,000 hosts or containers.
-
Each batch supports up to 500 hosts, whether you select servers directly or use installation commands. Wait at least 1 minute between batches.
-
On the Agent > Proxy Access tab, in the Actions column of the target cluster, click Install Agent.
-
In the Install Agent panel, select an access mode and complete the configuration.
If the server already has the Security Center agent installed and online, select the server directly. If the server does not have the Security Center agent installed, use the installation command.
-
Select servers directly
In the asset list, select the servers to connect, then click OK.
-
Use installation commands
-
Click Generate Installation Command.
-
On the Agent > Installation Command tab, click Create Installation Command.
-
In the Create Installation Command dialog box, configure the parameters, then click OK.
Parameter
Description
Expiration Time
The expiration time of the installation command.
Service Provider
The service provider of the server.
Default Group
The group of the server in the Security Center host asset list.
OS
The operating system of the server.
Create Image System
Whether to create an image for the server. Keep the default option.
Select Proxy
Select Self-managed Proxy Cluster, then select the proxy cluster to connect to.
-
In the installation command list, view and copy the installation command. After generating the command, confirm that the Proxy Access field shows the selected proxy cluster name, then click the copy icon in the upper-right corner of the command area.
-
Log on to the server to connect as administrator and run the installation command based on the operating system.
-
-
About 5 minutes after installation, click the number in the Client Connected column of the proxy cluster to view the list of servers connected through the proxy.
(Optional) Step 4: Configure a proxy cluster policy
By default, Security Center sends data collected by proxy servers back to the server without bandwidth or frequency limits. To change the data transmission mode or set bandwidth and frequency limits, follow these steps.
-
On the Agent > Proxy Access tab, in the Actions column of the target cluster, click Proxy Settings.
-
In the Proxy Settings dialog box, configure the settings, then click OK.
The data transmission mode supports Send Data Back to Management Center and Directly Cache to Specified Directory.
Transmission mode
Description
Send Data Back to Management Center
Sends data to Security Center for risk and threat detection. You can manually set the bandwidth and frequency for communication between the proxy server and Security Center. Options: Unlimited: No bandwidth or frequency limits. Custom: Set custom bandwidth and frequency limits. Keep bandwidth usage and communication processes below 60% of total resources.
Directly Cache to Specified Directory
Performs risk and threat detection for specified data types within your business network (on-premises IDC, VPC, etc.). Logs are stored at
/usr/local/aegis/proxy/log/export.logon the proxy server by default. You can change the cache directory. The cache directory supports up to 10 GB. When storage exceeds 10 GB, the system overwrites the earliest logs in a circular manner.
Related operations
View proxy cluster information
-
Log on to the Security Center console.
-
On the Agent > Proxy Access tab, you can perform the following operations.
-
View cluster details
View the proxy cluster name, communication address, number of connected clients, cluster status, and other information. A cluster can be in one of the following states:
-
Online: At least one proxy server in the cluster is online.
-
Offline: No proxy server exists in the cluster, or all proxy servers are offline.
-
-
View the proxy server list
In the Server Information column of the target cluster, click the
icon to view the proxy server list. Hover over a proxy server in the asset information area to view its basic information. The Agent Status field shows the online status of the Security Center agent.The proxy server list displays Asset Information, Client Connected, Current Version, Status, and Actions columns. Click a proxy server record to view the Server Information details panel, which shows the server name, instance ID, region, group, private IP address, MAC address, agent status, memory, CPU, kernel version, disk usage, and Client Self-Protection status.
-
View connected clients
In the Client Connected column of the target cluster, click the number to view the list of connected servers. You can view asset information, group, OS type, service provider, region, tags, and agent status.
-
Delete a cluster
To remove servers connected through proxy access, delete the connected clients, proxy servers, and proxy cluster in sequence.
-
Disconnect all servers from the proxy cluster.
-
On the Agent > Proxy Access tab, in the Actions column of the target cluster, click Install Agent.
-
In the Install Agent panel, clear all selected servers, then click OK.
This operation unbinds all servers from the proxy cluster but does not uninstall the Security Center agent. To uninstall the agent, see Uninstall the Security Center agent by running a command.
-
-
Uninstall the proxy servers.
You can delete a proxy server only when it is offline. Stop the aegis proxy process to bring the proxy server offline.
-
Log on to the proxy server as administrator and run the following commands to stop the aegis proxy process.
ps -ef | grep aegis kill PID # The PID of the /usr/local/aegis/proxy/SasClientProxy processNoteIf you lack permission to stop the process, disable client self-protection first. For more information, see Enable features on the Agent Settings tab.
-
On the Agent > Proxy Access tab, in the Server Information column of the target cluster, click the
icon. -
In the Server Information panel, click Delete in the Actions column of each proxy server.
-
-
After all proxy servers are deleted from the cluster, click Delete in the Actions column of the proxy cluster to delete it.
Upgrade the proxy version
Security Center continuously upgrades proxy server versions. You can manually upgrade as needed.
-
Log on to the Security Center console.
-
In the Server Information panel, in the Actions column of the target proxy server, click Upgrade.
If Upgrade is dimmed, the proxy version is already the latest or the Security Center agent is offline. When the agent is offline, troubleshoot the issue and make sure the agent is online before upgrading. For more information, see Troubleshoot why the Security Center agent is offline.
FAQ
Does Security Center proxy access support cross-account access?
No. A proxy cluster created under Alibaba Cloud Account A does not support ECS instances under Alibaba Cloud Account B connecting to Security Center through that cluster.
Security Center multi-account security management supports unified management of security configurations (including asset access) and risk handling across multiple Alibaba Cloud accounts. We recommend using this feature. For more information, see Use the multi-account management feature.