VPG Type-F2 Configuration

Creating a VPG Type-F2

Creating a VPG will incur fees. Once created, it will be billed according to its runtime, regardless of actual usage. Billing will continue until the VPG is terminated. Refer to the Pricing & Fee Schedule for more information.

  1. Login to the User Console. From the Menu, open the VPG screen.

  2. Click the Create VPG button.

    https://console.soracom.io

    Create VPG

  3. Enter a name and configuration settings for the VPG.

    Create VPG

    • Name (required) - Any name used to identify this VPG.
    • Select VPG Type (required) - Select Type-F2.
    • Internet Gateway (required) - Enables or disables internet access for Air and Arc devices connected to this VPG.
    • Rendezvous Point (required) - The region where the VPG will be located.
    • CIDR Range for device subnet (optional) - The CIDR block of IP addresses assigned to Air and Arc devices that connect to this VPG. If left blank, a default block of 10.128.0.0/9 will be used. Manually specified Device Subnets must be within the 10.0.0.0/8, 172.16.0.0/12, or 192.168.0.0/16 CIDR ranges and have a subnet mask of /24 or larger.
    • ASN (optional) - The Autonomous System Number to use for the VPG.

    Once created, the Internet Gateway, Rendezvous Point, CIDR Range, and ASN settings cannot be changed.

    Then click Create.

Once you click the Create button, the VPG will appear in the list of VPGs. Its status will show Creating while it is being configured, a process that will typically take 3–5 minutes. Once the VPG is ready, its status will change to Running.


Configuring VPG Settings

To configure your VPG:

  1. From the list of VPGs, click the name of the VPG you want to configure to open its settings page.

    https://console.soracom.io

    Configure VPG

From here, you will see the overview of VPG details along with individual settings tabs below.


Overview

https://console.soracom.io

Configure VPG


Basic Settings

Configure VPG

Groups

The Groups panel shows which Soracom Air and Soracom Arc device groups are configured to connect using this VPG. You can view which groups are attached to the VPG and manage them from this panel.

You can also attach a group to a VPG from the group's settings page. Refer to the Group Settings documentation.

Tag settings

The Tag Settings panel lets you add optional tags to the VPG, such as to describe its role, owner, project, or other values.


Routing Table

Configure VPG

The Routing Table panel lets you add and manage static routes between the Transit Gateway in the VPG and remote networks. When configured, packets with a destination address in a particular CIDR block will be routed to the selected gateway. To create a static route, you need the following parameters.


Closed Network

Configure VPG

Transit Gateway VPC attachment connections

The AWS Transit Gateway VPC Attachment Connections panel lets you add and manage connections between the Transit Gateway in the VPG and your Amazon VPC. For more information, refer to the Soracom Canal: Transit Gateway VPC Attachment Configuration documentation.

Transit Gateway peering connections

The Transit Gateway Peering Connections panel lets you add and manage connections between the Transit Gateway in the VPG and your own AWS Transit Gateway. For more information, refer to the Soracom Canal: Transit Gateway Peering Configuration documentation.

VPN Connection

The VPN Connection panel lets you view VPN connection details between the VPG and your VPN environment. For more information, refer to the Soracom Door documentation.

Direct Connection

The Direct Connection panel lets you view Transit VIF connection details between the VPG and your direct connected network environment. For more information, refer to the Soracom Direct documentation.


Device LAN

Configure VPG

SORACOM Gate

In Type-F2 VPGs, Gate will allow devices within the VPG to communicate with each other using their private IP addresses and will allow you to remotely access devices from your private network. Enabling the privacy separator option will allow remote device access from your private network while disabling device-to-device communication. For more information, refer to the Soracom Gate documentation.

The SORACOM Gate service is enabled by default for VPG Type-F2 and cannot be disabled.

IP Address Map

By default, a VPG will randomly assign IP addresses to Soracom Air and Soracom Arc devices from the VPG's Device Subnet CIDR block of IP addresses. Although the VPG will attempt to reuse the same IP address for each known device whenever possible, you can also manually assign IP addresses to devices from the IP Address Map panel. For more information, refer to the IP Address Mapping documentation.


Access Control

Configure VPG

VPG Routing Outbound Filter

The VPG Routing Outbound Filter panel lets you define custom routing rules in order to allow access to certain IP address while blocking access to others. For more information, refer to the Outbound Filter documentation.


Packet Capture

Configure VPG

The Packet capture sessions panel lets you create, view, and download Soracom Peek packet capture sessions. For more information, refer to the Soracom Peek documentation.


Terminating a VPG

If a Soracom Direct or Soracom Door connection exists in association with this VPG, please contact Soracom support for assistance in deleting it before terminating the VPG

A VPG cannot be terminated while any of it's associated SIM cards are in an active cellular session. Therefore, before terminating a VPG, any associated SIMs will have to be dissociated from the VPG and have their active sessions terminated. This can be achieved by performing steps 1-5 below, or by taking all SIM cards associated with the VPG offline before executing the termination.

  1. Login to the User Console. From the Menu, open the Groups screen.

  2. Select the Group associated with your VPG.

  3. In the Basic settings tab, select the SORACOM Air for Cellular section and disable the Virtual Private Gateway setting.

  4. From the Menu, open the SIM Management screen.

  5. From the list of subscribers, click the for the SIMs associated with the Group from steps 2 and 3.

  6. Click the Actions menu, then select Delete session.

  7. From the Menu, open the VPG screen.

  8. From the list of VPGs, click the VPG you want to terminate to open its settings page.

    https://console.soracom.io

    Terminate VPG

  9. From the VPG settings page, click the Terminate button.

    https://console.soracom.io

    Terminate VPG


Programmatic Usage

You can also use the Soracom API and Soracom CLI to create and manage VPGs.

Soracom API

To access the Soracom API, first use the auth API to obtain an API Key and Token. Refer to the API Reference Guide for instructions on how to use the API Key and Token in API requests.

Then, use the createVirtualPrivateGateway API to create a VPG:

curl -X POST \
>  -H 'X-Soracom-API-Key: <MY-API-KEY>' \
>  -H 'X-Soracom-Token: <MY-TOKEN>' \
>  -H 'Content-Type: application/json' \
>  -d '{
>        "type": 242,
>        "placement": {
>          "region": "ap-northeast-1"
>        },
>        "deviceSubnetCidrRange": "10.128.0.0/9",
>        "useInternetGateway": true
>      }' \
>  https://g.api.soracom.io/v1/virtual_private_gateways

To configure VPG settings, refer to the corresponding service configuration:

Soracom CLI

To use the Soracom CLI, you must first configure it to authenticate with your account information, authorization key, or SAM user credentials.

Then, run the following command to create a VPG:

soracom vpg create --type 242 --use-internet-gateway 'true' --device-subnet-cidr-range string '10.128.0.0/9' --coverage-type g