Topthor

Microsegmentation on steroids

Microsegmentation stalls on clicking through tools and missing documentation. How VCF Microsegmentation Insight builds NSX rules from real traffic in one console.

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:

  1. From vCenter it takes the machines and their tags, which make up the applications.
  2. From VCF Operations for Networks it fetches the real traffic of those machines, over a window of up to 31 days.
  3. From NSX it reads the existing policies, groups and service catalog, so it never creates a second copy of something that is already there.
Application list in VCF Microsegmentation Insight
(1) A summary of the environment: how many machines are in vCenter, how many of them have an application tag and how many applications that adds up to. (2) The PAYROLL application in the NEW state, which means it still has to be done. Ready means the application already has a policy and rules in NSX.

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.

Flows tab: traffic of the PAYROLL application with filters and traffic class
(1) The "Hide public addresses" switch, which hides traffic with public addresses. (2) Filters in the column headers that work like in Excel. (3) Traffic class: the tool turns "within application" into rules on its own, while "untagged peer" waits for a decision. (4) Export to CSV for the application's administrator.

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.

Waiting for a decision section: yes or no decisions with group selection
(1) A "yes" or "no" decision on every item: here the traffic to the NTP server is rejected and the traffic to DNS is accepted. (2) The group for the other side of the connection: a new one, with selected machines or IP addresses, or an existing group from NSX. (3) One button saves all the decisions at once.
Already covered by an existing rule section: traffic allowed by existing rules
(1) The rule and policy in NSX that already allow this traffic, here the Opensense-net rule in the Internet policy. Such traffic does not get a second rule.

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.

Rules of the PAYROLL policy with a service picked from the NSX catalog
(1) A rule built from traffic between the WEB and APP tiers. (2) A service from the NSX catalog, chosen from a searchable list. Services matching the port seen in the traffic are at the top. (3) + Add rule adds a manual rule to the same table.

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.

Apply tab: writing the plan to NSX, confirmed with the application name
(1) The tool writes only ALLOW rules and never creates blocking rules. (2) The write has to be confirmed by typing the application name. (3) Roll back removes everything the tool created for this application.
The PAYROLL policy in NSX after the write
(1) Detailed rules: from the traffic inside the application and from the "yes" decision for the traffic to DNS. (2) The three catch-all rules at the end of the policy.

Talk to the engineers who wrote this

Questions about your own environment? Get in touch, or book a VCF Extensions demo.

Related articles

All articles