Rules of safety group

Products

Virtual Machines

2022-02-25 14:40:34

Security group rules

Security group rules control the inbound traffic allowed to reach the instance associated with the security group and the outbound traffic allowed to leave the instance.

Security group rule content

  • Type: Common application types, such as SSH, PING or HTTP, etc., with the option of customizing TCP or UDP.

  • Protocol: Select by application type to display the type of protocol to which it belongs.

  • Target Port:

    • If inbound rules are configured, the target port refers to the instance port within the security group; if outbound rules are configured, the target port refers to the remote port.
    • The port value is 1-65535 and can be filled with a single port such as "22" or a range of ports such as "20-22".
    • If you select Common Application in the rule type, the target port will be directly displayed as the corresponding default port without setting; if you select Custom TCP/Custom UDP, you can customize the port range.
  • Source/Destination IP: IP address or address segment allowed to access/be accessed (CIDR), IPv4 address, e.g. fill in 0.0.0.0/0 means all IP addresses are allowed to access; Ipv6 address, e.g. fill in ::/0 means all IP addresses are allowed to access.

  • Policy: Allow (default and no modification allowed).

  • Notes: Marking rule usage, up to 256 characters can be entered.

Security Group Rule Restrictions

  • User-created security groups have the following rules by default
    • Entry direction: Deny all traffic
    • Outward direction: Open TCP port 80 and UDP ports 67, 68 and 161 due to internal service needs, all other traffic is denied
  • The security group rule policy is always "Allow"; you cannot create a rule to "Deny" access.
  • Security groups are stateful: If you configure an outbound rule to allow an instance to send a request to the outside, the response traffic for that request will be allowed to flow regardless of the inbound security group rule, and vice versa.
  • You can add and remove rules at any time. The new security group policy is automatically applied to the instance associated with the security group.

Common ports

Port Service Description
21 FTP Port opened by FTP service for uploading and downloading files.
22 SSH SSH port for connecting to Linux instances via command line mode or remote connection software (e.g. PuTTY, Xshell, SecureCRT, etc.). For details, see Using username password authenticationConnecting to Linux instances.
23 Telnet Telnet port for Telnet instances
25 SMTP Port opened by SMTP service for sending emails. Currently to open the port you need to submit a work order request.
80 HTTP is used for web services such as IIS, Apache, Nginx, etc. to provide external access.
110 POP3 Port open for POP3 (Mail Protocol 3) service.
137, 138, 139 NETBIOS protocol where 137, 138 are UDP ports, which are used when transferring files through network neighbors. A connection coming in through port 139 is attempting to obtain NetBIOS/SMB service. This protocol is used for Windows file and printer sharing and SAMBA.
143 IMAP is used for the IMAP (Internet Message Access Protocol) protocol, which is also the protocol for receiving e-mail.
443 HTTPS is used for HTTPS services to provide access to the function. HTTPS is a protocol that provides encryption and transmission over secure ports.
1433 SQL Server SQL Server The TCP port of SQL Server, used for SQL Server to provide services to the outside world.
1434 SQL Server SQL Server The UDP port of SQL Server, used to return to the requester which TCP/IP port SQL Server is using.
3306 MySQL The default port for MySQL databases, used by MySQL to provide services to the outside world.
3389 Windows Server Remote Desktop Services Windows Server Remote Desktop Services (Remote Desktop Services) port, through which you can use software to connect to a Windows instance. For details, see Connecting to Windows instances.
proxy port port 8080 port 8080 is the same as port 80, which is used for WWW proxy services to enable web browsing. Often when accessing a website or using a proxy server, you need to add the ":8080" port number after the IP address. In addition, after installing the Apache Tomcat web server service, the default service port is 8080.

Security Group Priority

Security groups have no priority, when an instance is associated with multiple security group associations, the rules of each security group will be aggregated to take effect, and access will be allowed or not according to the aggregated rules.

Related References

Connect Linux Instance

Connect Windows Instance

Feedback

开始与售前顾问沟通

可直接拨打电话 400-098-8505转1

我们的产品专家为您找到最合适的产品/解决⽅案

在线咨询 5*8⼩时

1v1线上咨询获取售前专业咨询

点击咨询
企微服务助手

专业产品顾问,随时随地沟通