Difference between revisions of "How To Create and Use Security Groups in OpenNebula"

From CipherSpace Client Wiki
Jump to navigation Jump to search
Line 12: Line 12:
#:[[File:SecGp_1.png|150px]]
#:[[File:SecGp_1.png|150px]]
#: <br>
#: <br>
#:A list with all existing security groups will appear
#:A list with all existing security groups will appear.
#:[[File:SecGp_2.png|800px]]
#:[[File:SecGp_2.png|800px]]
# Click on the &quot;+&quot; button to create a new Security group.
# Click on the &quot;+&quot; button to create a new Security group.
Line 54: Line 54:
#:[[File:SecGp_6.png|150px]]
#:[[File:SecGp_6.png|150px]]
#:<br>
#:<br>
#:A list with all existing virtual networks will appear
#:A list with all existing virtual networks will appear.
#:[[File:SecGp_7.png|800px]]
#:[[File:SecGp_7.png|800px]]
# Select the virtual network you want to apply these rules to and click on &quot;Update&quot;
# Select the virtual network you want to apply these rules to and click on &quot;Update&quot;
#:[[File:SecGp_8.png|800px]]
#:[[File:SecGp_8.png|800px]]
# Go on the Security tab and click on the security group you want to add
# Go on the Security tab
#:[[File:SecGp_9.png|800px]]
#:[[File:SecGp_9.png|800px]]
#:And click on the security group you want to add.
#:[[File:SecGp_10.png|800px]]
# Click on &quot;Update&quot; to save your changes.
# Click on &quot;Update&quot; to save your changes.

Revision as of 11:51, 10 July 2017

What is a Security Group ?

A Security Group define firewall rules, which can then be applied to your VMs.

Create a new Security Group

  1. Log into OpenNebula Sunstone.
  2. Go to "Network" in the left menu and click on "Security Groups" in the drop down menu.
    SecGp 1.png

    A list with all existing security groups will appear.
    SecGp 2.png
  3. Click on the "+" button to create a new Security group.

Define a Security Group

A security group is defined by its name, an optional description and one or several rules.

SecGp 3.png

Create a new rule

To create a new rule, you must specify the following parameters:

  • Traffic direction: Choose between "Inbound" and "Outbound"
  • Protocol: Choose between the following values:
    • TCP
    • UDP
    • ICMP
    • IPsec
    • All
  • Port range: Only available with TCP or UDP. You can either select "All" or you can specify a port range. Multiple ports or port ranges are separated using a comma, and a port range is specified using a colon. Example: 22,53,80:90,110,1024:65535
  • ICMP Type: Only available with ICMP. Use the dropdown to select the desired type or you can leave it blank to allow all ICMP traffic.
  • Target network: you can define wether this rule can be applied to
    • any virtual network ("Any network"),
    • a specific virtual network ("OpenNebula Virtual Network"),
    • or a specific IP range ("Manual Network")

If you choose "Manual Network", you must specify the following values: - First IP address: the first IP of your range - Size: the number of IP adresses in your range (including the first)

When all the parameters are specified, click on "Add rule" to create the new rule.

SecGp 4.png

When all the rules have been defined, click on "Create" to finish the creation of the new Security Group.

SecGp 5.png

Use a Security Group

To apply your rules to your VMs:

  1. Go to "Network" in the left menu and click on "Virtual Networks" in the drop down menu.
    SecGp 6.png

    A list with all existing virtual networks will appear.
    SecGp 7.png
  2. Select the virtual network you want to apply these rules to and click on "Update"
    SecGp 8.png
  3. Go on the Security tab
    SecGp 9.png
    And click on the security group you want to add.
    SecGp 10.png
  4. Click on "Update" to save your changes.