Topthor

Microsegmentation is done. What next?

After microsegmentation there is a lot of blocked traffic. How to spot the one new drop that just stopped a critical application.

The microsegmentation project is coming to an end. After a long period of writing and testing rules, the administrators can breathe a sigh of relief. The NSX policies are documented, the rules are switched to block, and nobody reports problems with applications. For the first few days everyone checks the logs to see what is happening, but over time they stop. Three weeks later, nobody looks any more.

Then the last day of the month arrives. Payroll, which connects to its database once a month, on a port nobody wrote into the spreadsheet and nobody ever saw in the logs, fails. The firewall did exactly what it was supposed to do: it blocked traffic nobody had described. The problem is that we find out from a phone call from HR, not from our monitoring.

We hope this has never happened to you. To prevent it, we built a VCF Extension that monitors microsegmentation: VCF Microsegmentation Insight.

Why failures like this happen

The NSX distributed firewall blocks and logs every dropped packet. The logs from such a failure do exist: they sit in VCF Operations for Logs and keep growing. That is exactly why nobody reads them. After microsegmentation there is a lot of blocked traffic, for example network scans, old monitoring systems somebody forgot to switch off, or machines knocking on doors they should no longer use. Sitting in front of the logs waiting for the one critical drop makes no sense, and nobody has the time for it.

The blocked-packet counter in NSX does not help much either. It always grows, so the chart looks the same on a day when everything works and on the day of a failure.

Not volume, but novelty

The failure described above differs from the rest of the blocked traffic in one way: it happens once, and the firewall has never seen this connection since microsegmentation went live. This is what VCF Microsegmentation Insight is built on. It remembers every combination of source, destination, protocol and port the firewall has ever blocked, and raises an alert only when a new one appears. Known blocked traffic is noise that stays in the metrics; if each instance raised an alert, nobody could keep up. New blocked traffic is an event that reaches the administrator and triggers an alert on the rule, with notifications if you want them.

This memory is persistent and does not depend on log retention. A process that runs once a quarter is still recognised as new instead of getting lost.

How VCF Microsegmentation Insight works

  1. It reads NSX: policies, rules, groups with their actual members, virtual machine tags and rule counters.
  2. It reads blocked traffic from VCF Operations for Logs: who, to whom, which protocol, which port and which rule.
  3. It compares with its memory. A known connection only updates the date it was last seen. A new one triggers an alert.

For a quick view of the environment we built a dashboard showing every NSX policy, coloured by how much new blocked traffic its rules have. An application where something is happening turns red automatically. Next to it is the list of addresses the firewall stopped and the alerts with the rule names.

NSX DFW Monitoring dashboard in VCF Operations: NSX policies, blocked machines and alerts
(1) The PAYROLL application policy, with the PAYROLL-ALL-IN and PAYROLL-ALL-OUT rules where new blocked traffic appeared. The rest of the environment is quiet. (2) The machines the firewall blocked, with name and FQDN, each a separate object with metrics. (3) "New dropped traffic on rule" alerts: one per rule, not one per packet.

The relationship map is the most useful part. It shows who a rule actually stopped, not just who it was written against.

Relationship map of the PAYROLL policy: rules with alerts and blocked machines
(1) The catch-all rules PAYROLL-ALL-IN and PAYROLL-ALL-OUT at the end of the application policy, which catch traffic not described by the specific rules. The exclamation mark means an active alert. (2) The machines stuck on them, the same as on the dashboard. One click further is the virtual machine from vCenter, with its performance and history.

Policy technical debt and missing inventory

Since VCF Microsegmentation Insight reads the whole firewall configuration anyway, it also counts things you cannot see anywhere else in VCF Operations:

  • blocking rules without logging: places where the firewall stops traffic and we will never find out;
  • empty groups in active rules, which look as if they work but contain no machines;
  • dead rules that nothing has hit for 90 days;
  • untagged machines that fall outside the policy.

In the next part: how to build microsegmentation from the traffic that actually flows in the network, instead of from the port spreadsheet supplied by the application vendor. We will show the VCF Microsegmentation Insight GUI.

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