Managing security group rules

You can modify security groups by adding and removing rules. Editing rules is not available. If you need to change the existing rule, remove it and recreate with the required parameters.

Prerequisites

To add a rule to a security group

Admin panel

  1. On the Compute > Network > Security groups tab, click the security group to add a rule to.
  2. On the group right pane, click Add in the Inbound or Outbound section to create a rule for incoming or outgoing traffic.
  3. Specify the rule parameters:
    1. Select a protocol from the list or enter a number from 0 to 255.
    2. Enter a single port or a port range. Some protocols already have a predefined port range. For example, the port for SSH is 22.
    3. Select a predefined subnet CIDR or an existing security group.
  4. Click the check mark to save the changes.

As soon as the rule is created, it is applied to all of the virtual machines assigned to the security group.

To remove a rule from a security group

Admin panel

  1. On the Compute > Network > Security groups tab, click the required security group.
  2. On the group right pane, click the bin icon next to a rule you want to remove.

As soon as the rule is removed, this change is applied to all of the virtual machines assigned to the security group.