Skip to main content

Introduction

A Private Wireless Gateway (PGW) routes traffic between a group of Telnyx SIMs and the rest of its Network. Refer to this guide for more information on PGW.

Creating a PGW

Step 1: Create a Network

Follow this guide.

Step 2: Check for Coverage

Follow this guide. Use filter[available_services][contains]=private_wireless_gateway to look for a desired site at which to create the PGW. Private Wireless Gateways are available in multiple regions including Washington DC (dc2), Frankfurt (fr5), and Sydney (sy1).

Step 3: Create a PGW

Once a PGW is created on a specific network, it cannot be “migrated” to another one; it needs to be recreated on the other network. Double check the correct network_id is used in the following API request.
It’s not yet ready to be used immediately after the creation since its status is provisioning.

Step 4: Wait for Status Transition

The expected time for status.value to transition to provisioned is approximately 15 minutes. You can poll the PGW to check for status.

Step 5: Attach a SIM Group

The PGW is of little use when there is no SIMs are attached to it. Individual SIM must be added to a SIM group which then can be attached to the PGW. This is easily accomplished on the Mission Control Portal. PGW will show the SIM group after a successful attachment.

Use Cases

In the following examples, abbreviations are consistently used for brevity.
  • PGW = Private Wireless Gateway
  • VXC = Virtual Cross Connect

Use Case 1: PGW + WireGuard Interface

We will construct this architecture which is useful when
  1. Traffic to and from SIMs needs to be segmented and private, and
  2. They do not need high bandwidth connection back to the user’s internal services.
PGW + WireGuard Interface Architecture In the following example
  • The connected device is an iPhone.
  • It only has access to the peers attached to the WireGuard Interface; there exists no default route for them.
  • Internal Service Peer is a Droplet on DigitalOcean that runs an toy Apache web server.
  • Admin Peer is a local host.
Detailed WireGuard Interface and Peer setup guide can be found here. On both peers, ensure that both the WireGuard Interface subnet and the PGW subnet are on the AllowedIPs of the [Peer] config.
From the internal service peer, we can see there is a route to the iPhone.
From the iPhone, it has access to the internal service peer. Connection to Apache

Costs

  • The monthly recurring cost (MRC) for each PGW is $100.
  • Additional costs on SIM and data are applicable as well. Consult this guide for more detail.

API References