Skip to main content
Create a rule in a security group
Last update:

Create a rule in a security group

Through the control panel, you can create a rule with TCP, UDP, ICMP, or Any (all protocols). You can create a rule with any protocol through the OpenStack CLI.

Create a rule for incoming traffic

  1. In the dashboard, on the top menu, click Products and select Cloud Servers.

  2. Go to the Security Groups section.

  3. Open the security group page.

  4. Open the Incoming Traffic tab.

  5. Click Create Rule.

  6. If one of the rule templates for incoming traffic is suitable for you, select a template from the list. The Protocol, Source, Source Ports, Traffic Destination, and Destination Port fields are filled in automatically.

  7. If the templates don't fit, specify your rule parameters:

    7.1. Select a protocol or click All Protocols.

    7.2 Specify the traffic source (Source):

    • for traffic from an IP address or subnet — select CIDR and enter the IP address or subnet, or click All Sources;
    • for traffic from a security group — select Security Group and select the group. Security groups in the same pool are available. If you need to accept traffic from another pool, specify the source CIDR.

    7.3 Enter the port on which traffic is allowed to be received (Dst. port) — a single port or a range of ports, or click All Ports.

    7.4 Optional: enter a comment for the rule.

  8. Click Create.

Create a rule for outgoing traffic

  1. In the dashboard, on the top menu, click Products and select Cloud Servers.

  2. Go to the Security Groups section.

  3. Open the security group page.

  4. Open the Outgoing Traffic tab.

  5. Click Create Rule.

  6. If one of the rule templates for outgoing traffic is suitable for you, select a template from the list. The Protocol, Source, Source Ports, Traffic Destination, and Destination Port fields are filled in automatically.

  7. If the templates don't fit, specify your rule parameters:

    7.1. Select a protocol or click All Protocols.

    7.2 Specify the destination of the traffic (Destination):

    • for traffic from an IP address or subnet — select CIDR and enter the IP address or subnet or click All Sources;
    • for traffic from a security group — select Security Group and select the group. Security groups in the same pool are available. If you need to send traffic to another pool, specify the source CIDR.

    7.3 Enter the source port (Src. port) — a single port or a range of ports or click All Ports.

    7.4 Optional: enter a comment for the rule.

  8. Click Create.