Skip to main content
Version: 1.19.0 (latest)

Gateway-based Egress Overview

Gateway-based providers route workspace traffic through selectable egress gateways.

Supported providers in this model:

The following is an example of the new Egress Selection menu presented when a User launches a Workspace:

Egress Launch Selection
Egress Launch Selection

Gateway Selection Behavior

Egress Providers and Egress Credentials can be applied to users, groups, and workspaces.

When users launch a workspace, they are presented with available gateways.

Gateways are shown only when:

  • The gateway is enabled.
  • A credential exists for the same provider mapped to the selected workspace, user, or one of the user's groups.

A credential can be paired with a gateway even if they are mapped to different resources. For instance the User "user@kasm.local" can use a Gateway attached to "All Users" group with a credential attached to "user@kasm.local".

The first matching, enabled credential in a list credentials sorted by their egress_credential_id will be automatically selected to be used when a user specifies an Egress Gateway when launching a Workspace. Manually specifying an Egress Credential on Workspace launch is not currently supported.

If a Credential has Limit Active Connections enabled and the number of concurrent connections using that credential has reached the limit it will not be available to be used on a new Egress credential until a Kasm Session using the credential have ended.

Configuration Workflow

In this example we will be configuring an OpenVPN provider, but Wireguard is also supported.

Create Provider and Gateways

  • Log into the Kasm Web UI as an administrator
  • Click Infrastructure -> Egress
  • Click Add
Egress Provider Form
Egress Provider Form
NameDescription
EnabledEnable or disable this configuration
NameThe Unique Name for the Egress Provider
Egress Provider TypeThe type of Egress Provider Configuration
Enable New Managed Gateways(Managed Egress Provider Only) When enabled any new Egress Gateways sent by the Egress Plugin Service will be automatically enabled.
  • Fill out the form and click Save
  • A list of all Egress Providers is shown.
Egress Provider List
Egress Provider List
  • Click the arrow menu on the OpenVPN Provider and Select Edit
  • Select the Egress Gateway tab and click Add
Egress Gateway Form
Egress Gateway Form
NameDescription
EnabledEnable or Disable this configuration.
NameThe Unique Name for the Egress Gateway
CountryThe Country for the Egress Gateway
CityThe City for the Egress Gateway
ConfigThe Egress Gateway Config (OpenVPN, Wireguard or Custom)
Note

For Wireguard Configurations the PrivateKey value in Config is set by the Egress Credential.

Assigning Provider and Credentials

Provider Assignments and Credential creation can be done on Users, Groups and Workspaces. In this example we will be performing an Assignment on the User user@kasm.local.

  • Log in to the Kasm Web UI as Administrator
  • Click Access Management -> Users
  • Click the arrow menu on user@kasm.local and select Edit.
  • Click on the Egress tab and select Add
Egress Provider Mapping Form
Egress Provider Mapping Form
NameDescription
EnabledEnable or Disable this configuration.
Egress ProviderThe name of the Egress Provider to Map.
Allow All GatewaysWhen Enabled, all Egress Gateways in the selected Provider will be mapped. Disabling requires that the Admin specify which gateways to map in the Selected Gateways field.
Selected GatewaysWhen Allow All Gateways is enabled this setting sets the gateways that apply to this mapping.
  • Fill out the form and click Save
  • Click on the Egress Credential tab.
Egress Credentials Form
Egress Credentials Form
NameDescription
EnabledEnable or Disable this configuration.
Egress ProviderThe name of the Egress Provider for this Credential.
NameThe name of this Egress Credential.
UsernameThe Username for the Egress Credential (OpenVPN Provider)
PasswordThe Password for the Egress Credential (OpenVPN Provider)
Private KeyThe Wireguard Private Key for the Egress Credential (Wireguard Provider)
Custom CredentialThe Custom Credential for the Egress Credential (Custom Provider)
Allow All GatewaysWhen Enabled, the Credential will apply to all Egress Gateways in the selected Provider. Disabling requires that the Admin specify which gateways to map in the Selected Gateways setting.
Selected GatewaysWhen Allow All Gateways is enabled, this sets the gateways that this Credential can be used with.
Limit Active ConnectionsWhen Enabled, the number of concurrent connections that this Egress Credential can be used in is limited to the setting in Active Connection Limit.
Active Connection LimitWhen Limit Active Connections is enabled, this value sets the maximum number concurrent connections the credential can be used in.

Now that the Egress Provider and Credential are assigned to this user, they may select the Egress Gateway when launching a Container Workspace.