Atom feed of this document
  
 

 Basic security group operations

This table shows example neutron commands that enable you to complete basic security group operations:

Table 7.30. Basic security group operations
Operation Command

Creates a security group for our web servers.

$ neutron security-group-create webservers --description "security group for webservers"

Lists security groups.

$ neutron security-group-list

Creates a security group rule to allow port 80 ingress.

$ neutron security-group-rule-create --direction ingress --protocol tcp --port_range_min 80 --port_range_max 80 <security_group_uuid>

Lists security group rules.

$ neutron security-group-rule-list

Deletes a security group rule.

$ neutron security-group-rule-delete <security_group_rule_uuid>

Deletes a security group.

$ neutron security-group-delete <security_group_uuid>

Creates a port and associates two security groups.

$ neutron port-create --security-group <security_group_id1> --security-group <security_group_id2> <network_id>

Removes security groups from a port.

$ neutron port-update --no-security-groups <port_id>
Questions? Discuss on ask.openstack.org
Found an error? Report a bug against this page

loading table of contents...