Services and Policies
A Service names a protocol and a port range, for example SSH for TCP 22. A
Policy says who may reach which destination on which services, and under
which conditions. Nothing is reachable until a policy grants it.
In short
Define the services an asset offers, then grant them with a policy: Sources (who), Destinations (what, on which services) and Conditions (under which circumstances). Access is denied by default. A policy only grants: access is the sum of all enabled policies that match.
Services
A Service is a named protocol and port range: SSH is TCP 22, a web server
may be TCP 443, a file server TCP 445. You define services under Definitions
Services in the Admin Console. Predefined services exist for common protocols; you can use but not edit them, and create your own.
A service is defined on the object that offers it. An Asset, Virtual Asset, Subnet or Machine Group lists the services it offers on its Access tab, and a policy grants one or more of them. To choose a service in a policy, define it on the object first, or add it from the policy form. An object without selected services has the predefined service All; an Exit Node always has it.
The services decide what a policy opens: a policy that grants SSH on a
server does not make its web server reachable.
Default deny and how policies combine
Every asset starts with a "Deny All" policy: a freshly created asset is not reachable by any client or other asset. There is no rule that denies; a policy can only grant. The access of a device is the sum of all enabled policies whose sources and conditions it meets. Disabled policies are not evaluated.
If two policies grant the same destination, the device gets both: the access of one policy does not take anything away from the other, and a more restrictive policy does not override a broader one. To restrict access, narrow or remove the policy that grants it.
Anatomy of a policy
A Policy is defined by its Sources, Conditions and Destinations. Policies can be disabled.
Sources
On the source side you can choose:
- One or more User Groups to permit access to all users in the chosen groups. The access follows the user: it applies only while the user is signed in on the Client. See User Groups and Machine Groups.
- One or more Assets to control machine to machine access.
- One or more Machine Groups to grant access to the machines in the group, independently of who is signed in on them. The built-in groups All Clients and Own Clients are destinations only.
- Virtual Assets, Subnets and Portals cannot be selected as sources.
Conditions
Conditions further restrict access. Even a Client belonging to a User Group in the Sources is denied access if the Conditions are not met.
The conditions are:
- Operating system: the system, and the lowest and highest permissible version. Further requirements depend on the system, such as disk encryption, antivirus and firewall status, or, on Windows, a device certificate issued by a certificate authority you trust.
- Location: the countries access is allowed from (Source Countries).
- Time: a recurring time (weekdays, from, to, time zone) or a specific date range.
- Site: the Site the client connects from. A Site is a location of your organisation known by its public IP addresses, such as headquarters or a branch office. The condition can be turned around, to apply to clients not connecting from the selected Sites.
The fields are listed in Policies.
How conditions combine
Access is granted only if every kind of condition the policy has is met (AND). Inside one kind, the entries are alternatives (OR): one is enough.
- A policy with two operating system conditions, one for Windows and one for macOS, accepts a device that meets either. A device whose system is in none of them is refused.
- A policy with an operating system condition and a country condition needs both: the device meets one of the operating system conditions and connects from one of the countries.
- Inside one operating system condition, all requirements must be met: the version range, disk encryption, the device certificate and so on.
- A kind of condition the policy does not have places no limit.
- A recurring time and a specific date range are two kinds: if the policy has both, both must be met.
Destinations
A Destination is an Asset, Virtual Asset, Subnet or Machine Group, combined with a service defined on that object. A Machine Group destination makes every machine in the group reachable, including Clients. The built-in groups All Clients and Own Clients can be combined with any service.
A Portal can be a Destination too. It needs no service: it means the listener of the gateway asset serving the portal, and it follows the portal when it is moved to another gateway asset. What a policy with a portal destination grants, per trust level of the applications, is in Policies of the Agentless Access guide.
Pre-authentication Access
Pre-authentication Access establishes tunnel connections prior to authentication. The policy matches all clients where the last logged on user belongs to one of the Groups in Sources. The tunnel is established before the user logs on to the operating system.
User-switchable access
A policy can let users turn its access on and off themselves in the client, for example to switch between two networks that use the same address range. The access of other policies is not affected, and an Initial state sets whether it starts on or off. Destinations with the same address range or DNS name exclude each other: turning one on turns the others off. The switch is on the Advanced tab; see Policies.
Requires approval
A policy marked Requires approval grants nothing by itself. Its Sources may request time-limited access to one of its Destinations, and a member of the policy's Approver group decides. See Just-in-Time Access.
See also
- Concept: Clients and Assets, User Groups and Machine Groups, Device Certificates, Just-in-Time Access
- Guides: Reach a Server, Remote Support for Laptops
- Reference: Policies, Definitions