Skip to main content

Add rules to a security group

Controlled Traffic: You can specify rules for the inbound traffic and for the outbound traffic of a security group created for a VPC (Virtual Private Cloud).

Authorization Criteria: The rules authorize traffic according to the protocol — for example TCP (Transmission Control Protocol) or UDP (User Datagram Protocol) — and the specified ports.

Sources & Destinations - The authorized traffic can come from:

  • A single IP (Internet Protocol) address or a range of IP addresses (whether public, private or external).
  • Another security group.

Any rule added to a security group is immediately applied to all the VM (Virtual Machine) that use this group.

Permissions

info

This action requires the following IAM (Identity and Access Management) permissions:

  • compute.securityGroup.update
From the left-hand side menu, click Compute → Security Groups.
  1. Log in to the Numspot console.

  2. From the left-hand side menu, click ComputeSecurity Groups.

  3. Click the ID of the security group to which you want to add a rule. The "Security Group Details" page appears.

  4. Select the "Inbound rules" or "Outbound rules" tab, then click the "Add a rule" button. The rule creation dialog box appears.

  5. To define a rule, specify the following information:

    • Service: the service, for example SSH (Secure Shell) or HTTP (HyperText Transfer Protocol).

    • Protocol: the IP protocol (tcp, udp, icmp, or All), where applicable.

    • Port range: specify the range of ports to open, this could be:

      • For TCP and UDP: a single port number between 0 and 65535, or a range of port numbers.

      • For ICMP: a single type number between 0 and 255, or a type number and code number, or -1 to indicate all ICMP types.

        danger

        Avoid opening traffic on all ports (1-65535), as this prevents you from controlling it effectively. Open traffic only on the ports you need.

    • Source: "Anywhere", "Custom" or "My IP"

    • IP range: The target of the rule. This can be:

      • An IP in CIDR (Classless Inter-Domain Routing) notation
      • A range of IP in CIDR notation
      • Another security group, specified by its ID
  6. Click the Validate button.

  7. The rule is successfully created and appears in the list of rules of the security group.

Cette page vous a-t-elle été utile ?