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…
Log in to Horizon with the appropriate credentials.
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 of70.70.70.0/24
:Next, we will launch two VM instances named
Chapter7_VM1
andChapter7_VM2
on the Network,Chapter7_Network1
, and associate them with the security group,Chapter7_SecurityGroup1
, that was created in the previous recipe:Once the VMs are...