Security groups can be associated with CVMs, ENIs, TencentDB for MySQL, and CLBs. This topic describes how to associate a security group with a CVM.
Security groups can be associated with one or more CVMs for network access control. They are an important part of CVM network security measures. You can associate your CVM with one or more security groups if necessary. The following are detailed instructions.
You should already have a CVM instance created before starting.
- Log in to the CVM console.
- On the left sidebar, choose Security Group to go to the Security Group page.
- On the Security Group page, select a region and locate the security group for which you want to set rules.
- In the row of the target security group, click Manage Instances in the Operation column of the target security group. The Associated Instances page then appears.
- On the Associates Instances page, click Add Instance.
- In the pop-up Add Instance window, select the instances to bind and click OK
After multiple security groups are bound to an instance, they are executed based on their priorities, which are consistent with their binding sequence. To adjust the priorities of the security groups, see Adjusting Security Group Priority.
- You can check all security groups in a specific region.
For operation details, see Viewing Security Groups.
- If you want to disassociate a CVM instance from one or more security groups, you can remove it from the security group.
For operation details, see Remove from Security Groups.
- If you no longer need a security group, you can delete it. Once a security group is deleted, all rules within it are also deleted.
For operation details, see Deleting a Security Group.