KORTHVEILSecurity firewall
Guides

Policy routes by user and application

Download as PDF All guides

Send an application, or a group of users, over another line: for example Zoom and Teams via the second internet line, or the Finance group via the office VPN. A policy route can match the applications App-ID knows and the user groups the Identity add-in knows, next to zones, addresses and services. This works for IPv4 and IPv6.

At a glance:

Step Where What
1 Security › Content & app filtering › Application control App-ID on, the applications under Address sets for policy
2 Identity › User identity The Identity add-in on, the groups under Policy groups
3 Network › Routing & WAN › Policy routing › Policy routes A route with Applications or User groups
4 Review and commit Commit; move running connections with Clear connections
5 Firewall › Policy lookup, Monitoring › Traffic log › Traffic verification Check which route a connection takes, and why

How the firewall knows the application and the user

  • Applications. App-ID learns each application's servers from the DNS answers your devices get and from the names in encrypted connections (TLS and QUIC). It keeps them in an address set per application, for IPv4 and IPv6. A route by application matches connections to those servers.
  • Users. The Identity add-in knows who is signed in on which device (directory sign-ins, RADIUS accounting, syslog, portal sign-ins). It keeps an address set per policy group. A route by user group matches connections from those devices.

The first packets of a connection

The firewall chooses the way out of each new connection at its first packet, and the connection keeps that way until it ends:

  • The server is already known (the normal case: the device asked DNS first, and App-ID learned the address from the answer). The connection takes the route from its first packet.
  • The server is not known yet (the very first connection to a server App-ID has never seen, or an address typed in directly). The connection goes the normal way, or by the next route that matches, and stays there. The next connection to that server takes the route.
  • A member signs in while a connection runs. That connection stays where it is. New connections from the device take the route.
  • A server leaves the set while a connection runs. That connection stays on its route.

A connection never changes line in the middle: another line has another public address, and the connection would break. To move running connections at once (a call that was already going), press Clear connections (the eraser) on the route. The devices reconnect on the new path.

Step 1: The applications (App-ID)

Security › Content & app filtering › Application control: turn the add-in on. Under Address sets for policy, the applications that have a set are listed (for example zoom, ms-teams). You don't have to add them here first: the policy route editor adds an application that has no set yet when you save the route.

Step 2: The user groups (Identity)

Identity › User identity: turn the add-in on, connect it to your directory, and list the groups under Policy groups (one per line, for example Finance). Each group gets an address set of its members' devices. The policy route editor adds a group that is not listed yet when you save.

Step 3: The policy route

Network › Routing & WAN › Policy routing › Policy routes › Add policy route.

Zoom and Teams via the second internet line:

  1. Name: Zoom and Teams via WAN2.
  2. Action: Send via a gateway. Send via: Gateways, 198.51.100.1 (the second line's gateway; add its IPv6 gateway too, for example 2001:db8:2::1, or IPv6 calls take the normal line).
  3. From zones: LAN.
  4. Applications: zoom, ms-teams.
  5. Save to pending changes.
The policy route Zoom and Teams via WAN2: gateways 198.51.100.1 and 2001:db8:2::1, from LAN, applications Zoom and Microsoft Teams
The policy route Zoom and Teams via WAN2: gateways 198.51.100.1 and 2001:db8:2::1, from LAN, applications Zoom and Microsoft Teams

The Finance group via the office VPN:

  1. Name: Finance via office VPN.
  2. Action: Send via a gateway. Send via: A gateway group, OFFICE_VPN (the office tunnel, with the kill switch if Finance must never use the normal line).
  3. User groups: Finance.
  4. Save to pending changes.
The policy route Finance via office VPN: gateway group OFFICE_VPN, user group Finance
The policy route Finance via office VPN: gateway group OFFICE_VPN, user group Finance

Both lists can be combined with the other fields. Several applications (or groups) in one route are alternatives: any one of them matches. A route with both User groups and Applications needs both: for example, only Finance's Teams calls.

Routes are checked top to bottom and the first match decides. Put a route by application above a broader route that would take the same traffic, such as "all LAN traffic via the VPN".

The policy routes: the application and user group routes first, with app and users chips
The policy routes: the application and user group routes first, with app and users chips

Check the spelling: the editor adds a name the add-in doesn't have yet to its list. A configuration sent through the API or the command line with an unknown name is refused instead, with a suggestion, for example App-ID does not keep an address set for "zom" and Did you mean: zoom.

Step 4: Commit, and the running connections

Review and commit. With Clear old connections the change affects ticked (the default), the commit ends the running connections the new route would now take (they started before the route), so they reconnect on the new line. Without it, they move when they end, or when you press Clear connections on the route.

Step 5: Check it

Firewall › Policy lookup: enter a device, a server address and the port. The steps say which set decided the route:

  • Policy route "Zoom and Teams via WAN2" is decided from the add-ins' sets: 198.51.100.77 is a server App-ID learned for zoom, ms-teams.
  • … is not a server App-ID has learned for zoom, ms-teams (yet). The next route that matches is shown.
  • … not decided here. The lookup has no access to the sets (the add-in is off or not running). The next route that matches is shown.
Policy lookup: 198.51.100.77 is not a server App-ID has learned for zoom or ms-teams yet, and nobody of Finance is signed in at 192.168.50.20, so the connection takes the normal line
Policy lookup: 198.51.100.77 is not a server App-ID has learned for zoom or ms-teams yet, and nobody of Finance is signed in at 192.168.50.20, so the connection takes the normal line

Monitoring › Traffic log › Traffic verification shows each live connection's path. A connection that started before the route knew its application or user is marked wrong path, with the reason it started before policy route … knew its user or application. Clear mismatching moves it.

Good to know

  • Routes by users or applications are limited to 255. Each one marks the connections it decides, so they keep their way.
  • Moving such routes up or down changes which route holds which mark. After you reorder them, press Clear connections to put running connections on the new order.
  • SD-WAN's own policies steer by zone, address and service. To steer by application, use these policy routes with a gateway group.

Download as PDF All guides