Start open, then narrow down (learning mode)
Moving a network to Zero Trust often stops at one question: who needs what? This guide answers it from the traffic. You first give a group access to a whole subnet, let the gateway asset record what is actually used, and after a while turn what you saw into precise policies with the Subnet Policy Assistant: one Virtual Asset per device, only the services that were used, only for the groups that need them. Then you remove the broad access.
"Learning mode" is not a switch in the product; it is this way of working, built from Access Tracking, Access Insights and the Policy Assistant.
In short
Grant a user group a Subnet with the All service, turn on Access Tracking on its gateway asset, let people work for a while, then open the Subnet's Policy Assistant and create a Virtual Asset and a policy for each destination that was used. Finally take the Subnet out of the broad policy and turn tracking off.
Before you start
- A gateway asset on Linux or Windows in the network. Access tracking only reports on these two: on macOS the switch has no effect. See Gateway Assets.
- A user group for the people who use the network today. Groups are imported in the policy form; see Import user groups.
- Administrator rights in the Admin Console.
- Plan the learning period. It should cover the work that happens only now and then: a month-end, a backup window, a maintenance job. What was not used during the period will not be suggested.
1. Give access to the whole subnet
- Create the Subnet on the gateway asset as in Reach an office network, for example
10.10.1.0/24. - On the Access tab, leave Services empty: the predefined All service applies, so every port of every address in the subnet is reachable.
- Create a policy, for example Office network (learning), with the user group as source and the Subnet as destination. See Create a policy.
This is deliberately broad, and only for the learning period. If the network holds systems that nobody should reach during that time, keep them out with Subnet Exceptions or leave them out of the range.
2. Turn on access tracking
- Open Assets, select the gateway asset and choose Edit.
- On the General tab, turn on Access Tracking and choose Apply.
For several gateway assets at once, select them in the list and use the mass action Update Access Tracking; see Mass actions. The Tracking column of the Assets list shows the radar symbol highlighted while tracking is on.
From now on the gateway asset reports, every few minutes, which source reached which address, protocol and port in its networks. For each combination it keeps the first and the last access and how often it happened, added up over the whole time. The gateway's firewall logs every new connection while tracking is on; that is why it is off by default and meant for a limited time.
3. Let people work
Let the group use the network as usual. In the meantime, Access Insights shows what is collected: open the Subnet's detail panel and choose Access Insights, or open Insights → Access Insights and filter with gw:<gateway asset>. Each row is one source, destination and service, with Last Access. See Access Insights.
Look through it once in a while: an address that many people reach on an unexpected port is worth a question before it becomes a policy.
4. Turn the traffic into precise policies
When the learning period is over, open Assets, select the Subnet and choose the Policy Assistant icon in its detail panel. The Subnet Policy Assistant lists the destination IPs that were reached in the subnet. Once you pick one, the further steps appear below it, as in the picture.
For each destination you want to keep, go through the numbered steps of the assistant:
- Select destination IP: choose the address. Filter... narrows a long list. Change picks another one.
- Create virtual asset: enter the Virtual Asset Name. It becomes the device's DNS name; the selected address becomes its static IP.
- Services for ...: tick the services the device offers. Ports that were seen in the traffic but have no service definition yet are offered as new definitions and are created when you apply.
- Select policy action: Create new makes a new policy, Add to existing extends policies you already have.
- With Create new: Name the policy. One policy per purpose ("Accounting: file server", "IT: switches") keeps the groups small. With Add to existing: Select existing policies, and for each the services it grants on the new Virtual Asset.
- With Create new: Select user groups, the groups that get access.
Then choose Apply, check the summary of what will be created, and confirm.
Repeat for the next address. In the Topology Explorer the same suggestions appear as cards under SUGGESTIONS when you click the radar icon on the Subnet; the plus on a card opens the assistant for it. See Topology Explorer.
Each field of the assistant is described in Subnet Policy Assistant.
5. Remove the broad access
Once every destination that is needed has its own Virtual Asset and policy, take the broad access away:
- Open the learning policy (Office network (learning)) and remove the Subnet from its destinations, or disable or delete the policy. Policies only grant access; as long as the broad one exists, everyone in its group still reaches the whole subnet.
- Keep the Subnet itself if you still want to name hosts or reach the rest of the network for some group; otherwise delete it.
- Turn Access Tracking off again on the gateway asset, or leave it on to keep watching (see Next).
Verify
- As a member of a narrowed group, connect with the app. Its list shows the new Virtual Assets instead of the Subnet. See Home.
- Reach a device with its new DNS name on a granted service.
- Try a device or a port that was not granted: the connection fails.
- In the Admin Console, the Access Diagnostic checks a client against a destination: the new Virtual Asset is granted by its policy, the Subnet no longer by the learning policy.
If it doesn't work
- The assistant lists no addresses. Access Tracking is off on the gateway asset, the gateway asset runs macOS, or nobody reached the subnet through the gateway yet. Check the Tracking column in Assets and look at Access Insights filtered to the gateway.
- A device people use is missing from the list. It was not used during the learning period, or the users reached it directly from inside the office network: a client that has an address in the subnet's range uses its local interface, not the gateway, and nothing is recorded. See Check the overlap. Add it by hand as a Virtual Asset.
- After step 5 someone lost access they need. Look the destination up in Access Insights, then create a Virtual Asset and a policy for it with the assistant or by hand. Turn tracking off only once nobody misses anything.
- The name of the new Virtual Asset is refused. A Virtual Asset with that name exists already; names must be unique.
Next
- Replace your VPN
- Add conditions to the new policies: operating system, device certificate, time window, see Conditions and Allow only compliant Windows devices.
- Keep tracking on for a while after narrowing: new rows in Access Insights for a destination nobody should reach any more point to a policy that is still too broad.
- For servers with the agent, the Asset Policy Assistant does the same from the asset's own tracking data.
- Temporary access instead of standing access: Give a contractor temporary access.
See also
- Concept: Gateway Assets, Services and Policies
- Guide: Reach an office network, Reach a printer, NAS or camera
- Reference: Subnets, Access Insights, Assets