# Security Groups

> A security group acts as a virtual firewall for servers and other resources on a network. It is a container for security group rules which specify the network access rules.

A security group acts as a virtual firewall for servers and other resources on a network. It is a container for security group rules which specify the network access rules.

### Create a security group allow SSH from any IP {#create-a-security-group-allow-ssh-from-any-ip}

1. Navigate to `Project > Network > Security Groups` > `+ Create Security Group`

   ![/assets/network/create_sg_1.png](/assets/network/create_sg_1.png)

2. Input name of the security group and click `OK`

   ![/assets/network/create_sg_2.png](/assets/network/create_sg_2.png)

3. Select the newly created security group, hover over `More`, and click `Create Rule` from the dropdown menu.

   ![/assets/network/create_sg_3.png](/assets/network/create_sg_3.png)

4. For this creation, fill in folllowing fields:
   - **\*Protocol :** protocol selection including combination with TCP / UDP / ICMP, ALL / CUSTOM and Others.
   - **\*Direction :** Ingress / Egress.
   - **\*Ether Type :** IPv4 / IPv6.
   - **\*Port Type :** All / Custom.
   - **\*Source Port/Port Range :** input source port or port range(port:port)
   - **\*Romote Type :**
     - **\*CIDR** : **\*Romote IP Prefix** : support both IPv4 and IPv6.
     - **\*Security Group** : **\*Remote Security Group** : Use to inherit policies from existing Security Group for extention.

   After filling all fields above, click `OK` to apply user creation.

   ![/assets/network/create_sg_4.png](/assets/network/create_sg_4.png)

5. Notification of rule creation result will appear on top right.

   ![/assets/network/create_sg_5.png](/assets/network/create_sg_5.png)
