Sunday 8 June 2014

Steps to create and update security group in OpenStack




[Steps summarised from http://docs.openstack.org/trunk/openstack-ops/content/security_groups.html]



Pre-requisites

Run steps from link http://itinsteps.blogspot.in/2014/06/steps-to-setup-openstack-command-line.html to setup command line tools for OpenStack.
Run steps from link http://itinsteps.blogspot.in/2014/06/steps-to-create-new-tenant-and-users-on.html to create a tenant and user for OpenStack.



Set environment for your specific user and tenant

# source ~/keystonerc_<user-name>



Create a new security group

# nova secgroup-create <security-group-name> "<security-group-description>"

Example

# nova secgroup-create secgroup1 "Create new default security group"



Open port 22 for ssh access in the security group

# nova secgroup-add-rule <secgroup> <ip-proto> <from-port> <to-port> <cidr>

Example

# nova secgroup-add-rule secgroup1 tcp 22 22 0.0.0.0/0



No comments:

Post a Comment