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
- It reads NSX: policies, rules, groups with their actual members, virtual machine tags and rule counters.
- It reads blocked traffic from VCF Operations for Logs: who, to whom, which protocol, which port and which rule.
- 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.
The relationship map is the most useful part. It shows who a rule actually stopped, not just who it was written against.
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.