A security group is a stateful virtual firewall capable of filtering. As an important means for network security isolation provided by Tencent Cloud, it can be used to set network access controls for one or more TencentDB instances. VPC-based instances with identical network security isolation requirements in the same region can be put into the same logical security group. This feature is currently not supported for instances on the basic network. TencentDB and CVM share the security group list and are matched with each other within the security group based on rules. Rules that are not supported by TencentDB become invalid automatically.
- TencentDB security group currently only supports network access control over private and public network access in VPCs but not over the basic network.
- Security groups that currently support public network access are available only in Guangzhou, Shanghai, Beijing, and Chengdu.
Log in to the TDSQL Console, click an instance name in the instance list to enter the management page, and select Data Security > Security Group to manage security groups.
- TencentDB shares the security group rules of CVM. You can match or adjust the rule priority as needed on the TencentDB security group management page.
- You cannot create or delete security group rules on the TencentDB security group management page.
Security group policies are divided into "allowing" and "denying" traffic. You can use a security group policy to filter the inbound traffic of an instance, which can be a VPC-based TencentDB instance.
Currently, if you select VPC as the network type when purchasing a TencentDB instance, there is no need to associate a security group. In this case, the default policy is to "open all IPs and ports to internet".
You can create a custom security group or create one from template. You can control the inbound and outbound packets on CVM instances by configuring security group rules. Three templates are currently available in the system:
Security group rules are used to control the inbound and outbound traffic on instances associated with the security group (filtered based on the rules from top to bottom). By default, a new security group denies all traffic (All Drop). You can modify security group rules at any time, and new rules take effect immediately once saved.
Each security group rule involves the following items:
You can set security group priority in the instance console. The smaller the number, the higher the priority. If an instance is bound to multiple security groups, the priority will be used as the basis for determining the overall security rules of the instance.
In addition, if the last policy of such security groups is "ALL Traffic denied", then the last policy in each of them, except the one with the lowest priority, will become invalid.
It is not recommended to associate too many instances with a security group.
|Access policy||100 inbound ones, 100 outbound ones|
|Number of security groups associated with an instance||Unlimited|
|Number of instances associated with a security group||Unlimited|
TencentDB shares the security group rules of CVM. You can match or adjust the rule priority as needed on the TencentDB security group management page. To create, manage, and delete security group rules, you should go to the security group management page.