Skip to main content

Assigning Tenants

Shared Gateways serve multiple tenants from a single device. Each tenant assignment creates an isolated networking environment on the gateway using VRF (Virtual Routing and Forwarding).

Assigning a Tenant

  1. Navigate to the Shared Gateway Detail page by clicking on an MTGE from the list.
  2. Select the Tenants tab.
  3. Click the Assign Tenant button (disabled if the gateway is at capacity).
  4. In the modal, configure the assignment:
FieldDescription
TenantSelect a tenant from the dropdown
ProtocolChoose WireGuard (default) or IKEv2 for the App VPN tunnel
Internet BreakoutEnable or disable direct internet access for the tenant
  1. Click Assign to confirm.
Protocol Selection

WireGuard is the default and provides high-performance tunneling. IKEv2 uses certificate-based authentication via StrongSwan and requires the MTGE to have a WAN IP configured (used as the certificate Common Name). Choose IKEv2 when clients need native OS VPN support (macOS, iOS, Windows).

What Happens on Assignment

When a tenant is assigned to a Shared Gateway, the following resources are automatically provisioned:

ResourceDetails
VRFAllocated with ID = 100 + slot number, providing complete routing table isolation
WireGuard PortsAllocated starting at base_port + (slot × 3), providing dedicated tunnel endpoints
IoT SubnetAssigned from 10.20.{slot}.0/24 range
App VPN SubnetWireGuard: 10.10.0.0/16 shared pool. IKEv2: 10.11.{slot}.0/24 per-tenant isolated pool
Configuration PushPer-tenant configuration is pushed to the MTGE via MQTT

The tenant's isolated environment is operational within seconds of assignment.

Viewing Assigned Tenants

The Tenants tab displays all currently assigned tenants in a table:

ColumnDescription
TenantTenant name
VRFThe VRF ID assigned to this tenant
SlotThe slot number (determines port and subnet allocation)
ProtocolWireGuard or IKEv2 badge
Tunnel ModeFull tunnel or split tunnel badge
PortsAllocated port numbers for IoT, Apps, and Peering tunnels
InternetWhether internet breakout is enabled or disabled
OnboardTenant onboarding status
ConfigConfiguration sync status
ActionsSettings (edit), Sync, Remove

Editing a Tenant Assignment

Click the Settings (gear) icon on a tenant row to open the tenant edit modal. You can modify:

SettingDescription
ProtocolSwitch between WireGuard and IKEv2. Switching protocols requires re-provisioning VPN client devices.
Tunnel ModeSwitch between full tunnel (all traffic through VPN) and split tunnel (only specified routes)
Internet BreakoutEnable or disable direct internet access for the tenant's traffic

Changes are saved and a configuration sync is triggered automatically.

Protocol Switch

Changing the App VPN protocol (e.g., from WireGuard to IKEv2) requires all VPN clients for this tenant to re-register. Existing client configurations will stop working after the switch.

Syncing Tenant Configuration

Click the Sync button on a tenant row to push the latest configuration for that specific tenant to the MTGE. This sends a per-tenant batch message via MQTT (VSR/{serial}/batch/{tenantId}).

Removing a Tenant

To remove a tenant from a Shared Gateway:

  1. On the Tenants tab, locate the tenant you want to remove.
  2. Click the Remove (trash) icon next to the tenant entry.
  3. Confirm the removal in the dialog.
warning

Removing a tenant immediately disconnects all devices belonging to that tenant on this Shared Gateway. All VRF routes, WireGuard instances, NAT rules, and StrongSwan configurations for the tenant are cleaned up. VPN client registrations associated with this tenant on this gateway are also removed. This action takes effect immediately.

Removal does not delete the tenant from the platform — it only removes their presence from this specific gateway. The tenant can be re-assigned to the same or a different Shared Gateway later.

WAN Configuration

The MTGE Overview tab shows the gateway's WAN configuration:

  • WAN IP — The static WAN IP address
  • WAN Gateway — The upstream gateway address

WAN IP is required for IKEv2 protocol support, as it is used as the Common Name in the device certificate. Configure the WAN IP when setting up the MTGE or via the Edit modal.