Segmentation Policies
A policy says which traffic between the parts of your network is intended. Nzyme checks every recorded TCP and UDP session against your policies and reports what does not fit as a finding.
Policies are managed on the Policies tab of the Segmentation page. They do not block anything. Nzyme observes your network and reports what it sees.
Scope and Allowed Crossings
A policy has two parts:
- The scope names the connections the policy is about, like all connections from the guest network to the servers.
- The allowed crossings list what is intended inside of the scope, like DNS to the internal resolver.
Every attempted or successful connection in scope that is not an allowed crossing is reported as a finding.
Take a network with a segment Guest for 10.20.0.0/16 and a segment Servers for 10.1.0.0/16, and this policy:
| Part | Value |
|---|---|
| Name | Guest cannot reach servers |
| Scope | Guest to Servers on any service |
| Allowed crossings | Anything in scope to 10.1.0.53 on 53/udp or 53/tcp |
The policy then judges recorded sessions like this:
| What happens | Result |
|---|---|
A guest device looks up a name at 10.1.0.53. |
Allowed. Nothing is reported. |
A guest device opens an SSH session to 10.1.4.20, and the server answers. |
A Crossed finding. |
A guest device tries 10.1.4.20 on 445/tcp, and a firewall rejects the connection. |
An Attempted finding. |
| A guest device opens a website on the Internet. | Not in scope. The policy ignores it. |
| A server opens a connection to a guest device. | Not in scope. The scope only names connections from Guest to Servers. |
A session is checked in three steps:
- If the session is not in scope, the policy ignores it.
- If it is in scope and an allowed crossing covers it, it is fine.
- Otherwise it is added to a finding. The finding is of the class Crossed if the destination answered, or if the session was sent to a broadcast or multicast address. It is of the class Attempted if the connection was rejected or got no reply.
Policies do not know of each other. There is no order and no default policy. Every policy is checked on its own, so the same connection can be allowed by one policy and be a finding of another. Traffic that is in scope of no policy is not judged at all. The overview shows it as No policy.
Two kinds of traffic are never judged, whatever the scope says:
- Traffic that never becomes a flow, like sessions between two external addresses. A policy from one external network to another cannot report anything.
- Rejected and unanswered connection attempts from a segment to one of its excluded destinations.
Sources, Destinations and Services
The scope and every allowed crossing are written the same way: as a list of sources, a list of destinations and a list of services.
- Several entries in one list are alternatives. Sources Guest and Lab match a session from either segment.
- All three lists have to match.
- An empty list means any: any source, any destination or any service. In a scope, any destination means any host. See Broadcast and Multicast.
Two rules keep a policy from covering more than you meant:
- The scope must name at least one source or one destination. A policy from anything to anything would judge the whole network.
- An allowed crossing must name at least one source, destination or service. To allow everything, use Allow Everything in Scope, which says so explicitly.
An allowed crossing only applies inside of the scope. An allowed crossing without sources means any source in scope, not any source at all.
Sources and Destinations
| Type | Matches |
|---|---|
| Segment | Every address of the selected segment or external network. |
| Tag | The internal addresses of every asset that carries the tag, like db-servers. |
| Internal | Every address in a segment, and every private address that is in no external network. |
| Internet | Every external address: every address in an external network, and every public address that is in no segment. |
| Unassigned | Internal addresses that are in no segment. |
| Broadcast or multicast | Every broadcast and multicast address. Only available as a destination. |
| Asset | One asset, with whatever internal addresses it has. Search for it by a complete IP or MAC address or by a part of its hostname, or paste its asset ID. |
| Address or CIDR | One address like 10.1.0.5, or a network in CIDR notation like 10.1.0.0/16. |
| Autonomous system | Every external address of the autonomous system with that number. |
| Country | Every external address that is located in the country, given as a two-letter code like DE. |
To select anything, leave the list empty. The form then shows Any source or Any destination. For the destinations of a scope it shows Any host, but not broadcast or multicast.
Some details matter when you choose a type:
- The type Internet is wider than the Internet group of the overview. The type covers every external address, including the ones in your external networks. The group only holds the external addresses that are in no external network.
- Tag and Asset go by the IP addresses that the asset claimed by ARP, so they follow an asset when its address changes. If several assets claimed an address, it counts for the asset that used it last. An asset that never sent ARP is not covered. Use a segment or an address for it.
- Autonomous system and Country only match external addresses. Tag and Asset only match internal ones.
Services
A service has up to three parts. Each part is optional, but a service must name at least one of them.
| Part | Values | If left out |
|---|---|---|
| Transport protocol | TCP or UDP. | Both. |
| Port | One destination port like 22, or a port range like 8000-8099. |
All ports. |
| Detected protocol | The protocol that the taps detected in the traffic, whatever the port: DERP, DHCP4, DNS, DTLS, HTTP, NTP, OpenVPN, RTP, RTSP, SOCKS, SSH, STUN, TLS, TURN, WebRTC or WireGuard. | Whatever was spoken. |
Services are written like this:
| Written as | Means |
|---|---|
22/tcp |
TCP port 22. |
8000-8099/tcp |
TCP ports 8000 to 8099. |
tcp (any port) |
All of TCP. |
SSH (any port) |
Sessions that were detected as SSH, on any port. |
22/tcp (SSH) |
Sessions on TCP port 22 that were detected as SSH. |
A service that names a detected protocol only matches sessions in which that protocol was detected. A session without a detected protocol is only matched by services that name no protocol.
Broadcast and Multicast
Hosts constantly send to broadcast and multicast addresses: mDNS, SSDP, NetBIOS, DHCP requests and more. A policy about who may reach which host should not judge every one of these announcements. Policies therefore treat such addresses differently:
- A scope without destinations means any host, but not broadcast or multicast. The form says so in the list of destinations.
- A scope only includes broadcast and multicast traffic if it names it: with the destination Broadcast or
multicast, or with an Address or CIDR destination that is itself such an address or a range of them, like
224.0.0.251or255.255.255.255. - Segment, Internal, Internet and the other types never match a broadcast or multicast address, because such an address is in no segment and is neither internal nor external.
- The broadcast address of a subnet, like
10.1.0.255, cannot be named by address in a scope. Without knowing the subnet, it cannot be told from the address of a host. Use Broadcast or multicast in the scope instead. An allowed crossing can name it by address. - Inside of a scope that includes this traffic, an allowed crossing without destinations covers it, and so does an allowed crossing for an address range that the address lies in.
- Broadcast or multicast can only be a destination.
Traffic to these addresses has the outcome Sent. It is delivered and cannot be rejected, so a session that is not allowed always ends up in a Crossed finding.
For example, a policy Servers never announce with the scope db-servers to Broadcast or multicast on any service and the allowed crossing Anything in scope to anything in scope on 67/udp reports every database server that sends mDNS or SSDP, and stays quiet about their DHCP requests.
Allow Everything in Scope
Allow Everything in Scope adds one allowed crossing that covers every connection in scope. It is listed as Everything in scope and can be removed, but not edited. Other allowed crossings are kept and count again once it is removed.
A policy with this allowed crossing never reports a finding. Its purpose is to say that the traffic in its scope is intended as a whole. The overview then shows the crossings in its scope as covered instead of as No policy.
For example, a policy Office may use the Internet with the scope Office to Internet on any service and Everything in scope allowed documents that decision and takes the crossing out of the Unjudged and findings view of the overview.
Status
| Status | Evaluated | Findings | Alerts |
|---|---|---|---|
| Active | Yes | Recorded. | Raised, if the policy asks for them. |
| Audit | Yes | Recorded and marked as audit findings. | Never. |
| Paused | No | No new findings. The findings the policy has are kept. When the policy is resumed, the sessions of the pause are judged. | Never. |
New policies start in Audit. This lets you see what a policy reports before it can raise alerts. Set it to Active once the findings are what you expect.
Alerts
A policy has two alert options. Both are off for a new policy.
| Option | Raises an alert when a connection in scope that is not allowed |
|---|---|
| Alert on accepted connections | was answered by its destination. |
| Alert on rejected or timed out connections | was rejected or got no reply. |
- With neither option checked, the policy raises no alerts. Findings are recorded either way.
- Alerts are only raised while the policy is Active.
- Traffic to a broadcast or multicast address is reported with the accepted connections. Such traffic is delivered and cannot be rejected.
See Alerts for the alerts themselves.
Stored Sessions
A policy does not only judge the sessions that are recorded after it was saved. Nzyme also reads the sessions again that were evaluated before and judges them against the policy. A new policy therefore shows what it has to report within minutes, not only when the traffic happens again.
| What you do | What is judged again |
|---|---|
| Create a policy that is Active or in Audit | The stored sessions from before the policy existed. |
| Change the scope, or remove or change an allowed crossing | The stored sessions. Only what the policy did not report before is added. |
| Set a paused policy to Active or Audit | The sessions that were recorded while the policy was paused. |
Nothing is judged again when you only add allowed crossings, change the name, the description or the alert options, or switch between Active and Audit. With the same scope and nothing taken off the allowed crossings, no session can turn into a finding. A policy that is created as Paused is not judged against stored sessions either.
- How far back. As far back as flows are stored and the sessions still exist. That is the shorter of the flow retention time and the retention time of TCP/UDP session data.
- No alerts. Findings from stored sessions are recorded like all others, but they never raise an alert, also for a policy that is Active. Alerts are for what happens from now on.
- It takes a moment. Judging starts right after you save and continues with every evaluation, which runs once a minute. A lot of stored sessions take several runs. Until it is done, a spinner is shown next to the state of the policy in the list, and the details page of the policy and the overview show a notice. Findings are still being added during that time and the state of the policy can change. The pages reload on their own.
- Some changes have to wait. While stored sessions are still being judged against a policy, its scope cannot be changed and allowed crossings cannot be removed or changed. Everything else can be saved, including new allowed crossings.
- Pausing ends it. If you pause a policy while stored sessions are still being judged against it, the judging ends. When that policy is resumed, stored sessions are only judged again if it has no findings yet. Disabling segmentation in the settings ends it for all policies.
Policy States
The list of policies and the details page of a policy show a State next to the status. The state says what the policy made of the traffic since the start of the selected time range, which is the last 24 hours unless you change it.
| State | Meaning |
|---|---|
| Holding | Taps recorded traffic of the sources and of the destinations of the scope, and there are no findings. |
| Crossed | There is at least one Crossed finding: a connection that the policy does not allow was answered, or was sent to a broadcast or multicast address. |
| Attempted | There is no Crossed finding, but at least one Attempted finding: a connection that the policy does not allow was rejected or got no reply. |
| Not observable | There are no findings, but no tap recorded traffic of both the sources and the destinations of the scope. That there are no findings does not mean that the policy holds. |
| Paused | The policy is paused. |
A policy in Audit has the state its findings give it, like an active policy. The status column next to the state says that it is in audit.
Not observable is an approximation. Nzyme checks whether the addresses of each side of the scope took part in recorded traffic at all. It cannot know whether a tap would see a connection between the two sides. A tap that sees a host talk to the Internet does not have to see it talk to its neighbor. See Positioning Taps for where taps need to be to see local traffic.
Creating a Policy
Click Create Policy on the Policies tab. You can also select a crossing in the overview and click Create policy for this crossing, which fills in the two groups as the scope.
| Field | Required | Notes |
|---|---|---|
| Name | Yes | Up to 64 characters. Say what is meant to hold, like Guest cannot reach servers. The name appears in findings and alerts, and findings are filtered by it, so give every policy a name of its own. |
| Description | No | Why the policy exists and who to ask about it. |
| Scope | Yes | Sources, destinations and services. At least one source or destination. |
| Allowed Crossings | No | Up to 250. Add them with Add Allowed Crossing, or with Allow in the observed traffic. Later, Allow on the target of a finding adds one as well. |
| Status | Yes | Audit, Active or Paused. See Status. |
| Alerts | No | The two alert options. |
Below the scope and below a new allowed crossing, the form repeats what you entered as a sentence, like Guest to Servers on any service. Read it before you save.
Templates
Use a Template on the Create Policy page offers common policies. A template asks for the one or two things that differ and fills in the scope, and the name if it is still empty. Nothing is saved until you create the policy, and everything can be changed before that.
| Template | You pick | Scope it fills in | Reports |
|---|---|---|---|
| Only accepts ... | Destinations | Anything to the destinations on any service | Every connection to the destinations, except for the ones you allow. Example: a group of servers. |
| Never accepts ... | Destinations and services | Anything to the destinations on the services | Every connection to the services on the destinations. Example: SSH on a group of servers. |
| Isolate a segment | A segment | The segment to Internal on any service | Every connection from the segment to an internal address. Example: a guest network. |
| Client isolation | A segment and, optionally, the address of its gateway | The segment to the same segment on any service | Every connection between two addresses of the segment. Example: a guest WiFi. |
| Restrict outbound | Sources | The sources to Internet on any service | Every connection from the sources to an external address, except for the ones you allow. Example: servers that have no reason to connect to the Internet. |
| Restrict inbound | Nothing | Internet to Internal on any service | Every connection from an external address to an internal address, except for the ones you allow. Example: a network that publishes only a few services. |
| Never announces ... | Sources | The sources to Broadcast or multicast on any service | Everything the sources send to a broadcast or multicast address, except for what you allow. Example: servers that have no reason to announce themselves over mDNS, LLMNR, NetBIOS or SSDP. |
What to keep in mind for each template:
- Only accepts and Never accepts. The source of a connection does not matter. If the destination is a segment or a tag, connections between its own addresses are reported as well.
- Isolate a segment. Internal addresses include the ones of the segment itself, like its gateway. List what the segment needs under Allowed Crossings. Connections to external addresses are not in scope.
- Client isolation. If you enter the address of the gateway, the template adds an allowed crossing for it, so that connections to the gateway are not reported.
- Restrict outbound. External addresses are all addresses outside of your network, including the ones of external networks that you defined.
- Restrict inbound. A tap inside of your network only records what your firewall let through. A finding means that a connection from outside reached an internal address. Connections that the firewall dropped before the tap are not reported. The direction of UDP conversations is inferred, so a reply that arrives after its conversation ended, for example of a VPN or a video call, can be reported as a connection from outside.
- Never announces. List what you allow, like DHCP on
67/udp.
A template leaves the allowed crossings to you. The only one it fills in is the gateway of Client isolation. After Use Template, list the connections you allow under Allowed Crossings. Never accepts usually needs none, because its scope already names the services that are not intended. If the form already holds a scope or allowed crossings, the template replaces them after asking.
Observed Traffic
The Observed Traffic card of the policy form shows what the taps recorded inside of the scope, and what the policy makes of it as it is defined at that moment. It is evaluated again whenever you change the scope, the allowed crossings or the time range of the card, which starts with the last 7 days. Nothing is saved by it.
Observed traffic is read from stored flows, so it also covers the time before the policy existed. This makes it the quickest way to write a policy: name the scope, look at what the network really does in it, and allow what is intended.
Four numbers sum up the sessions in scope:
| Number | Sessions in scope that |
|---|---|
| Allowed | an allowed crossing covers. |
| Crossed | are not allowed and were answered, or were sent to a broadcast or multicast address. |
| Attempted | are not allowed and were rejected or got no reply. |
| Cannot Be Judged | cannot be decided from stored flows. |
The table below has one row per source, destination, service and verdict. Sources and destinations are grouped the way you would allow them: by segment or external network, as Unassigned, by autonomous system or country, as Internet or as Broadcast. For internal sides and for Broadcast, the row also names the number of addresses behind it and a few of them.
| Verdict | Meaning |
|---|---|
| Allowed | An allowed crossing covers this traffic. |
| Not allowed | The traffic is in scope and no allowed crossing covers it. The policy reports such traffic as a finding. |
| Cannot be judged | Stored flows do not hold what the policy asks for. |
Cannot be judged appears because flows do not store everything one by one:
- Address or CIDR entries cannot be checked against external addresses, which are stored per network, or against destinations that were folded into Many addresses.
- Tag and Asset entries cannot be checked against folded destinations either.
- A service with a port cannot be checked against a flow that stands for many ports.
This only concerns observed traffic. When sessions are evaluated as they are recorded, the policy has every address and port and always decides.
Use the table to complete the policy. What you allow here is added to the form and saved with the policy:
- Allow on a row that is not allowed adds an allowed crossing for the source, the destination and the service of the row. The service is the transport protocol and the port of the row, or the transport protocol alone if the row stands for many ports.
- Allow All Observed adds an allowed crossing for every row that is not allowed, on all pages of the table and whatever it is filtered by. Check the list afterwards. What was observed is not necessarily what is intended. A policy with more than 250 allowed crossings cannot be saved.
- An allowed crossing that no recorded traffic of the time range needed is marked as Not used in the selected time range. It may not be needed anymore.
The details page of a policy has the same card for the saved policy, without Allow.
Observed traffic reads the 100,000 busiest flows and shows the 500 busiest rows, most recently seen first. A notice appears when there was more. If your access is limited to some taps, it only includes what those taps recorded.
Working With Policies
The Policies tab lists all policies with their state, status, scope, number of allowed crossings, alert options and the number of Crossed and Attempted findings since the start of the selected time range. The numbers link to the findings. The list can be filtered by name, description, status, alert options and number of findings.
Click the name of a policy to open its details page. It shows the definition, the state, the findings of the policy and its observed traffic. The buttons at the top change the status, open the form to edit the policy or delete it.
Actions on Several Policies
The Actions menu above the list applies an action to several policies at once: Activate, Set to audit, Pause, turning each of the two alert options on or off, and Delete. A dialog asks what to apply the action to:
- The policies you checked in the list.
- All policies that match the current filters, on every page. This choice is offered when the list is filtered.
- All policies.
Nothing but the checked rows is ever preselected. The lists of findings, segments and asset tags have the same menu for their own actions.
Changing and Deleting Policies
- A new or changed policy applies to new sessions from the next evaluation on, which runs once a minute.
- A new policy, and a change that makes a policy forbid more, also goes back in time: the sessions that were evaluated before are judged against the policy as well. See Stored Sessions. Use the observed traffic to see what a policy would report before you save it.
- When you change the scope or the allowed crossings, Nzyme checks the existing findings of the policy against the new definition right away. Targets that are now allowed or out of scope are removed from the findings, and findings that are left without targets are removed.
- Pausing a policy stops its evaluation and keeps its findings. When it is resumed, the sessions that were recorded during the pause are judged.
- Deleting a policy deletes all of its findings as well. This cannot be undone.
- A segment or an asset tag that a policy refers to cannot be deleted. Remove it from the policy first. A policy also holds on to what its previous definition named for as long as that definition is still needed: while stored sessions are being judged against the policy, and while the policy is paused.
Required Permissions
All users can view policies and their observed traffic. Super administrators, organization administrators and users with the Manage Ethernet Monitoring permission can create, change and delete them. See Required Permissions for all parts of segmentation.