Book Image

OpenStack Networking Cookbook

Book Image

OpenStack Networking Cookbook

Overview of this book

Table of Contents (19 chapters)
OpenStack Networking Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Securing the traffic between instances on the same Network


In this recipe, we will see how to use security groups to secure the instances on the same Network. We will create a Network and launch two instances connected to the Network. We will then use security groups in order to restrict the traffic between VMs.

Getting ready

For this recipe, you will need the following information:

  • The name for the Network

  • The name for the security group

How to do it…

  1. Log in to Horizon with the appropriate credentials.

  2. Follow the recipe titled Creating a Subnet and Network using Horizon in Chapter 1, Getting Started with OpenStack Networking to create a Network and its Subnet. For this recipe, we will create a Network called Chapter7_Network1 with a Subnet IP range of 70.70.70.0/24:

  3. Next, we will launch two VM instances named Chapter7_VM1 and Chapter7_VM2 on the Network, Chapter7_Network1, and associate them with the security group, Chapter7_SecurityGroup1, that was created in the previous recipe:

  4. Once the VMs are...