Anyone who has done microsegmentation, or taken part in it, knows the feeling: clicking through several components, searching and filtering logs, carefully checking where the traffic comes from and where it goes. After long analysis and the pain of juggling several products, the first rules appear, and that is only a small step...
The problem with a long microsegmentation project is not a lack of skills. It is the complexity of the process itself, made worse by missing or incomplete application documentation. Put all of that together and everyone loses the will to keep the project going.
That is why we built VCF Microsegmentation Insight: a tool that builds microsegmentation in NSX from real traffic, in the simplest possible way for the administrator. Most importantly, everything happens in one console, and even without documentation for an application we can go through the whole process far more easily. The result is a tool that significantly shortens the time it takes to roll out microsegmentation across the whole organisation.
In the previous article (Microsegmentation is done. What next?) we looked at what happens once the rules are live. This time we start at the beginning: how to get to those rules.
Tags, and that is it
All you need to start is two tags on every machine in vCenter: application and tier (for example PAYROLL and APP). This is the only thing that has to be done by hand outside our product. The rest of the process is automated.
How it works:
- From vCenter it takes the machines and their tags, which make up the applications.
- From VCF Operations for Networks it fetches the real traffic of those machines, over a window of up to 31 days.
- From NSX it reads the existing policies, groups and service catalog, so it never creates a second copy of something that is already there.
Checking the traffic
The Flows tab shows the application's traffic, with both sides of each connection described by name and tier. The filters work like in Excel, and a single switch hides public addresses, which for internet-facing applications can take up thousands of rows.
The last two columns matter most. Traffic class says what the tool will do with the traffic: traffic inside the application is handled automatically, while traffic to other applications or shared services waits for a human decision. Allowed by shows traffic that an existing rule already allows, for example a shared "ALL-DNS" rule. That traffic does not need to be described a second time, because a rule in the Infrastructure category in NSX already handles it.
This gives us a fast, readable view of the application's traffic, clearer than the same data in VCF Operations for Networks. We can also export it to CSV and send it to the application's administrator for review. In later phases we can come back to this view to check whether all the traffic is handled by the new rules for this application.
Plan
The first part of the Plan tab shows the rules that are ready to be added to NSX: the rules inside our application. Below them are the rules we have to review, deciding whether to allow that traffic or not. At the end comes the traffic that is already handled by higher-level rules in NSX, so we do not create duplicates in the firewall.
Importantly, if our application talks to a single IP address that we know is already in a group in NSX, we can load the NSX groups that contain it. That keeps NSX tidy, instead of creating more and more security groups.
The service on every rule can be changed to any service from the NSX catalog. If we know about traffic that does not exist yet (a new integration, a job that runs once a year), the + Add rule button adds a rule by hand, in the same table and with the same look as the rules built from traffic.
At the end of the policy the tool always adds three catch-all rules: ALL-ALL, ALL-OUT and ALL-IN. All of them allow traffic, and they are the only ones that log. The detailed rules come before them, so every hit on a catch-all rule is traffic that nobody has described yet.
Writing with confirmation
The last step is to accept the plan. After that everything happens automatically, and our rules appear in NSX together with their security groups. Importantly, every rule is in Allow mode. Only later, once the administrator is confident in the policy's rules, do they switch the last three rules to blocking.