Add security group rules

The following procedure shows you how to add rules to the default security group.

 

To add rules to the default security group

  1. Log in to the OpenStack dashboard.

  2. If you are a member of multiple projects, select a project from the drop-down list at the top of the Project tab.

  3. Click the Access & Security category.

    The dashboard shows the security groups that are available for this project.

     

    Figure 3. OpenStack dashboard – Security Groups


  4. Select the default security group and click Edit Rules.

    The Security Group Rules page appears:

     

    Figure 4. OpenStack dashboard – Security Group Rules


  5. Add a TCP rule

    Click Add Rule.

    The Add Rule window appears.

    1. In the IP Protocol list, select TCP.

    2. In the Open list, select Port.

    3. In the Port box, enter 22.

    4. In the Source list, select CIDR.

    5. In the CIDR box, enter 0.0.0.0/0.

    6. Click Add.

      Port 22 is now open for requests from any IP address.

      If you want to accept requests from a particular range of IP addresses, specify the IP address block in the CIDR box.

  6. Add an ICMP rule

    Click Add Rule.

    The Add Rule window appears.

    1. In the IP Protocol list, select ICMP.

    2. In the Type box, enter -1.

    3. In the Code box, enter -1.

    4. In the Source list, select CIDR.

    5. In the CIDR box, enter 0.0.0.0/0.

    6. Click Add.