Issue link: https://read.uberflip.com/i/1334488
Administering OpenStack Compute 36 To delete a security group To delete a security group, say webserver, we run the following under euca2ools: euca-delete-group webserver Under Nova Client this would be: nova secgroup-delete webserver How it works... Creation of a security group is done in two steps as follows: 1. The first is that we add a group using the euca-add-group or nova secgroup-create commands. 2. Following that we can define rules in that group using the euca-authorize or nova secgroup-add-rule tools, and with this we can specify destination ports that we can open up on our instances and the networks that can see these open ports. Defining groups and rules using euca2ools The euca-add-group command has the following syntax: euca-add-group group_name -d description The euca-authorize command has the basic following syntax: euca-authorize -P protocol -p port -s source To view more advanced syntax, run euca-authorize -h. Removing rules from a security group is done using the euca-revoke-access command, which is analogous to the euca-authorize command. Removing a security group altogether is done using the euca-delete-group command, which is analogous to the euca-add-group command. Defining groups and rules using Nova Client The nova secgroup-create command has the following syntax: nova secgroup-create group_name "description" The nova secgroup-add-rule command has the following basic syntax: nova secgroup-add-rule group_name protocol port_from port_to source www.it-ebooks.info

