--- title: "Cloud Local Gateway (LGW)" description: "Enterprise Bring-Your-Own-Carrier (BYOC) Cloud Local Gateway peering over SIP-TLS 1.2+ and SDES SRTP with regional CIDR ACLs and a 6-check compliance prober." --- ## 🎯 User Roles & Key Capabilities | Role | Primary Use Case | Key Capabilities | | :--- | :--- | :--- | | **SBC Administrator** | Provisioning encrypted Cloud Local Gateway trunks. | Bind public SBC FQDNs, assign TLS 1.2+ X.509 certificate profiles, enforce SDES SRTP (`RTP/SAVP`), and sync regional CIDR allowlists across HA nodes. | | **Enterprise Voice Architect** | Connecting cloud UCaaS tenants with local PSTN/PBX infrastructure. | Route enterprise DIDs between cloud UCaaS hubs, Ring2All PBX clusters, and Class 4 PSTN carriers with strict `+E.164` caller ID normalization. | | **NOC Interconnect Engineer** | Pre-flight readiness testing & trunk health assurance. | Execute the built-in 6-check LGW Compliance Prober to verify TLS, DNS resolution, CIDR ACLs, SRTP policy, SIP `OPTIONS` keepalive, and SIP Core routing sync. | --- ## Table of Contents 1. [Overview & Peering Architecture](#1-overview--peering-architecture) 2. [Visual Interface & Standardized Controls](#2-visual-interface--standardized-controls) 3. [Field & Configuration Reference](#3-field--configuration-reference) 4. [6-Check LGW Compliance Prober](#4-6-check-lgw-compliance-prober) 5. [Operational Workflow](#5-operational-workflow) 6. [Security & RBAC Considerations](#6-security--rbac-considerations) --- ## 1. Overview & Peering Architecture The **Cloud Local Gateway (LGW)** module (`Routing → SIP Domains → Cloud Local Gateway`) enables **Ring2All SBC** to operate as a carrier-grade enterprise Local Gateway connecting cloud UCaaS calling platforms with local **Ring2All PBX** clusters and wholesale PSTN carriers. Ring2All SBC terminates **SIP over TLS 1.2+ (port 5061)** signaling from authorized regional cloud CIDR subnets (`Americas`, `EMEA`, `APJC`), anchors encrypted **SDES SRTP (`RTP/SAVP`)** media through the Media Engine, enforces strict `+E.164` `P-Asserted-Identity` formatting, answers periodic `SIP OPTIONS` health probes with `200 OK`, and automatically registers the SBC public FQDN as a managed SIP Domain. ```mermaid flowchart LR Cloud["Cloud UCaaS Calling Hub
(SIP-TLS 5061 + SDES SRTP)"] SBC["Ring2All SBC Local Gateway
(TLS 1.2+ / ACL Grp 22 / Media Engine)"] PBX["Ring2All PBX Cluster
(Internal Dispatcher Set)"] PSTN["Wholesale PSTN Carriers
(Class 4 LCR & STIR/SHAKEN)"] Cloud <-->|SIP-TLS + RTP/SAVP| SBC SBC <-->|SIP + RTP/SRTP| PBX SBC <-->|SIP + STIR/SHAKEN| PSTN ``` --- ## 2. Visual Interface & Standardized Controls ### 2.1 Local Gateway Trunks List (Tab 1) Displays all provisioned Local Gateway trunks with SBC FQDN, signaling region, cloud outbound proxy, TLS port, encryption mode, active status, and top-bar **Sync SIP Core** and **+ Add Trunk** controls. ![Cloud Local Gateway Trunks List](/screenshots/sbc/routing/local-gateway/local-gateway-list.png) ### 2.2 Trusted Cloud CIDRs Allowlist (Tab 2) Uses Ring2All's standardized card-row layout (matching **Endpoints → Servers**): each authorized IPv4 CIDR block is presented as a bordered card with `#index` and live `SYNCED` / `PENDING` badges, labeled monospace fields, inline delete controls, a header-aligned **Sync SIP Core** trigger, and a full-width dashed **+ Add CIDR** button that opens an interactive `NEW` entry card with region dropdown selection. ![Cloud Local Gateway Trusted Cloud CIDRs](/screenshots/sbc/routing/local-gateway/local-gateway-cidrs.png) ### 2.3 Local Gateway Trunk Form (Level 2) Organizes trunk provisioning across clean text-only tabs (**Peering & Signaling**, **Trusted Cloud CIDRs**, and **LGW Compliance Prober** in edit mode) with live TLS Certificate CN-to-FQDN match indicators. ![New Cloud Local Gateway Trunk Form](/screenshots/sbc/routing/local-gateway/local-gateway-form.png) --- ## 3. Field & Configuration Reference ### Box 1: Cloud Local Gateway Identity | Field | Type | Description | Default | | :--- | :--- | :--- | :--- | | **Trunk Name \*** | Text | Descriptive name matching the Local Gateway trunk configured in your cloud UCaaS call routing portal. | *Required* | | **Cloud Organization ID** | Text | Optional cloud UCaaS organization identifier recorded for administrative traceability and multi-org audit trails. | *Optional* | | **Cloud Signaling Region** | Select | Primary geographic cloud signaling region (`Americas`, `EMEA`, `APJC`). | `Americas` | | **Inbound PBX Endpoint** | Select | PBX Dispatcher Set that receives inbound PSTN/UCaaS calls arriving over this Local Gateway trunk. | *Optional* | | **Enabled** | Toggle | Activates (`Active`) or suspends (`Inactive`) TLS signaling and routing generation for this trunk. | `Enabled` | ### Box 2: SIP/TLS & SRTP Signaling Configuration | Field | Type | Description | Default | | :--- | :--- | :--- | :--- | | **SBC Public FQDN \*** | FQDN | Publicly resolvable DNS FQDN of this SBC matching your TLS X.509 certificate CN/SAN. Automatically registered in **SIP Domains** on save. | *Required* | | **Cloud Outbound Proxy FQDN \*** | FQDN | Regional cloud UCaaS outbound SIP signaling proxy FQDN assigned to this trunk. | *Required* | | **Line / Port Tag** | Text | Optional trunk disambiguation identifier stamped on outbound Local Gateway signaling headers. | *Optional* | | **TLS Profile (TLS 1.2+)** | Select | TLS certificate profile used for the TLS 1.2+ handshake. Displays an immediate visual badge verifying whether the certificate CN matches the SBC Public FQDN. | Default Server Profile | | **SIP TLS Port** | Number | Listening and peering TLS port (`1`–`65535`). | `5061` | | **Media Encryption** | Select | `SRTP — RTP/SAVP (Recommended)` for production SDES SRTP or `RTP — Unencrypted (Lab Only)`. | `SRTP` | | **Enforce PAI E.164 (+CC)** | Toggle | Normalizes outbound `P-Asserted-Identity` headers to strict `+E.164` caller ID format. | `Enabled` | | **SIP OPTIONS Keepalive** | Toggle | Responds `200 OK` with `Allow` capabilities to periodic cloud SIP `OPTIONS` health probes. | `Enabled` | | **Dispatcher Failover** | Toggle | Enables automatic failover across PBX cluster nodes when routing inbound Local Gateway calls. | `Enabled` | ### Tab 2: Cloud Signaling & Media CIDR Allowlist | Field | Type | Description | Default | | :--- | :--- | :--- | :--- | | **Address Group #** | Number | SIP Core permissions address group dedicated to Local Gateway source IP verification. | `22` | | **CIDR Block \*** | IPv4 CIDR | Authorized cloud signaling or media subnet (e.g., `203.0.113.0/24`). | Pre-seeded regional blocks | | **Description** | Text | Operational description for the authorized subnet. | Regional description | | **Region** | Select | Geographic region (`Americas`, `EMEA`, `APJC`, `Global`). | `Americas` | --- ## 4. 6-Check LGW Compliance Prober In edit mode (or from the **LGW Compliance Prober** tab on the main page), administrators can run an automated 6-check verification suite bounded to `<= 2500ms` per probe: | # | Check | What Is Verified | | :---: | :--- | :--- | | **1** | **TLS Profile & Certificate** | Confirms SIP Core TLS is loaded, enforces `>= TLSv1.2` (rejecting SSLv3/TLS 1.0/1.1), and verifies the assigned TLS profile exists. | | **2** | **FQDN Format & DNS Resolution** | Validates RFC-1035/1123 syntax for both SBC FQDN and Outbound Proxy and executes a bounded DNS resolution check. | | **3** | **Cloud IP ACL Group** | Verifies that authorized CIDR blocks are actively synced in SIP Core address group `22`. | | **4** | **SRTP Media Encryption Policy** | Confirms mandatory SDES SRTP (`RTP/SAVP`) media encryption is enforced. | | **5** | **SIP OPTIONS Keepalive** | Confirms the `200 OK + Allow` keepalive responder is enabled so the cloud peer never marks the trunk out-of-service. | | **6** | **SIP Core Routing Config Synced** | Verifies active Local Gateway routing drop-in rules match the configured SBC FQDN. | --- ## 5. Operational Workflow 1. Navigate to **Routing → SIP Domains → Cloud Local Gateway** and click **+ Add Trunk**. 2. Enter the **Trunk Name**, select the **Cloud Signaling Region**, specify your **SBC Public FQDN** and **Cloud Outbound Proxy FQDN**, and bind your commercial **TLS Profile** (confirming the green CN match indicator). 3. Save the trunk. Ring2All SBC automatically registers the FQDN in **SIP Domains** and generates the SIP Core routing drop-in. 4. Open the **Trusted Cloud CIDRs** tab, review or add regional CIDR blocks via **+ Add CIDR**, and click **Sync SIP Core** to push permissions across all cluster nodes. 5. Open **LGW Compliance Prober** and click **Run 6-Check Probe** to verify all 6 checks report **PASS** before activating live traffic. --- ## 6. Security & RBAC Considerations - **Strict Source IP + TLS Enforcement**: Inbound signaling is accepted exclusively from verified IPv4 CIDRs in address group `22` over TLS 1.2+. Unauthorized packets are rejected with `403 Forbidden`. - **Self-Loop Protection**: The API strictly rejects configurations where the Outbound Proxy FQDN matches the SBC Public FQDN. - **RBAC Protection**: Viewing Local Gateway trunks requires `READ` access on routing; creating, editing, deleting, or syncing SIP Core requires `WRITE` privileges.