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. В control panels from the top menu, press Products and select Cloud servers.

  2. Go to the section Security groups.

  3. Open the security group page.

  4. Open the tab Incoming traffic.

  5. Click Create a 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 press All protocols.

    7.2 Specify the traffic source (Source):

    • for traffic from an IP address or subnet — select CIDR and enter an IP address or subnet, or tap All sources;
    • for traffic from the security group — select Security Group and select a 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), either a single port or a range of ports, or press All ports.

    7.4 Optional: enter a comment for the rule.

  8. Click Create.

Create a rule for outgoing traffic

  1. В control panels from the top menu, press Products and select Cloud servers.

  2. Go to the section Security groups.

  3. Open the security group page.

  4. Open the tab Outgoing traffic.

  5. Click Create a 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 press All protocols.

    7.2 Specify the destination of the traffic (Destination):

    • for traffic from an IP address or subnet — select CIDR and enter an IP address or subnet or press All sources;
    • for traffic from the security group — select Security Group and select a 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), either a single port or a range of ports, or tap All ports.

    7.4 Optional: enter a comment for the rule.

  8. Click Create.