To create a security group, use the openstack security group create command as follows:
openstack security group create
[--description <description>]
[--project <project>]
[--project-domain <project-domain>]
<name>
By default, security groups in Neutron are pre-populated with two egress rules that allow all outbound traffic over IPv4 and IPv6. Inbound traffic is not permitted by default.